Skip to main content
Glama

token_safety

Read-onlyIdempotent

Run before buying, accepting or recommending a token. Answers SAFE, CAUTION or AVOID with exact reasons from chain and market data, plus rug_chance (high, with reasons, or null). Simulates a real holder selling, then checks if liquidity can be pulled, the creator's record, insider wallet networks, issuer powers (mint, freeze, Token-2022 traps), verification, liquidity, holders and age, for one verdict. Example: {"token": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"} checks BONK. Cost: 25 free calls a day, then $0.02 USDC per call (x402). Outputs explained: GET /api/tools/token_safety.

Input Schema

NameRequiredDescriptionDefault
tokenYesThe token's address. From find_token (for a ticker) or tokens (for a wallet's tokens).
networkNoDefault "mainnet-beta" (real money). "devnet" only for test wallets.mainnet-beta

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / network / description
      Previous value: -"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."New value: +"Default \"mainnet-beta\" (real money). \"devnet\" only for test wallets."
    • changedInput schema / properties / token / description
      Previous value: -"The token's address. From find_token (for a ticker) or tokens (for tokens a wallet holds)."New value: +"The token's address. From find_token (for a ticker) or tokens (for a wallet's tokens)."
  2. Changed2 schema fields changed
    • addedInput schema / properties / network / description
      Added value: +"Which Solana network to read. Default \"mainnet-beta\" (real money). Leave it out for mainnet. Use \"devnet\" only for test wallets."
    • addedInput schema / properties / token / description
      Added value: +"The token's address. From find_token (for a ticker) or tokens (for tokens a wallet holds)."
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations by disclosing cost mechanics (25 free calls/day, then $0.02 USDC via x402), the simulation behavior (a real holder sell to test liquidity pull), and the exact verdict/rug_chance output shape. For a paid, open-world external call, these are precisely the traits an agent needs before invoking.

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-loaded with the trigger and the output vocabulary, then evidence, then an example, then cost — a sensible priority order with little redundancy. The trailing "Outputs explained: GET /api/tools/token_safety" is cryptic (a URL fragment rather than a sentence) and the middle clause listing checks is dense, but nothing is wasted.

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?

With no output schema, the description still names the verdict enum, the rug_chance semantics (high with reasons, or null), and the cost model, which is enough to decide and call. The full output payload is deferred to an external docs path, leaving the agent to infer field-level detail.

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 100%, so both parameters are already documented, including the mainnet-beta vs devnet distinction. The description adds a worked example showing the token address format, but says nothing about the network parameter or what an invalid/unknown token returns — marginal lift over the schema.

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 action (safety-check a token) and a concrete, enumerated return (SAFE / CAUTION / AVOID plus rug_chance), and lists the exact signals checked (liquidity pull, creator record, insider wallets, mint/freeze powers, Token-2022 traps). This is unmistakably distinct from siblings like find_token or tokens, which only resolve addresses.

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?

"Run before buying, accepting or recommending a token" gives a clear triggering condition, and the parameter description routes the agent to find_token/tokens first to obtain the address. It stops short of naming a when-not case or an alternative verdict tool, but the usage context is unambiguous.

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.