Skip to main content
Glama

tokenpull

Read-only

Pulls local token usage from session logs and ranks across 7d/30d/90d/all-time windows with the cascade. Token-only, no message content; counts stay 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformNosource 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).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
windowsNoPer-window token usage + cascade results
platformNoSource platform name
generatedAtNoISO timestamp of the pull
Behavior5/5

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

Annotations provide readOnlyHint=true, and the description adds that it reads from local session logs, does not read message content, and numbers remain local. It also discloses possible partial data (estimated=true) and dataGap notes, providing rich behavioral context beyond annotations.

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?

The description is front-loaded with the core purpose and is informative, but contains some redundancy (e.g., 'zero paste' mentioned twice) and could be slightly more concise. Overall, every sentence adds value.

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

Completeness5/5

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

Given the single parameter, presence of output schema, and annotations, the description is complete. It covers purpose, data scope, privacy, and platform-specific nuances, leaving no obvious gaps for an AI agent to misuse the tool.

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

Parameters5/5

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

Schema coverage is 100%, and the description adds significant meaning beyond enum values by explaining special platforms like 'multi', 'devin', 'codex', and 'other', along with setup requirements (e.g., copilot needs COPILOT_OTEL_ENABLED=true). This substantially aids parameter understanding.

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?

The description clearly states the tool pulls local token usage and ranks it across four windows (7d/30d/90d/all-time) with a cascade. It distinguishes itself from siblings like tokenpull_submit and tokenpull_compare by emphasizing local retrieval and zero paste.

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?

The description explains that the tool reads usage counts not message content, that data stays local unless submitted, and notes potential partial data with estimated=true. It provides context for when to use (pulling local token usage) but lacks explicit when-not-to-use statements or direct alternatives beyond implicit distinction from siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SunrisesIllNeverSee/sigrank-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server