Skip to main content
Glama

get_safe_swap_quote

Safety-checked noncustodial Base swap quote. Costs $0.01 USDC; the buyer signs and broadcasts.

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>",
      "wallet": "<wallet>"
    },
    "name": "get_safe_swap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
amountYes
walletYes
intentIdNo
referralCodeNo
executionModeNo
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.9/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure, and it does add meaningful context: the tool is noncustodial, costs $0.01 USDC, and the buyer signs and broadcasts. However, it does not explain what 'safety-checked' entails, whether payment is taken before or after the quote, or what happens if the quote is not executed.

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?

The description is two tightly written sentences with the core purpose front-loaded and no filler. Every phrase adds some information, even though the overall definition is under-specified in other dimensions.

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?

For a nine-parameter financial tool with no annotations and no output schema, the description is far too thin. It omits return-value expectations, quote validity, payment timing, safety-check details, and the roles of optional parameters, leaving significant gaps for an agent invoking it.

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

Parameters1/5

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

Schema description coverage is 0% across nine parameters, including five optional fields such as intentId, referralCode, executionMode, sourceAgentId, and discoverySource. The description adds no parameter-level meaning, unit conventions, or formatting guidance, so the agent gets essentially no help beyond the bare schema names and enums.

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 clearly identifies the resource and action as a 'Base swap quote' and adds qualifiers ('safety-checked', 'noncustodial') that distinguish it from generic swap execution. It does not explicitly contrast itself with siblings such as check_base_swap or guard_base_trade, so it falls short of full sibling differentiation.

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?

The description implies this is used to obtain a quote before a buyer signs and broadcasts, but it gives no explicit when-to-use guidance, prerequisites, or exclusions. It never names alternatives like check_base_swap or guard_base_trade, leaving the agent to infer when this tool is preferable.

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