Skip to main content
Glama

tokenpull

Read-only

Pull local token usage from session logs and rank it across 7d/30d/90d/all-time windows. Keeps numbers on your machine unless you submit them.

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.

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, 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.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"
      +]
  2. 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"
      +]
  3. 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"
      -}
  4. Addedv0.19.3
  5. Removed
  6. 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"
      +]
  7. 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"
      +}
  8. First observedv0.6.9

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations with real behavioral context: reads token counts not message content, numbers stay local unless submitted (privacy model), and data-quality caveats (estimated=true when cacheCreate is absent, dataGap notes). Does not describe pagination or volume, but for a read-only local tool the disclosure is notably rich.

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 in the first sentence and uses the following sentences for scoping and caveats. Three sentences with little waste, though 'with the cascade' is unexplained jargon that costs a small amount of clarity.

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?

Output schema exists so return values need not be described; the description covers the operational essentials (privacy, local-only, data-quality flags) an agent needs. Minor gap: no guidance on sequencing with enroll/diagnose siblings that likely precede a successful pull.

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 description coverage is 100% – the schema already documents the single platform enum, its default, 'multi' semantics, per-platform sources and setup requirements – so the description adds no parameter meaning. Baseline 3 applies.

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

Purpose5/5

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

States a specific verb+resource ('Pull your LOCAL token usage from the platform's session logs') plus the outcome (ranked across four windows with the cascade). The 'zero paste' framing clearly distinguishes it from paste-based siblings like rank_paste/submit_paste, so an agent can route without opening schemas.

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 'LOCAL ... session logs', which signals this is the no-paste path versus its paste siblings, but there is no explicit when-to-use/when-to-prefer-an-alternative statement nor any mention of prerequisites like enroll or diagnose_cascade before running.

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