Skip to main content
Glama

Mark token as spam

set_token_spam
Destructive

A token marked as spam by the user (spam true), or a mark taken off (false), ONLY as the user said. Marked, the token's operations are in no total, no lot and no question; taken off, they are the user's to answer again. A mark taken off never comes back by itself. Ask the user first: a token they gave something away in is a disposal, and only they may say what it was.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>",
      "token_address": "<token_address>",
      "spam": "<spam>"
    },
    "name": "set_token_spam"
  }
}

Input Schema

NameRequiredDescriptionDefault
spamYesTrue marks the token as spam; false takes a mark off.
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.
sourceYesThe chain the token is on: its tag, as list_spam_tokens and list_transactions give it in ``source`` (``ethereum``).
token_idNoThe token's id inside its contract, where one contract holds many tokens (an NFT, a prediction market's share). Left out for an ordinary token.
token_addressYesThe token's contract address on that chain.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / source / description
      Added value: +"The chain the token is on: its tag, as list_spam_tokens and list_transactions give it in ``source`` (``ethereum``)."
    • addedInput schema / properties / spam / description
      Added value: +"True marks the token as spam; false takes a mark off."
    • addedInput schema / properties / token_address / description
      Added value: +"The token's contract address on that chain."
    • addedInput schema / properties / token_id / description
      Added value: +"The token's id inside its contract, where one contract holds many tokens (an NFT, a prediction market's share). Left out for an ordinary token."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the destructive annotation, the description explains consequences: marked tokens are excluded from totals, lots, and questions, while unmarking restores them to the user's responsibility. It also notes that a removed mark does not come back by itself and frames the disposal/confirmation requirement, which is meaningful behavioral context.

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

Conciseness3/5

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

The purpose is front-loaded, but the phrasing is awkward and archaic, especially 'in no total, no lot and no question.' The content is relevant, yet the wording could be much clearer and more direct.

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 destructive mutation with annotations and an output schema, the description covers the key behavioral consequences and the need for user confirmation. It leaves most parameter details to the schema, which is appropriate given full schema coverage.

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%, so parameter meaning is already well documented in the schema. The description reinforces the ``spam`` boolean as marking versus unmarking, but adds little beyond the schema for the other parameters.

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?

The description states a specific action on a specific resource: marking a token as spam when ``spam`` is true or removing that mark when false. It is clear enough about the mutation being performed, though it does not explicitly distinguish this setter from the related ``list_spam_tokens`` reader.

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?

It gives explicit usage constraints: act ONLY as the user said and ask the user first. That is clear when-to-use guidance, although it does not name alternatives or state when another tool should be used instead.

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