Skip to main content
Glama

Sage Agent x402 Tools

security_pre_trade_audit

Read-only

Audits an EVM or Solana token contract before a swap by aggregating GoPlus, Honeypot.is, RugCheck, and DexScreener into a 0-100 risk score, buy/sell tax percentages, honeypot flags, and ALLOW/CAUTION/BLOCK decision. Use before executing trades on a contract address; use crypto_token_intel for lightweight price/liquidity lookups or ai_token_verdict for LLM trading commentary. Read-only, stateless; costs $0.015 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

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": {
      "address": "<address>"
    },
    "name": "security_pre_trade_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoBlockchain network where the token contract is deployed. Defaults to 'base'; auto-detects Solana when a base58 mint is provided.base
addressYesExact token contract address: 42-char 0x hex string for EVM chains or base58 mint address for Solana (e.g. '0x940181a94a35a4569e4529a3cdfb74e38fd98631').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds materially beyond them: statelessness, the $0.015 Base USDC x402 cost, and precise failure semantics (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged). That payment-and-error contract is exactly the kind of behavior an agent cannot infer 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.

Conciseness5/5

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

Three sentences, front-loaded with what the tool returns, then routing guidance, then operational constraints. No filler or repetition of the title; the pricing sentence is long but every clause carries decision-relevant information.

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?

No output schema exists, yet the description enumerates the returned artifacts (risk score range, tax percentages, honeypot flags, decision enum), so an agent knows what comes back. Combined with cost and error behavior, nothing needed 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 fully documented in the schema, including the base58 auto-detect for Solana. The description adds only the general framing ('EVM or Solana token contract') and no new syntax or format detail, so 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?

States a specific verb and resource ('Audits an EVM or Solana token contract before a swap') and immediately names the mechanism (aggregating GoPlus, Honeypot.is, RugCheck, DexScreener) plus the concrete outputs (0-100 risk score, buy/sell tax percentages, honeypot flags, ALLOW/CAUTION/BLOCK). An agent can distinguish this from a generic price lookup without opening the 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?

Explicitly says 'Use before executing trades on a contract address' and names two alternatives with their selecting conditions: crypto_token_intel for lightweight price/liquidity and ai_token_verdict for LLM trading commentary. Both the 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.