Skip to main content
Glama

Search goods and service IDs

tx_goods_search
Read-onlyIdempotent

Search Iranian e-invoice goods and service IDs and VAT rates by Persian description or 13-digit ID, filtering general IDs and flagging expired entries.

Instructions

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

Active general IDs come first; expired: true means unusable. First search for a phrase takes 15-30 s, repeats are cached. total counts all matches.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "tx_goods_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoall
limitNo
queryYesPersian description phrase (e.g. 'لپ تاپ') or a 13-digit ID.
general_onlyNoOnly general IDs (شناسه عمومی).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / general_only / description
      Previous value: -"Only general IDs (شناسه عمومی), the ones most sellers put on e-invoices."New value: +"Only general IDs (شناسه عمومی)."
    • removedInput schema / properties / kind / description
      Removed value: -"Goods IDs, service IDs or both."
    • removedInput schema / properties / limit / description
      Removed value: -"Max rows (1-20)."
    • changedInput schema / properties / query / description
      Previous value: -"Part of the goods/service description in Persian, matched as one phrase (e.g. 'لپ تاپ', 'خدمات حسابداری'), or a 13-digit ID."New value: +"Persian description phrase (e.g. 'لپ تاپ') or a 13-digit ID."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds genuinely new behavior — a 15-30 s first-call latency, caching on repeats, active-general-ID ordering, the meaning of `expired`, and what `total` counts. It does not describe the shape of each returned record beyond the VAT rate, which keeps it short of a 5.

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 compact sentences front-load the purpose, then a second block groups result-interpretation notes (ordering, expiry, latency, total). No filler, and every clause carries operational information.

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 a read-only search with no output schema, the description covers the highest-risk surprises: cold-call latency, cache behavior, and how to interpret `expired` and `total`. It leaves the full result record structure and pagination (beyond `limit`) unspecified, which is a minor residual gap given the annotations.

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 coverage is 50%: `query` and `general_only` are documented in-schema, while `kind` and `limit` are not. The description contributes only indirect meaning — 'goods/service IDs' hints at `kind`, and 'active general IDs come first' touches `general_only` — but says nothing clarifying `limit` or the difference between general IDs and other ID types. Baseline 3 fits since the schema carries half the load.

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?

The description opens with a specific verb and resource ('Find e-invoice goods/service IDs') and names the native term (شناسه کالا و خدمات), plus what comes back (VAT rate) and the two lookup modes (description or 13-digit ID). That resource is clearly distinct from the sibling regulation/FAQ/activity-code tools, so an agent can route without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent learns the tool resolves tax IDs and that `expired: true` rows are unusable, but there is no explicit 'use this instead of X' guidance against siblings like tx_activity_codes or tx_regulations_search, and no stated prerequisites. Adequate for a lookup tool, but the when/when-not layer is missing.

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