Skip to main content
Glama

Polygon: polygonSwapQuote

polygonSwapQuote
Read-onlyIdempotent

Get a swap quote for Polygon tokens using Uniswap X or 0x. Specify from and to token addresses and amount; use 0xEeeee... for native MATIC.

Instructions

Get swap quote for Polygon tokens. Uses Uniswap X or 0x. Use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native MATIC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromTokenAddressYesToken address to swap from
toTokenAddressYesToken address to swap to
amountYesAmount to swap (human readable)
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds useful context about backend (Uniswap X or 0x) and the native MATIC address, but does not disclose potential estimate nature or rate limits.

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?

Two sentences with no unnecessary words. First sentence states core purpose, second provides critical detail about native token address. Efficient and front-loaded.

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?

No output schema exists, yet description does not explain the return format. It also lacks guidance on response fields or how to interpret the quote. For a tool among many swap quotes, this omission leaves the agent guessing.

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 100%, so baseline is 3. The description adds value by specifying the native MATIC address constant, aiding correct use of fromTokenAddress/toTokenAddress.

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?

The description clearly states 'Get swap quote for Polygon tokens,' which is a specific verb-resource pair. This distinguishes it from sibling swap quote tools for other networks like ethSwapQuote or baseSwapQuote.

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?

No explicit guidance on when to use this tool versus alternatives. It does specify it is for Polygon tokens, but does not mention when to use e.g., ethSwapQuote or baseSwapQuote for other chains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EmblemCompany/Agent-skills'

If you have feedback or need assistance with the MCP directory API, please join our Discord server