Skip to main content
Glama
ime-mcp

ime-mcp

by sepehr071

Market totals

ime_market_summary
Read-onlyIdempotent

Retrieve exchange-wide trade value and volume for a date range, broken down by market and physical-market hall, plus the USD settlement rate.

Instructions

Exchange-wide trade value and volume for a date range: by market, by physical-market hall, plus the USD rate.

Dates default to today (Tehran). Values are million Rial; volumes are tonnes for physical. offer_volume is what was offered. The USD rate is the exchange's settlement rate. For a day-by-day series use ime_daily_totals.

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_market_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_toNoPersian 1405/08/09 or Gregorian 2026-10-31.
date_fromNoPersian 1405/08/09 or Gregorian 2026-10-31.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive and open-world, so the safety profile is covered. The description adds substantive context beyond that: units in million Rial, volumes in tonnes for physical trades, the meaning of offer_volume, and that the USD figure is the exchange's settlement rate — all material for interpreting results correctly.

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 resource and breakdown, followed by units, then a sibling pointer; nearly every clause carries information. The phrasing 'volumes are tonnes for physical' is slightly compressed and requires the reader to infer 'physical-market hall'.

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 no output schema, the description must convey what comes back, and it does (per-market, per-hall, USD rate) along with units and defaults. Given a simple two-parameter read tool, only a note on result shape or aggregation granularity is missing.

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% and the schema already documents the Persian/Gregorian date formats. The description adds meaning not in the schema — that both dates default to today in Tehran — which is the key operational fact an agent needs given both parameters are optional.

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 description names a concrete verb+resource scope: exchange-wide trade value and volume over a date range, broken out by market and by physical-market hall, plus the USD settlement rate. That is more specific than the title 'Market totals' and clearly separable from ime_daily_totals, though the other aggregation siblings (ime_trade_stats, ime_weekly_reports) are not contrasted.

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?

It gives an explicit routing rule — use ime_daily_totals when a day-by-day series is wanted — and states the default behavior (dates default to today, Tehran). It does not state exclusions against the remaining aggregation siblings, so it stops short of a full when/when-not map.

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