Skip to main content
Glama
ime-mcp

ime-mcp

by sepehr071

Trades on the exchange

ime_trades
Read-onlyIdempotent

List commodity trades for a date range with totals, filtering by category, producer, or keyword to review price, volume, supply, demand, and buyer broker data.

Instructions

List commodity trades (price, volume, supply, demand, buyer broker) for a date range, with totals.

Dates default to today (Tehran); at most 45 days. Filter with main_cat/cat/sub_cat (ime_categories), producer (ime_producers) or search. price is the volume-weighted closing price; Rial per kg for tonne goods; volume in unit; value_k_rial in thousand Rial. Subsidiary rows have only base_price, supply, demand, volume. For one product's series use ime_price_history; for market totals ime_market_summary.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ime_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
catNoCategory id from ime_categories (0 = all).
sortNovalue (largest first), volume (largest first) or date (newest first).value
limitNoMax trades to return (1-100).
marketNophysical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter).physical
searchNoCommodity, symbol or producer contains this text.
date_toNoPersian 1405/08/09 or Gregorian 2026-10-31.
sub_catNoCategory id from ime_categories (0 = all).
main_catNoCategory id from ime_categories (0 = all).
producerNoCategory id from ime_categories (0 = all).
date_fromNoPersian 1405/08/09 or Gregorian 2026-10-31.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • changedInput schema / properties / date_from / description
      Previous value: -"Persian date 1405/08/09 or Gregorian 2026-10-31 (Persian digits are fine)."New value: +"Persian 1405/08/09 or Gregorian 2026-10-31."
    • changedInput schema / properties / date_to / description
      Previous value: -"Persian date 1405/08/09 or Gregorian 2026-10-31 (Persian digits are fine)."New value: +"Persian 1405/08/09 or Gregorian 2026-10-31."
    • changedInput schema / properties / market / description
      Previous value: -"physical (main physical market halls), subsidiary (بازار فرعی, secondary market), export (Kish export hall) or premium (پریمیوم contracts; no producer filter)."New value: +"physical, subsidiary (بازار فرعی), export (Kish hall) or premium (no producer filter)."
    • changedInput schema / properties / search / description
      Previous value: -"Keep trades whose commodity, symbol or producer contains this text."New value: +"Commodity, symbol or producer contains this text."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare the safe-read profile, but the description adds hard operational context: dates default to today in Tehran and are capped at 45 days. It further discloses unit semantics (Rial/kg for tonne goods, volume in `unit`, value in thousand Rial) and the data-shape caveat that subsidiary rows only carry base_price, supply, demand and volume.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight blocks: purpose, date window, filters/units/routing. Front-loaded with the core action and no filler sentences; each clause carries either a constraint, a unit, or a sibling pointer.

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 10-parameter read tool with no output schema, the description covers the date constraint, filter sources, units and row-shape caveats well. The only soft spot is that 'with totals' is not elaborated, leaving the aggregate fields somewhat vague given there is no output schema.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: `price` is the volume-weighted closing price, plus the unit conventions for volume and value. It also usefully redirects the `producer` filter to ime_producers, correcting a schema description that misleadingly calls it a category id.

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 opens with a specific verb and resource ('List commodity trades') and enumerates the fields returned (price, volume, supply, demand, buyer broker). It then explicitly separates this tool from ime_price_history and ime_market_summary, so an agent can choose it without opening sibling schemas.

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 names concrete alternatives and the conditions that select them: ime_price_history for a single product's series, ime_market_summary for market totals. It also routes filtering inputs to their source tools (ime_categories, ime_producers), leaving little to inference.

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