Skip to main content
Glama

Diogenes Web3, DeFi & 402 Security MCP

Solana SPL Token Mint/Freeze Authority & Rug-Pull Risk Evaluator

evaluate_solana_token_risk
Read-onlyIdempotent

Evaluates Solana SPL and Token-2022 rug-pull risk by checking mint/freeze authorities, permanent delegates, transfer hooks, and returning reason codes with slot height. Use when making a pre-trade security decision on whether an SPL or Token-2022 mint is safe to trade; for DEX liquidity and metadata lookup via x402, use inspect_solana_token_liquidity instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'token_address' ('risk_profile' defaults to 'strict_decentralized'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

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": {
      "token_address": "<token_address>"
    },
    "name": "evaluate_solana_token_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
risk_profileNoTolerance policy for centralized freeze authorities; defaults to 'strict_decentralized' when omitted.
token_addressYesBase58-encoded Solana SPL token mint address (32–44 characters).

Output Schema

NameRequiredDescriptionDefault
slotYesSolana block slot at which the on-chain mint and authority state was verified.
risk_scoreYesRug-pull risk score from 0.0 (renounced/safe) to 1.0 (critical danger).
reason_codesYesProgrammatic risk verdicts and reason codes (e.g. REGULATED_STABLECOIN_FREEZE_AUTHORITY, TOKEN_2022_PERMANENT_DELEGATE).
valid_base58YesTrue when the provided address is a valid Base58 Solana public key.
token_standardYesIdentified Solana token program standard ('spl-token', 'token-2022', or 'native-sol').
should_transactYesTrue when the token passes authority and concentration safety checks.
token_2022_extensionsYesDetected Token-2022 extensions including permanent delegate, transfer hook, default frozen, and transfer fees.
freeze_authority_presentYesTrue if an active authority can freeze holder token accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / reason_codes
      Added value: +{
      +  "description": "Programmatic risk verdicts and reason codes (e.g. REGULATED_STABLECOIN_FREEZE_AUTHORITY, TOKEN_2022_PERMANENT_DELEGATE).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / slot
      Added value: +{
      +  "description": "Solana block slot at which the on-chain mint and authority state was verified.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / token_2022_extensions
      Added value: +{
      +  "description": "Detected Token-2022 extensions including permanent delegate, transfer hook, default frozen, and transfer fees.",
      +  "properties": {
      +    "default_account_frozen": {
      +      "description": "True if new token accounts are initialized in frozen state by default.",
      +      "type": "boolean"
      +    },
      +    "permanent_delegate_present": {
      +      "description": "True if a Token-2022 permanent delegate can arbitrarily transfer or burn holder tokens.",
      +      "type": "boolean"
      +    },
      +    "transfer_fee_active": {
      +      "description": "True if transfer fee extension withholds tokens on transfer.",
      +      "type": "boolean"
      +    },
      +    "transfer_hook_present": {
      +      "description": "True if an external transfer hook program executes on every transfer.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "permanent_delegate_present",
      +    "transfer_hook_present",
      +    "transfer_fee_active",
      +    "default_account_frozen"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / token_standard
      Added value: +{
      +  "description": "Identified Solana token program standard ('spl-token', 'token-2022', or 'native-sol').",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "valid_base58",
      -  "risk_score",
      -  "should_transact",
      -  "freeze_authority_present"
      -]New value: +[
      +  "valid_base58",
      +  "risk_score",
      +  "should_transact",
      +  "freeze_authority_present",
      +  "reason_codes",
      +  "slot",
      +  "token_standard",
      +  "token_2022_extensions"
      +]
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses statelessness, a 32 KB payload cap, a 60 RPM rate limit, demo/L402 payment options with cost (20 sats), and the 400-on-invalid failure mode. These are operational facts an agent cannot get from annotations or schema.

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?

Only a few dense sentences, with purpose and the pre-trade decision front-loaded before the sibling routing and operational constraints. The final sentence packs many clauses (size, rate limit, params, payment, error) which slightly compresses readability, but nothing is wasted.

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?

An output schema exists, so return values need no explanation, yet the description still notes reason codes and slot height. Combined with auth/payment, rate limits, and sibling routing, an agent has everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is already 100%, so the description mostly reinforces existing fields, but it adds that risk_profile defaults to 'strict_decentralized' when omitted and that token_address drives validation (HTTP 400 if invalid). That is modest incremental value above a baseline 3.

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 verb and resource ('evaluates Solana SPL and Token-2022 rug-pull risk') and enumerates the exact checks performed (mint/freeze authorities, permanent delegates, transfer hooks). It explicitly contrasts with the sibling inspect_solana_token_liquidity, so the agent can discriminate without opening a 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?

Gives a clear trigger ('use when making a pre-trade security decision on whether an SPL or Token-2022 mint is safe to trade') and names the alternative plus its domain ('for DEX liquidity and metadata lookup via x402, use inspect_solana_token_liquidity instead'). Both when-to-use and when-not-to-use are covered.

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.