Skip to main content
Glama

Cleave for Agents: token swaps, cross-chain swaps and gas top-ups

Find a token's contract address

cleave_find_token
Read-onlyIdempotent

Finds a token by symbol or contract address on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism and returns its address, decimals and whether it is on Cleave's token list, with a flag when it resembles a listed token. A symbol shared by several listed tokens returns up to ten candidates by address instead of picking one. An unlisted token is found only by its address and comes back flagged, without a name or symbol. It fits before cleave_plan_swap when the user names a token by symbol and the address is unknown.

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": {
      "chainId": "<chainId>",
      "query": "<query>"
    },
    "name": "cleave_find_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesA symbol or a contract address
chainIdYesThe chain to search on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / chainId / description
      Added value: +"The chain to search on"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the safe-read profile (readOnly, idempotent, non-destructive), so the description carries real behavioral load — and does: ambiguous symbols return up to ten candidates rather than guessing, and unlisted tokens are address-only and come back flagged without name/symbol. Ambiguity and failure modes are disclosed, which is exactly the context annotations cannot supply.

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?

Four tight sentences, front-loaded with purpose then scope, then edge-case behavior, then workflow placement. No filler, though the final placement sentence is the least essential and could be trimmed.

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 correctly describes the return shape (address, decimals, listing status, spoof flag) as well as the multi-candidate and unlisted-token cases. An agent has enough to call it and interpret the result, though result field names and the spoof flag's naming are left implicit.

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 baseline is 3. The description does add one thing the schema cannot: it maps the numeric chainId enum values to human chain names (Ethereum, Arbitrum, Base, BNB Chain, Polygon, Optimism), which meaningfully aids correct chain selection. Beyond that it restates that query accepts a symbol or address.

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?

Opens with a specific verb+resource ("Finds a token by symbol or contract address") and immediately scopes it to six named chains plus the return payload (address, decimals, listed flag). It is clearly distinguishable from cleave_plan_swap and the gas/tracking siblings.

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?

Explicitly positions itself in the workflow: "It fits before cleave_plan_swap when the user names a token by symbol and the address is unknown." That names the alternative and the triggering condition, but gives no explicit when-not guidance (e.g., what to do when the address is already known).

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.