# RTK Command Score

> RTK Command Score is a paid API for AI agents from quietstore-production.edge-7e13f.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Heuristically scores a shell command for RTK token discipline: whether to wrap it with rtk, risk of large stdout, and a safer suggested form — without executing the command.

## Facts

- Endpoint: POST https://quietstore-production.edge-7e13f.workers.dev/v1/tools/rtk-command-score
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rtk-command-score-5a86b461
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1I_zai_-WufIVWJ6CluwM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rtk-command-score-5a86b461 -d '<json body>'
```

Example prompt: Score this shell command for RTK token discipline — tell me whether to wrap it with rtk, how risky the stdout volume is, and suggest a safer form if needed: `find / -name '*.log' -exec cat {} \;`

## When to prefer this

Use this endpoint when an AI agent needs to decide whether a shell command is safe to run in a token-constrained context, specifically to avoid flooding the agent's context window with huge stdout. Ideal for pre-flight checks before executing shell commands in agentic workflows using RTK as a token-aware proxy.

## Known failure modes

- Missing or malformed 'body' object in input returns a validation error
- Empty or non-string command field results in a scoring error
- Extremely long or complex commands may return low-confidence heuristics
- Payment not included or insufficient USDC triggers HTTP 402 response

## How this service works

Score a shell command for RTK-friendly token discipline: whether to wrap with rtk, risk of huge stdout, and a suggested safer form. Pure heuristic; does not execute the command.

## Output

Returns a heuristic score indicating whether the shell command should be wrapped with rtk, an assessment of the risk that the command will produce large/unbounded stdout, and a suggested safer alternative form of the command. Does not execute the command.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rtk-command-score-5a86b461/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quietstore-production.edge-7e13f.workers.dev](https://www.zero.xyz/host/quietstore-production.edge-7e13f.workers.dev/llms.txt)
