Skip to main content
Glama

zerox_quote

Same-chain swap quote via the 0x Swap API (ethereum, base, arbitrum, optimism, polygon, bsc) with the same disclosed 0.1% Quietwork integrator fee PLUS 0x's own ~0.15% platform fee (Standard plan; returned as zeroExFee), so total fees are higher than on KyberSwap.

Input Schema

NameRequiredDescriptionDefault
chainYes
amountYes
senderNo
tokenInYes
tokenOutYes

Output Schema

NameRequiredDescriptionDefault
feeYesDisclosed Quietwork fee (already reflected in expectedOut)
chainYes
venueYes
gasFeeNo
issuesNo
minOutNo
chainIdYes
tokenInYes
amountInYes
tokenOutYes
minOutWeiNo
zeroExFeeYes0x's own platform fee, on top of ours
amountInWeiYes
expectedOutYes
expectedOutWeiYes
totalNetworkFeeWeiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "amountIn": {
      +      "type": "string"
      +    },
      +    "amountInWei": {
      +      "type": "string"
      +    },
      +    "chain": {
      +      "type": "string"
      +    },
      +    "chainId": {
      +      "type": "integer"
      +    },
      +    "expectedOut": {
      +      "type": "string"
      +    },
      +    "expectedOutWei": {
      +      "type": "string"
      +    },
      +    "fee": {
      +      "description": "Disclosed Quietwork fee (already reflected in expectedOut)",
      +      "properties": {
      +        "amountWei": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "bps": {
      +          "type": "number"
      +        },
      +        "note": {
      +          "type": "string"
      +        },
      +        "percent": {
      +          "type": "number"
      +        },
      +        "receiver": {
      +          "type": "string"
      +        },
      +        "takenFrom": {
      +          "type": "string"
      +        },
      +        "token": {
      +          "type": "string"
      +        },
      +        "venue": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "bps",
      +        "percent",
      +        "takenFrom",
      +        "receiver",
      +        "note"
      +      ],
      +      "type": "object"
      +    },
      +    "gasFee": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "issues": {
      +      "type": "object"
      +    },
      +    "minOut": {
      +      "type": "string"
      +    },
      +    "minOutWei": {
      +      "type": "string"
      +    },
      +    "tokenIn": {
      +      "properties": {
      +        "address": {
      +          "type": "string"
      +        },
      +        "decimals": {
      +          "type": "integer"
      +        },
      +        "symbol": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "address",
      +        "decimals",
      +        "symbol"
      +      ],
      +      "type": "object"
      +    },
      +    "tokenOut": {
      +      "properties": {
      +        "address": {
      +          "type": "string"
      +        },
      +        "decimals": {
      +          "type": "integer"
      +        },
      +        "symbol": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "address",
      +        "decimals",
      +        "symbol"
      +      ],
      +      "type": "object"
      +    },
      +    "totalNetworkFeeWei": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "venue": {
      +      "const": "0x"
      +    },
      +    "zeroExFee": {
      +      "description": "0x's own platform fee, on top of ours",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "venue",
      +    "chain",
      +    "chainId",
      +    "tokenIn",
      +    "tokenOut",
      +    "amountIn",
      +    "amountInWei",
      +    "expectedOut",
      +    "expectedOutWei",
      +    "fee",
      +    "zeroExFee"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so for the most decision-relevant trait: it discloses the 0.1% integrator fee stacked on top of 0x's ~0.15% Standard-plan platform fee, and notes the platform fee is surfaced as zeroExFee in the response. It omits other behaviors an agent might need, such as quote expiry or rate limits, but the cost model disclosure is substantive and not derivable from the schema.

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?

A single dense sentence with the purpose front-loaded and fee caveats trailing as parentheticals. It is compact and every clause adds information, though the nested parentheses make the fee structure slower to parse than a two-sentence split would be.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and the fee/zeroExFee mapping is a useful addition. Still missing for a five-parameter quote tool: what 'sender' does, how amounts are denominated, and any notion of quote validity window, leaving real gaps for an agent constructing a call.

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% across five parameters, so the description must compensate and does not. It adds no semantics for 'sender' (presumably the taker address used for fee/calldata purposes), no format for 'amount' (string, base units vs decimal), and no indication of expected token address format for tokenIn/tokenOut; the chain enumeration is already fully expressed in the schema's enum.

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?

States a specific verb and resource ('Same-chain swap quote') plus the venue ('0x Swap API') and enumerates supported chains, so an agent can tell it is a 0x-sourced quote rather than a build/execute step. It does not, however, distinguish itself from sibling quote tools such as swap_quote, velora_quote, or cow_quote; the only comparison drawn is to KyberSwap, which is not a sibling.

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

Usage Guidelines3/5

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

Usage is implied by the fee disclosure ('total fees are higher than on KyberSwap'), which hints at when an agent might prefer another aggregator, but no sibling alternative or selection condition is named. There is no guidance on when to call zerox_quote versus swap_quote, nor on prerequisites such as needing a sender address.

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