Skip to main content
Glama

Afterbook

Get Quote

get_quote

Estimate shares out, execution price, and price impact for sizing a USDC -> stock trade on one of the tracked pools. This is a local estimate for sizing a trade, not a firm quote — the actual fill happens on chain, through the swap on afterbook.app, signed in the trader's own wallet (make_plan returns a link that opens it filled in); this tool signs nothing.

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": {
      "symbol": "<symbol>",
      "usdcIn": "<usdcIn>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYes
usdcInYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses that the result is a local estimate, not a firm quote, and that the tool signs nothing. It also explains that actual fill occurs on chain through afterbook.app in the trader's own wallet. It could add more about estimate freshness or variability, but the key safety and non-custodial behavior is clear.

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?

The description is front-loaded with the core purpose and remains reasonably tight. The second sentence is long and repeats the sizing context, but the repetition reinforces the non-firm-quote distinction rather than obscuring it.

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 simple two-parameter quote tool, the description covers the returned estimate fields, the non-firm nature of the quote, and the execution path through make_plan. The main gap is input-parameter meaning, especially the symbol enum and usdcIn constraints, but overall it is complete enough for an agent to use correctly.

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%, so the description needs to compensate for the undocumented parameters. It implies that usdcIn is a USDC amount for sizing a trade, but it does not explain the symbol enum, the maximum usdcIn value, or the units and constraints already embedded in the schema.

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 states a specific verb and resource: estimate shares out, execution price, and price impact for a USDC -> stock trade. It also explicitly distinguishes this local sizing estimate from a firm quote and from actual on-chain execution, so an agent can identify its role without opening the schema.

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

Usage Guidelines5/5

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

It clearly frames the tool as intended for sizing a trade and says it is not a firm quote. It also names make_plan as the path that returns a filled-in link for the actual on-chain swap, giving explicit when-to-use and when-not-to-use guidance relative to execution.

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.