Skip to main content
Glama

Search goods and service IDs

tx_goods_search
Read-onlyIdempotent

Find Iranian e-invoice goods/service IDs and VAT rates from the tax administration by Persian description or 13-digit ID.

Instructions

Find e-invoice goods/service IDs (شناسه کالا و خدمات) and their VAT rate by description or ID.

Source: the tax administration's ID system stuffid.tax.gov.ir. Active general IDs come first. Each row has the 13-digit id, description, vat_percent, type (general/specific, domestic/imported) and dates; expired: true means the ID can no longer be used. The first search for a phrase takes 15-30 s (the site builds a file); repeats are cached for an hour. total counts every match, not only the rows returned.

Input Schema

NameRequiredDescriptionDefault
kindNoGoods IDs, service IDs or both.all
limitNoMax rows (1-20).
queryYesPart of the goods/service description in Persian, matched as one phrase (e.g. 'لپ تاپ', 'خدمات حسابداری'), or a 13-digit ID.
general_onlyNoOnly general IDs (شناسه عمومی), the ones most sellers put on e-invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), yet the description adds substantial operational context: exact source system, ordering of results (active general IDs first), the meaning of `expired: true`, a 15-30 s first-search cold latency, one-hour caching, and the fact that `total` counts all matches rather than returned rows. This is well beyond what annotations provide.

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?

Front-loaded with the core purpose, then organized into source/persistence, result ordering, latency/caching, and counting semantics. Every sentence carries distinct, decision-relevant information with no filler.

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?

There is no output schema, so the description carries the burden of describing return contents (id, description, vat_percent, type, dates, expired flag) and does so fully, along with timing and caching expectations an agent needs before calling.

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; the description still adds interpretive value by explaining that IDs are 13 digits, that general vs specific and domestic vs imported types exist, and that expired IDs cannot be used, which informs the kind and general_only choices.

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 precise verb and resource ('Find e-invoice goods/service IDs and their VAT rate by description or ID'), including the scope of what is returned. It is clearly distinguishable from siblings like tx_regulations_search or tx_activity_codes without opening their schemas.

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 clear context for when to use it (looking up goods/service IDs by description or 13-digit ID, with kind and general_only narrowing) but never names a when-not condition or an alternative tool. Sibling domains are distinct enough that routing is unambiguous.

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