Skip to main content
Glama
rasmio-mcp

rasmio-mcp

by sepehr071

Search companies

rs_search_companies
Read-onlyIdempotent

Search and filter Iranian companies by name, activity, location, status, or capital, then return national IDs for profile inspection with rs_company.

Instructions

Search Iranian companies by name or activity with filters; returns national ids for rs_company.

Filters combine freely. Next: rs_company(company_id).

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

Input Schema

NameRequiredDescriptionDefault
cityNoPersian city name, e.g. 'مشهد'.
pageNo
sizeNoHeadcount class, xs smallest .. xl largest.
sortNorelevance
queryNoPersian name, brand or activity words, e.g. 'دیجی کالا'. Empty = filters only.
statusNo
provinceNoPersian province name, e.g. 'تهران'.
has_brandNoOwns a trademark.
page_sizeNo
license_idNoLicense id from rs_options('licenses').
max_capitalNoMaximum capital, Rial.
min_capitalNoMinimum capital, Rial.
company_typeNoLegal form id (rs_options 'company_types'); 5 = سهامی خاص, 6 = با مسئولیت محدود, 3 = تعاونی.
has_contractNoHas government contracts.
founded_afterNoRegistered on/after; '1400/01/01' or '2021-03-21'.
founded_beforeNoRegistered on/before, same formats.
has_subsidiaryNoHas subsidiaries.
product_categoryNoProduct category slug (rs_options 'categories' or a product's category_slug).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv0.2.0
    • changedInput schema / properties / city / description
      Previous value: -"Registered city, Persian name, e.g. 'مشهد'."New value: +"Persian city name, e.g. 'مشهد'."
    • changedInput schema / properties / company_type / description
      Previous value: -"Legal form id from rs_options('company_types'); 5 = سهامی خاص, 6 = با مسئولیت محدود, 3 = تعاونی."New value: +"Legal form id (rs_options 'company_types'); 5 = سهامی خاص, 6 = با مسئولیت محدود, 3 = تعاونی."
    • changedInput schema / properties / founded_after / description
      Previous value: -"Registration date from, Persian '1400/01/01' or Gregorian '2021-03-21'."New value: +"Registered on/after; '1400/01/01' or '2021-03-21'."
    • changedInput schema / properties / founded_before / description
      Previous value: -"Registration date to, same formats."New value: +"Registered on/before, same formats."
    • changedInput schema / properties / has_brand / description
      Previous value: -"Only companies that own a registered trademark."New value: +"Owns a trademark."
    • changedInput schema / properties / has_contract / description
      Previous value: -"Only companies with recorded government contracts."New value: +"Has government contracts."
    • changedInput schema / properties / has_subsidiary / description
      Previous value: -"Only companies with subsidiaries."New value: +"Has subsidiaries."
    • changedInput schema / properties / license_id / description
      Previous value: -"Only companies holding this license; id from rs_options('licenses', query)."New value: +"License id from rs_options('licenses')."
    • changedInput schema / properties / max_capital / description
      Previous value: -"Maximum registered capital in Rial."New value: +"Maximum capital, Rial."
    • changedInput schema / properties / min_capital / description
      Previous value: -"Minimum registered capital in Rial, e.g. 10000000000."New value: +"Minimum capital, Rial."
    • removedInput schema / properties / page / description
      Removed value: -"Result page, from 1."
    • removedInput schema / properties / page_size / description
      Removed value: -"Results per page."
    • changedInput schema / properties / product_category / description
      Previous value: -"Only suppliers in this product category slug, from rs_options('categories') or a product's category_slug."New value: +"Product category slug (rs_options 'categories' or a product's category_slug)."
    • changedInput schema / properties / province / description
      Previous value: -"Registered province, Persian name as the site writes it, e.g. 'تهران', 'اصفهان'."New value: +"Persian province name, e.g. 'تهران'."
    • changedInput schema / properties / query / description
      Previous value: -"Name, brand or activity words in Persian, e.g. 'نرم افزار' or 'دیجی کالا'. Empty = filters only."New value: +"Persian name, brand or activity words, e.g. 'دیجی کالا'. Empty = filters only."
    • changedInput schema / properties / size / description
      Previous value: -"Headcount class: xs very small .. xl very large."New value: +"Headcount class, xs smallest .. xl largest."
    • removedInput schema / properties / sort / description
      Removed value: -"Order of results."
    • removedInput schema / properties / status / description
      Removed value: -"Company status."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the bar is lower. The description still adds two useful facts annotations cannot convey: filters combine freely (conjunctive semantics) and the result carries national ids needed for the follow-up call. It does not discuss pagination ceilings or result ordering.

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 tight sentences with the purpose first and the follow-up call second; nothing is wasted or buried.

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 18-parameter search tool with no output schema, the description covers the essential missing pieces: what comes back (national ids) and how the many filters compose. It stops short of describing pagination or sort behavior, which are only inferable from the schema, but nothing critical to correct invocation is absent.

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 78% and most filters (capital range, founded dates, company_type ids, product_category slugs) are documented in the schema itself. The description adds only the general notion of combinable filters and the name/activity split, not per-parameter meaning. Baseline 3 is appropriate.

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 states a specific verb and resource ('Search Iranian companies') plus scope ('by name or activity') and the meaningful output ('returns national ids for rs_company'). It also implicitly separates this from the generic rs_search and the detail-oriented rs_company by naming the latter as the next step.

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?

It gives a concrete follow-up workflow ('Next: rs_company(company_id)'), which tells the agent how to chain this tool. It does not explicitly say when to prefer rs_search or rs_options over this one, so the routing guidance is clear but not exhaustive.

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