Skip to main content
Glama

get_exchange_prices

Retrieve current market prices and full order books for one or more materials on chosen exchanges, with bid/ask, supply/demand, and price statistics.

Instructions

Get current market prices with full order book for material(s).

Args:
    ticker: Material ticker symbol(s). Can be single (e.g., "RAT")
            or comma-separated (e.g., "RAT,BSE,H2O").
    exchange: Exchange code(s). Can be single (e.g., "CI1")
              or comma-separated (e.g., "CI1,NC1").
              Valid: AI1, CI1, CI2, IC1, NC1, NC2.

Returns:
    TOON-encoded price data including full order book (BuyingOrders,
    SellingOrders), bid/ask, supply/demand, and price statistics.

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": {
      "ticker": "<ticker>",
      "exchange": "<exchange>"
    },
    "name": "get_exchange_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYes
exchangeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return shape (TOON-encoded data with BuyingOrders, SellingOrders, bid/ask, supply/demand, and price statistics) and the valid exchange codes, but says nothing about rate limits, error behavior when a ticker is unknown, or multi-ticker response ordering.

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?

Front-loaded with the operation, then cleanly split into Args and Returns blocks. Every line is useful; the docstring-style formatting is slightly verbose but never padded.

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?

With only two required parameters, both documented with examples and the exchange enum spelled out, and an output schema already covering return values, the description is sufficient to invoke the tool correctly. Only the multi-value semantics ambiguity keeps it from a 5.

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 description coverage is 0%, so the description must compensate and largely does: it gives the ticker format with a concrete example ("RAT"), documents comma-separated multi-value syntax, and enumerates the six valid exchange codes. The remaining gap is whether multi-ticker and multi-exchange inputs form a cross-product or a paired list.

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 plus scope: current market prices with full order book for materials. The word 'current' implicitly contrasts with the price-history siblings, though the description does not name them, so differentiation is only partial.

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 rather than stated: 'current' signals this is not the historical-price tool, and 'full order book' signals depth, but no sibling is named and there is no explicit when/when-not guidance. An agent must infer the boundary with get_price_history and get_order_book_depth.

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