Skip to main content
Glama

get_recent_trades

Recently settled sales for a market. amount is the EXACT settled total (incl. fee) from the on-chain fill where the indexer recorded it, with settledAt the block time and exact: true; otherwise it falls back to the listed ask with exact: false (a decayed Dutch auction settles BELOW its listed amount, so treat inexact rows as an upper bound).

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": {
      "marketId": "<marketId>"
    },
    "name": "get_recent_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
marketIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful return semantics: exact vs. inexact rows, on-chain fill versus listed-ask fallback, and the Dutch-auction decay caveat that makes inexact rows an upper bound. It omits the safety/write profile (implied read by 'get'), ordering, pagination, and what an empty result means.

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 front-loaded sentence that leads with what the tool returns before the field-level caveats. The backtick-heavy field notation is dense but each clause carries real information; nothing is padded.

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?

No output schema exists, so the description rightly spends its words on the returned fields (amount, settledAt, exact) and the confidence semantics of each row, which covers the hardest part. It is nonetheless incomplete for a two-parameter list tool: result ordering, default/explicit limit behavior, and marketId sourcing are absent.

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 must compensate, and it does not. Neither parameter is addressed: marketId's expected format/source is unexplained and the limit parameter (1-100) is never mentioned, so its effect on result size and default is left entirely to the schema's bare type constraints.

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 first clause 'Recently settled sales for a market' gives a specific resource (settled trades) and scope (a single market), which clearly separates it from siblings like get_listings and get_orders. It stops short of an explicit verb-plus-differentiation statement naming an alternative.

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?

There is no when-to-use or when-not-to-use guidance. The agent learns what data comes back but not whether to reach for this tool instead of get_orders or get_listings when it wants price history, nor any prerequisite such as marketId needing to be an active market.

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