Skip to main content
Glama
ime-mcp

ime-mcp

by sepehr071

Commodity groups

ime_categories
Read-onlyIdempotent

Lists Iran Mercantile Exchange commodity group IDs, including main groups, groups, and subgroups, for use in trade, supply, and price-history queries.

Instructions

List the exchange's commodity groups: main groups, then groups, then subgroups, with their ids.

No arguments: main groups. main_cat: its groups. main_cat plus cat: subgroups. Use the ids as main_cat/cat/sub_cat in ime_trades, ime_supply and ime_price_history.

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

Input Schema

NameRequiredDescriptionDefault
catNoGroup id (with main_cat) to list its subgroups.
main_catNoMain group id to list its groups (0 = list the main groups).

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 declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real behavioral context by explaining how the response level changes with the arguments and that results are meant to feed id parameters elsewhere. It omits trivia like paging or total counts, which is acceptable for a small taxonomy table.

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?

Two sentences, front-loaded with what is returned, then the argument-to-result rules and the downstream usage. No filler, no repetition of the schema text.

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?

For a two-optional-parameter read-only lookup with no output schema, the description covers the resource, the argument-dependent result shape, and the intended downstream use. Nothing an agent needs in order to call it correctly 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 already 100%, so baseline is 3, but the description adds genuine meaning by spelling out the three combinations (neither, main_cat only, main_cat+cat) and the nesting dependency between the parameters, which the schema only hints at individually.

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 (List) and resource (exchange's commodity groups) and names the returned hierarchy levels (main groups, groups, subgroups) with ids. An agent can tell this is the taxonomy-lookup tool rather than a data tool like ime_trades, which it explicitly positions as a consumer of the output.

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 call matrix: no arguments returns main groups, main_cat returns its groups, main_cat plus cat returns subgroups. It also states the downstream purpose (use ids as main_cat/cat/sub_cat in ime_trades, ime_supply, ime_price_history), which removes any ambiguity about when to reach for this tool.

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