Skip to main content
Glama

check_base_swap

Wallet-free approved-token Base swap safety preflight. Costs $0.001 USDC.

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": {
      "from": "<from>",
      "to": "<to>",
      "amount": "<amount>"
    },
    "name": "check_base_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
amountYes
intentIdNo
referralCodeNo
sourceAgentIdNo
discoverySourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / discoverySource
      Added value: +{
      +  "pattern": "^[a-zA-Z0-9_.:-]{1,80}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose genuinely useful behavioral traits: no wallet or signing is required, it only handles approved tokens, and it costs $0.001 USDC. But it never says whether the swap is executed or merely evaluated, what the safety verdict looks like, whether the call is idempotent, or what happens when the check fails, and there is no output schema to fill that in.

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?

Two short sentences with no wasted words, and the key qualifier ('wallet-free approved-token') is front-loaded. It is efficient, though the extreme terseness is part of why the other gaps exist.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 7-parameter tool with no annotations, no parameter descriptions, and no output schema requires substantially more from the description than a purpose line and a price. Nothing about the swap parameters, the optional tracking fields, or the nature of the preflight result is covered.

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

Parameters2/5

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

Schema description coverage is 0% for 7 parameters, and the description explains none of them. The phrase 'approved-token' hints at the from/to enums, but amount format, intentId, referralCode, sourceAgentId, and discoverySource are entirely undocumented in both the schema and the description. With no coverage in either source, the description needed to compensate and does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource and action: a safety preflight for a swap on Base, performed without a wallet and restricted to approved tokens. That much is concrete. However, it never states what the check actually evaluates or returns, and it doesn't separate this from neighboring tools like get_safe_swap_quote, guard_base_trade, or preflight_transaction, so an agent cannot confidently choose it over the siblings.

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

Usage Guidelines2/5

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

There is no statement of when to use it, when not to, or which sibling to use instead. The only usage-adjacent information is the cost line, which tells an agent the price but not the selection criteria. For a tool that sits among four other swap/preflight-related siblings, the absence of routing guidance is a real gap.

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