Skip to main content
Glama
amar-mcp

amar-mcp

by sepehr071

Search statistical releases

am_search
Read-onlyIdempotent

Searches the Statistical Centre of Iran catalog of releases to find tables, time series, and reports by title, Jalali year, topic, or publication type, returning IDs for files or Excel tables.

Instructions

Search the Statistical Centre of Iran (amar.org.ir) catalog of releases: tables, time series, reports.

No filters lists the newest. Each result has an id for am_release (files) or am_table (Excel). Inflation, labour, population, GDP, PPI and macro indicators have their own tools.

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": "am_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoPublication type
pageNoPage of 25 results
yearNoJalali year, e.g. 1404
queryNoPersian title words, e.g. 'نرخ بیکاری'
periodNoPublishing frequency
sourceNoWhich Centre system holds it
categoryNoTop-level topic (population = demographic and social)
data_typeNoThe portal's data type

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / category / description
      Previous value: -"Top-level topic: population = demographic and social, economic, cross-sector = cross-cutting and environment"New value: +"Top-level topic (population = demographic and social)"
    • changedInput schema / properties / data_type / description
      Previous value: -"The portal's data type: statistical tables, publications and reports, metadata and microdata, images"New value: +"The portal's data type"
    • changedInput schema / properties / kind / description
      Previous value: -"Type of publication"New value: +"Publication type"
    • changedInput schema / properties / page / description
      Previous value: -"Page of 25 results, 1-based"New value: +"Page of 25 results"
    • changedInput schema / properties / period / description
      Previous value: -"How often the release is published"New value: +"Publishing frequency"
    • changedInput schema / properties / query / description
      Previous value: -"Persian words in the title, e.g. 'نرخ بیکاری', 'تولید ناخالص', 'جمعیت استان'"New value: +"Persian title words, e.g. 'نرخ بیکاری'"
    • changedInput schema / properties / source / description
      Previous value: -"Which Centre system holds it: the national portal, statistical info services, digital library"New value: +"Which Centre system holds it"
    • changedInput schema / properties / year / description
      Previous value: -"Jalali year of the statistical time, e.g. 1404"New value: +"Jalali year, e.g. 1404"
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered by structured data. The description adds genuinely new behavior: the result set is newest-first when unfiltered, and each hit carries an id that must be routed to am_release (files) or am_table (Excel) — a non-obvious follow-up step. It does not mention total-result counts, whether filters AND-combine, or empty-result behavior, which matters for a search tool hitting an external site.

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 short sentences, front-loaded with the verb and resource, then the zero-argument behavior, then the follow-up routing. Nothing is redundant with the schema and no sentence is filler.

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 an 8-optional-param, no-required-param search with no output schema, the description covers what the tool searches, the default ordering, and what to do with returned ids. Remaining gaps are minor: filter interaction semantics and whether results are paginated beyond page 200, though the schema already documents the 25-per-page paging.

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?

Schema description coverage is 100% and every one of the eight optional parameters is documented inline with enums and Jalali year bounds, so the baseline of 3 applies. The description contributes only indirectly — "No filters lists the newest" explains the all-null default — and adds no guidance on combining filters or on query language beyond what the schema's Persian example already conveys.

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 (search) and resource (Statistical Centre of Iran catalog of releases) and enumerates what's in it: tables, time series, reports. The closing sentence explicitly carves out the domain-specific siblings (inflation, labour, population, GDP, PPI, macro indicators), so an agent can separate this general catalog search from am_inflation/am_gdp/etc. without opening any 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?

Gives a concrete default behavior ("No filters lists the newest") that tells the agent it can call with zero arguments, and the final sentence implies the alternative path when the topic has a dedicated tool. It stops short of an explicit when-not-to-use statement such as "prefer am_inflation for headline CPI numbers," so routing to the topic tools is left slightly inferential.

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