Skip to main content
Glama

CommodityScope

Read one published series window

get_market_window
Read-only

Read the newest published window of exactly one series, identified by its slug from search_markets. Returns series metadata (name, slug, url, series_url, path, sector, family, public code, basis, currency, unit, frequency), the window (points, limit, first and last date) and points[] with date, mid, low and high. Daily series return 30 points; weekly and monthly series return 6. as_of is the assessment date of the last point. Full history and neighboring series are not available here — they live in My Desk. Cite series_url, and keep as_of, basis and unit attached to the number. Errors are returned as tool results with codes such as not_found, invalid_arguments, window_overflow or rate_limit.

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": {
      "slug": "<slug>"
    },
    "name": "get_market_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSeries slug from a search_markets result, e.g. "prilled-urea-fob-baltic" or "nola-granular-urea-daily". A market page can host several series; pick the slug whose name and basis match the question.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / slug / description
      Previous value: -"Series slug from a search_markets result, e.g. \"urea-fob-baltic\"."New value: +"Series slug from a search_markets result, e.g. \"prilled-urea-fob-baltic\" or \"nola-granular-urea-daily\". A market page can host several series; pick the slug whose name and basis match the question."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial detail beyond the readOnly/openWorld annotations: the exact returned fields, point counts per frequency (30 daily, 6 weekly/monthly), the meaning of as_of, citation expectations for series_url/basis/unit, and enumerable error codes (not_found, invalid_arguments, window_overflow, rate_limit). This is unusually complete behavioral disclosure for a read tool.

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 identity and scope, then return shape, then limits and errors — a sensible order. The field enumeration is long but justified because no output schema exists; a few listed metadata fields could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Since there is no output schema, the description carries the return-value burden and does so fully: fields, point counts by frequency, date semantics, error codes, and citation duty. Nothing an agent needs to call or interpret the result is missing.

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?

With a single parameter at 100% schema coverage, the schema already explains the slug source and how to disambiguate series on one market page. The description adds only the phrase 'from search_markets', which largely duplicates the schema, so baseline 3 applies.

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 ('Read the newest published window of exactly one series') plus the identifying key ('by its slug from search_markets'), which cleanly separates it from search_markets and list_sectors. An agent knows exactly what it retrieves and at what scope before 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 Guidelines4/5

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

Explicitly routes the agent to search_markets for the slug and states a negative boundary: full history and neighboring series are 'not available here — they live in My Desk'. That covers when-not, but it doesn't name a tool alternative for retrieving history, so the fallback is left implicit.

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