Skip to main content
Glama
sepehr071

ime-mcp

by sepehr071

Trade statistics by group

ime_trade_stats
Read-onlyIdempotent

Rank producers, commodities, brokers, or halls by traded value over a date range and see each one's market share.

Instructions

Rank producers, commodities, brokers or halls by traded value over a date range, with each one's market share.

Use it for "which producers sold the most steel this month" or "which brokers were most active". Dates default to today (Tehran); at most 45 days; filters as in ime_trades. Value is thousand Rial. volume is given only when all trades of the group share one unit. For single trades use ime_trades; for one product's prices over time ime_price_history.

Input Schema

NameRequiredDescriptionDefault
catNoCategory id from ime_categories (0 = all).
limitNoMax groups to return (1-50).
marketNophysical (main physical market halls), subsidiary (بازار فرعی, secondary market), export (Kish export hall) or premium (پریمیوم contracts; no producer filter).physical
searchNoKeep trades whose commodity, symbol or producer contains this text.
date_toNoPersian date 1405/08/09 or Gregorian 2026-10-31 (Persian digits are fine).
sub_catNoCategory id from ime_categories (0 = all).
group_byYesRank trades by producer, commodity, buyer broker, hall or contract type.
main_catNoCategory id from ime_categories (0 = all).
producerNoCategory id from ime_categories (0 = all).
date_fromNoPersian date 1405/08/09 or Gregorian 2026-10-31 (Persian digits are fine).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, but the description adds meaningful operational context: Tehran-default dates, a 45-day maximum window, thousand-Rial values, and the volume caveat when group trades do not share one unit. It could be a 5 with a bit more about the returned ranking shape, but it is substantially informative.

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?

The purpose is front-loaded, followed by concrete examples, constraints, and sibling alternatives. The prose is compact for a 10-parameter analytics tool and every sentence carries useful selection or interpretation guidance.

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?

Given 10 parameters, no output schema, and rich annotations, the description supplies the key context an agent needs: ranking metric, market share, date constraints, value unit, volume caveat, and alternatives. The schema handles the remaining filter details, so nothing essential is missing for correct invocation.

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 important semantics beyond the schema: date defaulting, the 45-day maximum range, filter parity with ime_trades, and value/volume interpretation. It does not clarify every filter parameter or mention contract in the prose list of group_by values, so it falls short of 5.

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, resource, metric and scope: rank producers/commodities/brokers/halls by traded value over a date range with market share. It explicitly distinguishes itself from ime_trades and ime_price_history, so an agent can select 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?

Gives direct use cases and names the alternatives for adjacent jobs: single trades go to ime_trades, and one product's price history goes to ime_price_history. It also states date defaults and the 45-day cap, leaving little ambiguity about when to use it.

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