Skip to main content
Glama

Search companies

search_companies
Read-only

Search active legal entities by current or former name or registry code. Legal forms (AS, OÜ, MTÜ, SA, TÜ and full names) may be given in any position. When nothing matches exactly, names within one edit of the query are returned marked approximate with matched_on approximate_name; a still-empty result carries a hint. Set include_inactive for other statuses. County aliases and cursor pagination are supported; unknown counties error. Use get_company for a full company profile, or find_companies to filter by county, Estonian Classification of Economic Activities (EMTAK), revenue or employees. Do not look up natural persons.

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

Input Schema

NameRequiredDescriptionDefault
emtakNoEstonian Classification of Economic Activities (EMTAK) code or prefix
limitNoAt most 25 companies
queryYesCompany name or 8-digit registry code
countyNoCounty name or alias (Harju, Harjumaa, Harju maakond). Valid: Ida-Viru maakond, Lääne-Viru maakond, Harju maakond, Hiiu maakond, Jõgeva maakond, Järva maakond, Lääne maakond, Põlva maakond, Pärnu maakond, Rapla maakond, Saare maakond, Tartu maakond, Valga maakond, Viljandi maakond, Võru maakond, Maakond puudu.
cursorNoOpaque cursor from a previous next_cursor for the next page
include_inactiveNoInclude liquidated, bankrupt, and deleted companies. Default false.

Output Schema

