Skip to main content
Glama

AI Agent Tokenized Stock OS

stocktoken_quote

Read-onlyIdempotent

Quote a Stock Token swap on chain 4663. Compares 0x, the Uniswap API, on-chain Uniswap v3, and hookless Uniswap v4, and returns the executable route with the higher amountOut. If none is executable, the result is oracle-indicative and is not a fill. Pro required. Does not sign or broadcast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
firmNoRequest firm 0x calldata when possible. Default true.
tokenInYesRegistry symbol or 0x address, e.g. USDG
amountInNoRaw token units. Use this or amountInHuman.
tokenOutYesRegistry symbol or 0x address, e.g. NVDA
recipientNo0x recipient. v3 uses it. v4 pays the signing wallet.
notionalUsdNoOptional USD notional for policy. Not the swap size.
slippageBpsNoSlippage in basis points. Default 50.
amountInHumanNoHuman amount, e.g. "25" USDG

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / amountIn / description
      Added value: +"Raw token units. Use this or amountInHuman."
    • addedInput schema / properties / amountInHuman / description
      Added value: +"Human amount, e.g. \"25\" USDG"
    • changedInput schema / properties / firm / description
      Previous value: -"Request firm 0x quote with calldata when possible"New value: +"Request firm 0x calldata when possible. Default true."
    • addedInput schema / properties / notionalUsd / description
      Added value: +"Optional USD notional for policy. Not the swap size."
    • addedInput schema / properties / recipient / description
      Added value: +"0x recipient. v3 uses it. v4 pays the signing wallet."
    • addedInput schema / properties / slippageBps / description
      Added value: +"Slippage in basis points. Default 50."
    • addedInput schema / properties / tokenIn / description
      Added value: +"Registry symbol or 0x address, e.g. USDG"
    • addedInput schema / properties / tokenOut / description
      Added value: +"Registry symbol or 0x address, e.g. NVDA"
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it compares 0x, Uniswap API, on-chain Uniswap v3, and hookless v4; returns the route with higher amountOut; falls back to an oracle-indicative result when nothing is executable; requires Pro; and explicitly does not sign or broadcast. This is consistent with the readOnly, idempotent, and non-destructive annotations.

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 compact and front-loaded, starting with the core action and chain before covering routing comparison, fallback behavior, access requirement, and safety boundary. Every sentence carries useful information without repetition or filler.

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?

For a complex multi-source quoting tool with no output schema, the description adequately explains what is returned conceptually: an executable route with the higher amountOut, or an oracle-indicative non-fill result. It also covers Pro access and the no-sign/no-broadcast boundary, though it does not describe the response shape in any further detail.

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 description coverage is 100%, so the input schema already documents all eight parameters in detail. The description adds no parameter-specific syntax, defaults, or constraints beyond what the schema provides, so the baseline of 3 is appropriate.

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 states a specific verb and resource: quote a Stock Token swap on chain 4663. It also explains that the tool compares multiple routing sources and returns an executable route, which distinguishes it from a simple price lookup, but it does not explicitly name or contrast with sibling tools such as stocktoken_price or stocktoken_simulate.

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: this is for obtaining a swap quote before execution, and it notes Pro required and no signing/broadcasting. However, there is no explicit when-to-use versus stocktoken_price, stocktoken_simulate, or stocktoken_execute_plan, and no stated exclusions or prerequisites beyond Pro access.

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