Skip to main content
Glama

tokenpull

Read-only

Pull local token usage from platform session logs and rank it across 7d, 30d, 90d, and all-time windows without pasting data, keeping usage counts on your machine.

Instructions

Pull your LOCAL token usage from the platform's session logs and rank it across the four windows (7d/30d/90d/all-time) with the cascade — zero paste. Token-only: reads usage counts not message content. The numbers stay on your machine unless you submit them. Some platforms may have partial data (estimated=true when cacheCreate isn't available) or a dataGap note when the log format doesn't expose raw token counts.

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": "tokenpull"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNosource platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, antigravity, grok, zcode, cline, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true).

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. Changed2 schema fields changedv0.19.23
    • changedInput schema / properties / platform / description
      Previous value: -"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, antigravity, grok, zcode, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."New value: +"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, antigravity, grok, zcode, cline, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."
    • 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",
      -  "multi"
      -]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",
      +  "multi"
      +]
  2. Changed2 schema fields changedv0.19.15
    • changedInput schema / properties / platform / description
      Previous value: -"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, claude, codex, grok, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."New value: +"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, antigravity, grok, zcode, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."
    • 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",
      -  "multi"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "antigravity",
      +  "grok",
      +  "zcode",
      +  "claude",
      +  "codex",
      +  "multi"
      +]
  3. Changed2 schema fields changedv0.19.7
    • changedInput schema / properties / platform / description
      Previous value: -"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."New value: +"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, claude, codex, grok, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."
    • 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",
      -  "multi"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "claude",
      +  "codex",
      +  "grok",
      +  "multi"
      +]
  4. Changed11 schema fields changedv0.19.6
    • changedInput schema / properties / platform / description
      Previous value: -"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."New value: +"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, omp, proxy, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "amp",
      -  "kimi",
      -  "qwen",
      -  "pi",
      -  "openclaw",
      -  "droid",
      -  "codebuff",
      -  "gemini",
      -  "copilot",
      -  "opencode",
      -  "goose",
      -  "kilo",
      -  "hermes",
      -  "devin",
      -  "other",
      -  "claude",
      -  "codex",
      -  "multi"
      -]New value: +[
      +  "amp",
      +  "kimi",
      +  "qwen",
      +  "pi",
      +  "openclaw",
      +  "droid",
      +  "codebuff",
      +  "gemini",
      +  "copilot",
      +  "opencode",
      +  "goose",
      +  "kilo",
      +  "hermes",
      +  "devin",
      +  "other",
      +  "omp",
      +  "proxy",
      +  "claude",
      +  "codex",
      +  "multi"
      +]
    • 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"
      -}
  5. Addedv0.19.3
  6. Removed
  7. Changed2 schema fields changedv0.18.1
    • changedInput schema / properties / platform / description
      Previous value: -"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, claude, codex. codex is estimated via io_ratio. Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."New value: +"source platform (default: claude). Supported: amp, kimi, qwen, pi, openclaw, droid, codebuff, gemini, copilot, opencode, goose, kilo, hermes, devin, other, claude, codex, multi. 'multi' = combined cascade summed across all locally-detected platforms (needs 2+ active). 'devin' reads from ~/.local/share/devin/cli/sessions.db (SQLite, all windows). 'codex' is estimated via io_ratio. 'other' reads from a user-supplied JSON file (set SIGRANK_OTHER_PATH). Some platforms need setup (e.g. copilot requires COPILOT_OTEL_ENABLED=true)."
    • 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",
      +  "multi"
      +]
  8. 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"
      +}
  9. First observedv0.6.9

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint: it discloses data locality (local session logs, numbers stay on the machine unless submitted), privacy scope (counts, not message content), and result-quality caveats (estimated=true when cacheCreate is missing, dataGap notes). It also flags setup prerequisites for some platforms, which is exactly the operational context annotations cannot carry.

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-loads the core action and packs privacy, caveats and setup into two compact sentences with no filler. It loses a point because 'with the cascade — zero paste' is internal jargon that is not explained and slightly interrupts the flow.

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?

An output schema exists, so return values need no explanation, and the description covers the remaining agent-relevant unknowns: token-only scope, local-only storage, estimation caveats, and per-platform setup. Complexity is low (single optional param), so nothing critical appears missing.

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

Parameters4/5

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

Schema coverage is 100% and the platform enum carries per-value documentation, so the baseline is 3. The description adds meaning the schema does not: that platform selection determines data quality (estimated=true, dataGap) and that partial data is expected on some platforms.

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 (pull LOCAL token usage from session logs), quantifies the output (rank across 7d/30d/90d/all-time), and marks the scope boundary (token-only, reads counts not message content). It does not name a sibling like tokenpull_compare or rank_paste, so an agent still has to infer which of the several tokenpull tools to pick.

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

Usage Guidelines3/5

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

Usage is implied by 'zero paste' and 'The numbers stay on your machine unless you submit them', which hints that submission is a separate step. However, no explicit when-to-use or when-not rule is stated and no alternative tool is named, so the agent must infer routing from tool names.

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