Skip to main content
Glama

tokmeter_receipt

Read-only

Generate a shareable, privacy-scrubbed token usage receipt in Thermal or Broadsheet style as text, Markdown, SVG, or JSON, with optional project names and provider filters.

Instructions

Generate a shareable, privacy-scrubbed Tokmeter receipt (no project names or paths unless include_projects is true) in Thermal or Broadsheet style across plain text, Markdown, SVG, or JSON.

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

Input Schema

NameRequiredDescriptionDefault
scopeNoTime scope: today, week (last 7d), month (calendar month), or all (default)
styleNothermal
formatNotext
projectNoFilter by project name/path substring
providersNoFilter to specific providers (e.g. ['claude-code','cursor'])
include_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.27.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds genuine value by disclosing the scrubbing behavior and the exact condition that re-enables project data (include_projects true). It does not say whether the receipt is returned inline or written to disk, which matters for a "shareable" artifact, so it stops short of full transparency.

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

Conciseness5/5

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

A single front-loaded sentence that packs the action, the privacy guarantee, the style axis, and the format axis with no filler or repetition. Nothing in it is redundant with the schema or removable without losing information.

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 six-parameter, all-optional, read-only generator with no output schema, the description covers the artifact, its privacy characteristics, and the two rendering axes. The remaining gap is the return shape — whether the agent receives a string blob and how large it may be — which is unaddressed and, absent an output schema, would have been worth one clause.

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 50%: scope, project, and providers are documented in-schema, while style, format, and include_projects carry no schema descriptions. The description happens to supply the semantics for exactly those three (thermal/broadsheet, the four formats, and the privacy toggle), which is useful, but it adds nothing about scope, project filtering, or providers that the schema does not already say. Baseline 3 fits.

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 ("Generate") and a concrete artifact ("a shareable, privacy-scrubbed Tokmeter receipt"), plus the renderable styles and output formats. It is clearly distinct from data-query siblings like tokmeter_search or tokmeter_projects, though it never names an alternative to disambiguate against render-adjacent siblings such as tokmeter_export or tokmeter_digest.

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?

The privacy default (no project names or paths unless include_projects is true) implies the intended "safe to share" use case, and the style/format enumeration implies rendering choices. However, there is no explicit when-to-use guidance and no statement of when a sibling like tokmeter_export would be preferable, leaving the agent to infer the routing.

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