Skip to main content
Glama

watch_tokenpull

Idempotent

Polls local token logs once per call to return the current cascade for a watched window, enabling cadence-based monitoring without blocking; optionally previews or publishes when confirmed.

Instructions

One poll per call: pulls your local token logs and returns the current cascade for the watched window — the tool never blocks or loops. Re-call at your desired cadence to watch for changes (interval_s is advisory only and echoed back as poll_interval_s). With submit:true AND confirm:true (and an enrolled device) each call may also sign + publish the watched window to the public board, rate-limited to once per 5 min per platform+window. Publishing requires confirm: true (ask the user first); default is preview-only (no submit).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "watch_tokenpull"
  }
}

Input Schema

NameRequiredDescriptionDefault
submitNoauto-submit the watched window to the board as a VERIFIED operator each poll (requires `enroll` and confirm:true; default false = preview only)
windowNowhich window to watch (default: 7d — most sensitive to recent activity)
confirmNoREQUIRED with submit:true: must be true, set only after the user has explicitly approved publishing to the public board.
platformNoplatform to watch (default: claude)
interval_sNoadvisory poll cadence in seconds (default: 60, min: 10) — echoed back as poll_interval_s; does not make the call block or loop

Output Schema

NameRequiredDescriptionDefault
cardNoDeterministic prose summary
noteNoReminder that one snapshot is returned per call — re-call to detect changes.
windowNoThe watched window (watch_tokenpull watches one window per call)
cascadeNo
pillarsNoThe four raw token pillars for the watched window
messagesNoNumber of messages in the watched window
platformNoSource platform name
auth_submitNoPresent only when submit:true. One of: {status:'received'|'cooldown'|'not_enrolled'|'error', ...}. Null when submit is false (preview only).
generatedAtNoISO timestamp of the pull
poll_interval_sNoAdvisory poll cadence echoed back (does not make the call block)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.23
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "devin",
      -  "other",
      -  "omp",
      -  "proxy",
      -  "antigravity",
      -  "grok",
      -  "zcode",
      -  "claude",
      -  "codex"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "antigravity",
      +  "grok",
      +  "zcode",
      +  "cline",
      +  "claude",
      +  "codex"
      +]
  2. Changed2 schema fields changedv0.19.17
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "REQUIRED with submit:true: must be true, set only after the user has explicitly approved publishing to the public board.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / submit / description
      Previous value: -"auto-submit the watched window to the board as a VERIFIED operator each poll (requires `enroll`; default false = preview only)"New value: +"auto-submit the watched window to the board as a VERIFIED operator each poll (requires `enroll` and confirm:true; default false = preview only)"
  3. Changed1 schema field changedv0.19.15
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "devin",
      -  "other",
      -  "omp",
      -  "proxy",
      -  "claude",
      -  "codex",
      -  "grok"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "antigravity",
      +  "grok",
      +  "zcode",
      +  "claude",
      +  "codex"
      +]
  4. Changed1 schema field changedv0.19.7
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "devin",
      -  "other",
      -  "omp",
      -  "proxy",
      -  "claude",
      -  "codex"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "claude",
      +  "codex",
      +  "grok"
      +]
  5. Changed10 schema fields changedv0.19.6
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "devin",
      -  "other",
      -  "claude",
      -  "codex"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "claude",
      +  "codex"
      +]
    • addedOutput schema / properties / auth_submit
      Added value: +{
      +  "description": "Present only when submit:true. One of: {status:'received'|'cooldown'|'not_enrolled'|'error', ...}. Null when submit is false (preview only).",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / card
      Added value: +{
      +  "description": "Deterministic prose summary",
      +  "type": "string"
      +}
    • addedOutput schema / properties / cascade
      Added value: +{
      +  "properties": {
      +    "card": {
      +      "description": "Deterministic prose summary of the cascade result",
      +      "type": "string"
      +    },
      +    "class": {
      +      "description": "Operator class tier (dev10x taxonomy)",
      +      "enum": [
      +        "ARCH+ I",
      +        "ARCH+ II",
      +        "ARCH+ III",
      +        "ARCH I",
      +        "ARCH II",
      +        "ARCH III",
      +        "POWER I",
      +        "POWER II",
      +        "POWER III",
      +        "BASE I",
      +        "BASE II",
      +        "BASE III",
      +        "SEEKER I",
      +        "SEEKER II",
      +        "SEEKER III",
      +        "REFINER I",
      +        "REFINER II",
      +        "REFINER III",
      +        "BEARER I",
      +        "BEARER II",
      +        "BEARER III",
      +        "IGNITER I",
      +        "IGNITER II",
      +        "IGNITER III",
      +        "UNCLASSED"
      +      ],
      +      "type": "string"
      +    },
      +    "dev10x": {
      +      "description": "10xDEV score (log10 of the cascade product)",
      +      "type": "number"
      +    },
      +    "leverage": {
      +      "description": "Cr/I — cache reads divided by input",
      +      "type": "number"
      +    },
      +    "mode": {
      +      "description": "Detected working mode (BUILD/EDIT/DEBUG/MAINTAIN/IDLE) + confidence",
      +      "type": "object"
      +    },
      +    "pillars": {
      +      "description": "The four raw token pillars the cascade was computed from",
      +      "type": "object"
      +    },
      +    "snr": {
      +      "description": "Signal-to-noise ratio",
      +      "type": "number"
      +    },
      +    "velocity": {
      +      "description": "O/I — output divided by input",
      +      "type": "number"
      +    },
      +    "warnings": {
      +      "description": "Parse or data warnings if any",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "yield": {
      +      "description": "Υ Yield — the headline efficiency metric (Cache Reads × Output / Input²)",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "yield",
      +    "class"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / messages
      Added value: +{
      +  "description": "Number of messages in the watched window",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Reminder that one snapshot is returned per call — re-call to detect changes.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pillars
      Added value: +{
      +  "description": "The four raw token pillars for the watched window",
      +  "properties": {
      +    "cacheCreate": {
      +      "type": "integer"
      +    },
      +    "cacheRead": {
      +      "type": "integer"
      +    },
      +    "input": {
      +      "type": "integer"
      +    },
      +    "output": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / poll_interval_s
      Added value: +{
      +  "description": "Advisory poll cadence echoed back (does not make the call block)",
      +  "type": "number"
      +}
    • addedOutput schema / properties / window
      Added value: +{
      +  "description": "The watched window (watch_tokenpull watches one window per call)",
      +  "enum": [
      +    "7d",
      +    "30d",
      +    "90d",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • removedOutput schema / properties / windows
      Removed value: -{
      -  "description": "Per-window token usage + cascade results",
      -  "items": {
      -    "properties": {
      -      "cascade": {
      -        "properties": {
      -          "card": {
      -            "description": "Deterministic prose summary of the cascade result",
      -            "type": "string"
      -          },
      -          "class": {
      -            "description": "Operator class tier",
      -            "enum": [
      -              "Burner",
      -              "Builder",
      -              "10xer"
      -            ],
      -            "type": "string"
      -          },
      -          "leverage": {
      -            "description": "Cr/I — cache reads divided by input",
      -            "type": "number"
      -          },
      -          "snr": {
      -            "description": "Signal-to-noise ratio",
      -            "type": "number"
      -          },
      -          "tenx_dev": {
      -            "description": "10xDEV score",
      -            "type": "number"
      -          },
      -          "velocity": {
      -            "description": "O/I — output divided by input",
      -            "type": "number"
      -          },
      -          "warnings": {
      -            "description": "Parse or data warnings if any",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "yield_": {
      -            "description": "Υ Yield — the headline efficiency metric (Cache Reads × Output / Input²)",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "yield_",
      -          "class"
      -        ],
      -        "type": "object"
      -      },
      -      "estimated": {
      -        "description": "True if cacheCreate was estimated",
      -        "type": "boolean"
      -      },
      -      "messages": {
      -        "description": "Number of messages in window",
      -        "type": "integer"
      -      },
      -      "pillars": {
      -        "properties": {
      -          "cacheCreate": {
      -            "type": "integer"
      -          },
      -          "cacheRead": {
      -            "type": "integer"
      -          },
      -          "input": {
      -            "type": "integer"
      -          },
      -          "output": {
      -            "type": "integer"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "window": {
      -        "enum": [
      -          "7d",
      -          "30d",
      -          "90d",
      -          "all"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
  6. Addedv0.19.3
  7. Removedv0.19.2
  8. Changed1 schema field changedv0.18.1
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "claude",
      -  "codex"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "claude",
      +  "codex"
      +]
  9. Changed1 schema field changedv0.16.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "generatedAt": {
      +      "description": "ISO timestamp of the pull",
      +      "type": "string"
      +    },
      +    "platform": {
      +      "description": "Source platform name",
      +      "type": "string"
      +    },
      +    "windows": {
      +      "description": "Per-window token usage + cascade results",
      +      "items": {
      +        "properties": {
      +          "cascade": {
      +            "properties": {
      +              "card": {
      +                "description": "Deterministic prose summary of the cascade result",
      +                "type": "string"
      +              },
      +              "class": {
      +                "description": "Operator class tier",
      +                "enum": [
      +                  "Burner",
      +                  "Builder",
      +                  "10xer"
      +                ],
      +                "type": "string"
      +              },
      +              "leverage": {
      +                "description": "Cr/I — cache reads divided by input",
      +                "type": "number"
      +              },
      +              "snr": {
      +                "description": "Signal-to-noise ratio",
      +                "type": "number"
      +              },
      +              "tenx_dev": {
      +                "description": "10xDEV score",
      +                "type": "number"
      +              },
      +              "velocity": {
      +                "description": "O/I — output divided by input",
      +                "type": "number"
      +              },
      +              "warnings": {
      +                "description": "Parse or data warnings if any",
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "yield_": {
      +                "description": "Υ Yield — the headline efficiency metric (Cache Reads × Output / Input²)",
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "yield_",
      +              "class"
      +            ],
      +            "type": "object"
      +          },
      +          "estimated": {
      +            "description": "True if cacheCreate was estimated",
      +            "type": "boolean"
      +          },
      +          "messages": {
      +            "description": "Number of messages in window",
      +            "type": "integer"
      +          },
      +          "pillars": {
      +            "properties": {
      +              "cacheCreate": {
      +                "type": "integer"
      +              },
      +              "cacheRead": {
      +                "type": "integer"
      +              },
      +              "input": {
      +                "type": "integer"
      +              },
      +              "output": {
      +                "type": "integer"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "window": {
      +            "enum": [
      +              "7d",
      +              "30d",
      +              "90d",
      +              "all"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  10. Changed3 schema fields changedv0.6.10
    • removedInput schema / properties / codename
      Removed value: -{
      -  "description": "TODO(AUTH.WIRE): when set, will auto-submit on change once auth is live",
      -  "type": "string"
      -}
    • changedInput schema / properties / interval_s / description
      Previous value: -"poll interval in seconds (default: 60, min: 10)"New value: +"advisory poll cadence in seconds (default: 60, min: 10) — echoed back as poll_interval_s; does not make the call block or loop"
    • addedInput schema / properties / submit
      Added value: +{
      +  "description": "auto-submit the watched window to the board as a VERIFIED operator each poll (requires `enroll`; default false = preview only)",
      +  "type": "boolean"
      +}
  11. First observedv0.6.9

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the supplied annotations: it discloses the rate limit (once per 5 min per platform+window), the auth prerequisite (an enrolled device), the side effect of publishing to a public board with its own VERIFIED status, and the default preview-only behavior when confirm is absent. It also clarifies that interval_s does not block and is echoed as poll_interval_s, which is exactly the kind of trait annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core contract (one poll, never blocks), then prerequisites, then the publishing caveat — a good information hierarchy. Wording is dense with parentheticals but nearly every clause carries operational meaning; only the re-statement of interval_s behavior slightly duplicates the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with five optional parameters, an output schema, and partial annotations, the description covers the non-blocking contract, cadence model, rate limit, device enrollment requirement, and confirm gate. What is left implicit is failure behavior (e.g., submit:true without enroll) and how the cascade result itself differs from sibling reads, though the output schema carries the return shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all five parameters are already documented in the schema; the description largely restates submit/confirm/interval_s semantics. The one genuine addition is the return-side detail that interval_s is advisory and echoed back as poll_interval_s, which is not in the parameter descriptions, but that is a modest increment over a fully documented schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("pulls your local token logs and returns the current cascade") plus a precise scope ("the watched window") and a behavioral contract ("one poll per call ... never blocks or loops"). It doesn't name a sibling (e.g., tokenpull, tokenpull_submit) to differentiate, so it falls short of a 5, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Re-call at your desired cadence to watch for changes" tells the agent how to use it as a polling loop, and the submit branch gives a clear condition (submit:true AND confirm:true AND enrolled device) plus an explicit human-approval prerequisite. What's missing is an explicit pointer to which sibling to use instead for a single one-off read or for submitting directly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.