# SmartTokenGuard

> Stop burning credits on broken AI video: check every render before you pay for the next one.

- name: io.github.nwjnjjj/smart-token-guard
- version: 1.2.2
- connection class: unknown (unknown)
- trust: 64/100
- quality: 79/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.nwjnjjj%2Fsmart-token-guard
- tools: https://api.protogrid.dev/v1/servers/io.github.nwjnjjj%2Fsmart-token-guard/tools

**Not classified yet.** The remote endpoints have not been probed successfully, or the listing has nothing to connect to.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "smart-token-guard": {
      "type": "http",
      "url": "https://stg-agent-560636228350.asia-east1.run.app/mcp",
      "headers": {
        "Authorization": "Bearer ${SMART_TOKEN_GUARD_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${SMART_TOKEN_GUARD_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 0
- freshness: 85
- provenance: 90
- drivers: +repository +namespace-matches-repo +website -unreachable(13 failures) ~updated-36d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 79/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list carries no ttlMs, so clients re-fetch it

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: stg_pricing (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); stg_account (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); stg_inspect_media_url (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 696 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`: tool history not recorded yet

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 4, about 696 tokens to load them all
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.nwjnjjj/smart-token-guard.svg)](https://protogrid.dev/servers/io.github.nwjnjjj/smart-token-guard)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://stg-agent-560636228350.asia-east1.run.app/mcp (streamable-http, auth none, reachable false, uptime30d 0.1875)

## Packages

- mcpb https://github.com/nwjnjjj/smart-token-guard/releases/download/v1.2.2/smart-token-guard-1.2.2.mcpb@1.2.2 secrets: STG_LICENSE_KEY

## Tools (4)

- `stg_account`: The license's plan, checks used and checks remaining this month.
- `stg_inspect_media_url`: 
        Measure a rendered image or video at a public https URL (max 32 MB / 60 s / 1080p): blur, exposure, black and
        frozen frames, flicker, cuts, impacts and colour/lighting drift against reference_image_url. Uses 1 check.
        Returns a JSON report plus review frames to check for anatomy/identity defects before calling stg_qa_gate.
        
- `stg_pricing`: Plans, prices and checkout links for SmartTokenGuard. No license needed.
- `stg_qa_gate`: 
        PASS / NEEDS_VISUAL_REVIEW / RETRY_SAME_MODEL / SWITCH_TO_FALLBACK / HALT / HALT_BUDGET with concrete fixes.
        Stateless: pass earlier attempts for this shot in shot_history (each result's record_this_attempt). Free.
        
