Skip to main content
Glama
amar-mcp

amar-mcp

by sepehr071

Population of provinces and counties

am_population
Read-onlyIdempotent

Retrieve population and household totals by Iranian province, or county-level figures within a selected province, from the 1395 (2016) census.

Instructions

Get population and households by province, or by county within one province, from Iran's 1395 census.

Latest published census (1395 = 2016): total, urban, rural, male, female, households. The 1405 census is not published. Projections or age groups: am_search and am_table.

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

Input Schema

NameRequiredDescriptionDefault
provinceNoProvince name (e.g. 'فارس'): lists its counties instead of all provinces

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / province / description
      Previous value: -"Province name (e.g. 'فارس', 'گیلان'): lists its counties instead of all provinces"New value: +"Province name (e.g. 'فارس'): lists its counties instead of all provinces"
  2. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's job is to add data-vintage context, which it does: it names 1395 = 2016 as the latest published census and flags 1405 as unpublished. It also lists the measures available (total, urban, rural, male, female, households), which is behavioral context the annotations do not carry.

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 two modes and the census vintage are front-loaded in the first sentence; the second sentence adds the measure list and the sibling routing in two compact clauses. No sentence is filler, and nothing essential is buried.

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 one-optional-parameter, no-output-schema tool, this covers the mode selection (province vs. all provinces), the vintage constraint, the available measures, and the alternatives. There is no output schema, yet the description still enumerates the returned dimensions, so an agent can act without further inference.

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 the single parameter's description already explains that supplying a province lists its counties instead of all provinces. The description restates that same two-mode behavior at a higher level but adds no new syntax, naming conventions, or format guidance for the province value.

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 and resource ('Get population and households') plus the exact granularity ('by province, or by county within one province') and the data source ('Iran's 1395 census'). This is enough to separate it from siblings like am_gdp or am_labour_force without opening a 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?

Explicitly excludes two cases and routes them elsewhere: 'The 1405 census is not published' and 'Projections or age groups: am_search and am_table.' No prerequisites or caveats are stated for the core path, but the when-not guidance is concrete rather than implied.

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