Skip to main content
Glama

List spam tokens

list_spam_tokens
Read-only

The tokens marked as spam, a page at a time (next_offset for the next): their operations are outside the user's report. Read it when the user asks what was left out as spam, and before set_token_spam drops or adds a mark. A mark of ours carries the two facts that let us put it in reason — no source prices the token, and the user gave none of it away, so nothing it does can change a figure. by_user: they marked it themselves. entries is how many of their ledger entries the mark leaves out; each year's note says the same count for that year.

    A mark is the user's to keep or drop (set_token_spam); ``written_by`` is whose hand
    made it where it was not this account's owner's (their accountant) and ``assistant``
    the app it was made through, so a mark their accountant's assistant put on is tellable
    from one they made themselves. Tell them what a mark leaves out before dropping one,
    and never mark a token for them without asking.

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

Input Schema

NameRequiredDescriptionDefault
clientNoAn account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case.
offsetNoWhere the page starts: 0 for the first page, then the ``next_offset`` the page before gave.

Output Schema

NameRequiredDescriptionDefault
itemsYes
totalYes
next_offsetYes
provisionalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / provisional
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Provisional"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / offset / description
      Added value: +"Where the page starts: 0 for the first page, then the ``next_offset`` the page before gave."
  3. First observed

TDQS

A4.2/5.0
Behavior3/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 semantics the annotations cannot: what qualifies as a spam mark (no source prices it, the user gave none of it away), what 'by_user'/written_by/assistant mean, and that entries counts omitted ledger entries. However, much of this is return-field interpretation that the existing output schema already carries, so the net behavioral gain is moderate rather than exceptional.

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 key constraint (paginated list of spam marks, plus the routing to set_token_spam) is front-loaded and no sentence is pure filler. It is nonetheless dense, with several stacked parentheticals and a detour into per-year ledger counts that the output schema would cover, which slightly slows scanning for a two-parameter read tool.

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?

For a read-only, two-parameter, zero-required tool with an output schema, the definition covers purpose, triggering conditions, scoping via client, pagination, and the meaning of the mark. Nothing an agent needs in order to call it correctly is missing.

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%, and both parameters are documented in the schema itself, including the client/accountant scoping and the offset chaining. The description's 'a page at a time (next_offset for the next)' only restates the schema's pagination wording, adding no new format or constraint detail, so the 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?

The first clause names the exact resource and its shape ('The tokens marked as spam, a page at a time'), and the definition further contrasts itself with the mutator sibling set_token_spam. An agent can distinguish this read/list tool from set_token_spam without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit trigger conditions ('Read it when the user asks what was left out as spam, and before set_token_spam drops or adds a mark') and names the alternative for mutation. It also adds a behavioral guardrail for the paired write tool ('never mark a token for them without asking'), so the when/when-not boundary is fully stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources