Skip to main content
Glama

Anuário

Search companies

search_companies
Read-onlyIdempotent

Find Portuguese companies by name (3+ letters) or by 9-digit tax number (NIF/NIPC). Returns up to 20 matches with tax number, name, locality and whether the company is active.

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
limitNo
queryYesCompany name, part of it, or a 9-digit tax number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 closed-world, so the safety profile is covered. The description adds real value beyond that by disclosing the result cap ('up to 20 matches') and the returned fields (tax number, name, locality, active status), which the annotations do not convey.

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: the input contract first, the output shape second. No filler, no repetition of the title.

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 two-parameter read-only search with no output schema, the description covers the query formats, the match cap, and the returned fields, which is close to complete. Minor gaps remain: match ordering, whether partial/prefix matching is case- or accent-insensitive, and the undocumented limit parameter.

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%: the query parameter is documented in the schema but limit is not. The description compensates partly by explaining the 'up to 20 matches' cap that motivates the limit range, and by stating the 3+ letter / 9-digit forms. However, it never mentions limit itself, and its '3+ letters' wording conflicts with the schema's minLength of 2.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a concrete verb and resource ('Find Portuguese companies') and specifies the two accepted lookup keys (name or 9-digit NIF/NIPC). It is specific enough to separate it from generic listing siblings, though it never names an alternative tool explicitly.

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?

The usage is implied by the accepted inputs (name fragment or tax number), but there is no explicit statement of when to prefer this over list_companies, get_company, or search_cae, nor any exclusion or prerequisite note.

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