NameRequiredDescriptionDefault
hintNoHow to retry when no company matched. Present only on an empty result.
as_ofYes
sourcesYes
companiesNo
row_countNo
truncatedNo
disclaimerYes
next_cursorNo
snapshot_idYes
disclaimer_enNoEnglish disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.
source_detailsYesFull attribution and acquisition evidence: source_metadata(source_key).
omitted_sectionsNoSections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / companies / items / properties / emtak_label_en
      Added value: +{
      +  "description": "English sector label from the EMTAK code list; null when untranslated (see label_en_method).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / emtak_label_en_method
      Added value: +{
      +  "description": "How emtak_label_en was derived (exact EMTAK translation or nace_parent_fallback).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / status_label_en
      Added value: +{
      +  "description": "English meaning of the Äriregister status code (R Registered, L In liquidation, K Deleted, N Bankrupt).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / disclaimer_en
      Added value: +{
      +  "description": "English disclaimer: extract of official public open data; not an official register extract, legal advice, or a credit decision.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / companies / items / properties / matched_on / description
      Previous value: -"approximate_name for one-edit matches; absent for exact hits."New value: +"former_name for a former-name-only hit or approximate_name for a one-edit match. Absent for current-name and registry-code hits."
  3. Changed4 schema fields changed
    • changedOutput schema / properties / companies / items / properties / growth_pct / description
      Previous value: -"Growth pct. queries._company_rows, fill_sector_english_labels and MCP tools: company selection and context metadata. Null when the source value or applicable observation is unavailable."New value: +"Growth pct. Percent change from revenue_prev to revenue. Null when the previous revenue is missing or zero."
    • addedOutput schema / properties / companies / items / properties / revenue_prev
      Added value: +{
      +  "description": "Revenue in revenue_prev_year, the filing immediately before revenue_year. Null with revenue_prev_year set means that filing had no revenue. Both null means there is no prior filing.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / revenue_prev_year
      Added value: +{
      +  "description": "Year of the filing immediately before revenue_year. Set when that filing exists, including when its revenue is null. Null only when the prior filing is missing.",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / source_details / description
      Previous value: -"Full attribution and acquisition evidence: source_metadata(key)."New value: +"Full attribution and acquisition evidence: source_metadata(source_key)."
  4. Changed3 schema fields changed
    • addedOutput schema / properties / companies / items / properties / approximate
      Added value: +{
      +  "description": "True when the row matched within one edit of the query, not exactly.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / matched_on
      Added value: +{
      +  "description": "approximate_name for one-edit matches; absent for exact hits.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / hint
      Added value: +{
      +  "description": "How to retry when no company matched. Present only on an empty result.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed3 schema fields changed
    • addedOutput schema / properties / companies / items / properties / growth_pct
      Added value: +{
      +  "description": "Growth pct. queries._company_rows, fill_sector_english_labels and MCP tools: company selection and context metadata. Null when the source value or applicable observation is unavailable.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / monetary_null_reason
      Added value: +{
      +  "description": "Monetary null reason. queries._company_rows, fill_sector_english_labels and MCP tools: company selection and context metadata. Null when no missing-value, suppression or unavailability reason applies.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / companies / items / properties / report_basis
      Added value: +{
      +  "description": "Report basis. queries._company_rows, fill_sector_english_labels and MCP tools: company selection and context metadata. Null when the source value or applicable observation is unavailable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  6. Changed5 schema fields changed
    • addedOutput schema / properties / omitted_sections
      Added value: +{
      +  "description": "Sections removed to fit the response budget, including default sections. Request one named section to retrieve it. Present only when truncated.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / source_details
      Added value: +{
      +  "description": "Full attribution and acquisition evidence: source_metadata(key).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / as_of
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / key
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "snapshot_id",
      -  "as_of",
      -  "sources",
      -  "disclaimer"
      -]New value: +[
      +  "snapshot_id",
      +  "as_of",
      +  "sources",
      +  "source_details",
      +  "disclaimer"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / emtak / description
      Previous value: -"EMTAK code or prefix"New value: +"Estonian Classification of Economic Activities (EMTAK) code or prefix"
  8. Changed3 schema fields changed
    • addedOutput schema / properties / sources / items / properties / licence_checked_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / licence_evidence_url
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / sources / items / properties / rights_status
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  9. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "companies": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "county": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "employees": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "emtak_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "emtak_label": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "municipality": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "net_profit": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "registry_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "revenue": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "revenue_year": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "status": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "row_count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "snapshot_id": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sources": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "attribution": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "licence": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "licence_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "truncated": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "snapshot_id",
      +    "as_of",
      +    "sources",
      +    "disclaimer"
      +  ],
      +  "title": "search_companiesOutput",
      +  "type": "object"
      +}
  10. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint false), so the description's real contribution is behavior: fuzzy fallback within one edit marked matched_on approximate_name, a hint on still-empty results, county aliases resolving, unknown counties erroring, and cursor pagination. That is meaningful disclosure beyond the structured fields; the only gap is that it says nothing about ordering or the size/shape of the result set, though the output schema likely covers the latter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then fallback behavior, then scope widening, then routing to siblings — a sensible order with almost no filler. It is dense rather than concise in places, and the legal-forms clause ('AS, OÜ, MTÜ, SA, TÜ and full names may be given in any position') is compressed enough to require a second read.

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?

With an output schema handling return values, 100% schema coverage, and annotations covering safety, the description supplies exactly the missing layer: matching semantics, fallback behavior, error behavior for bad counties, and sibling routing. Nothing an agent needs in order to call this correctly appears to be 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 100% and every parameter including limit, cursor, county, emtak and include_inactive is documented in the schema itself. The description restates include_inactive, county aliases and cursors but adds no syntax or format detail beyond what the schema already says, so this is the baseline-3 case where the schema does the heavy lifting.

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 opening sentence names a specific verb and resource with explicit scope: 'Search active legal entities by current or former name or registry code.' It also carves out a boundary ('Do not look up natural persons') and names the sibling that serves the adjacent need (get_company, find_companies), so an agent can distinguish it 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 Guidelines5/5

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

It states when to use this tool, when to use alternatives ('Use get_company for a full company profile, or find_companies to filter by county, EMTAK, revenue or employees'), and an explicit exclusion (natural persons). It also names the condition that widens scope ('Set include_inactive for other statuses'), which is exactly the routing information an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources