Skip to main content
Glama

Explain a prediction

explain_resolved_prediction
Read-only

Get the stored evidence behind one stock's forecast in a graded book: its rank, side, market regime, 5- and 20-day lookback returns, news items and notes. Use this to see the context a stock was ranked in, and get_stock_resolved_history to find which books hold it. An ungraded date, or a ticker not in that book, is an error.

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": {
      "trading_date": "<trading_date>",
      "ticker": "<ticker>"
    },
    "name": "explain_resolved_prediction"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYesStock ticker, for example AAPL. Upper or lower case both work.
trading_dateYesThe book's trading date, as YYYY-MM-DD. list_resolved_batches gives the graded dates.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / ticker / description
      Added value: +"Stock ticker, for example AAPL. Upper or lower case both work."
    • addedInput schema / properties / trading_date / description
      Added value: +"The book's trading date, as YYYY-MM-DD. list_resolved_batches gives the graded dates."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's added value is the error surface: ungraded dates and tickers not in the book fail rather than returning empty. It does not discuss pagination, size limits, or what happens when news items are absent, so it is strong but not exhaustive.

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 core action and the returned evidence, followed by the routing hint and error note in a logical order. The field enumeration is long but each item carries information; little is wasted.

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 an output schema present, the description needn't explain return values, and it covers purpose, sibling routing, and error preconditions. What remains thin is domain framing of "graded book" and the behavior when the underlying book lacks news or notes for a ticker.

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 coverage is 100% and both parameters are documented in the schema, including the YYYY-MM-DD format and the pointer to list_resolved_batches for valid dates. The description reinforces the graded-date and book-membership constraints but adds no new syntax or semantics beyond 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?

States a specific verb and resource ("Get the stored evidence behind one stock's forecast in a graded book") and enumerates the returned evidence: rank, side, market regime, 5- and 20-day lookback returns, news items and notes. It explicitly distinguishes itself from the sibling that answers a different question ("get_stock_resolved_history to find which books hold it").

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?

Gives an explicit use case ("see the context a stock was ranked in") and names the alternative sibling plus the condition that selects it, so the agent knows when to pick each. It also states two failure preconditions: an ungraded date or a ticker absent from the book is an error.

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.