Skip to main content
Glama

Firmum

Pesquisar empresas portuguesas

search_companies
Read-only

Search Portuguese companies by name or NIPC (9-digit tax id), optionally filtered by distrito, CAE activity code or status. Returns up to 20 matches with NIPC, name, status, location and a link to the Firmum ficha.

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
caeNoCAE Rev.4 activity code, e.g. "49410"
limitNoMaximum results
queryYesCompany name (or part of it) or a 9-digit NIPC
estadoNoRegistry status
distritoNoDistrito, e.g. "Porto", "Lisboa"

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 readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds value beyond that by disclosing the result cap ('up to 20 matches') and the returned field set (NIPC, name, status, location, ficha link), which is important since no output schema exists. It omits auth requirements, rate limits, and how partial-name matching is tokenized.

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 sentences, zero filler, with the core operation and lookup keys front-loaded before the filter list and return shape. Nothing is repeated from structured fields unnecessarily.

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 simple read-only lookup tool with full schema coverage, the description covers the operation, filters, and result shape well enough to invoke correctly. The remaining gap is behavioral detail on partial-name matching and whether results are ordered or paginated, which matters slightly given a hard cap with no offset 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 description coverage is 100%, so the schema already documents all five parameters including the CAE pattern and estado enum. The description mirrors the filter names without adding syntax, matching behavior, or examples, and it does not mention the limit parameter at all. Baseline 3 applies when the schema carries the semantics.

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 description uses a specific verb and resource ('Search Portuguese companies') and enumerates the two lookup keys (name or 9-digit NIPC) plus the optional filters. It clearly reads as a search operation rather than a single-record fetch, but it never names or contrasts with siblings such as get_company or search_people, so differentiation is left implicit.

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 word 'optionally filtered' implies how to narrow results, and 'by name or NIPC' implies the two entry modes, but there is no explicit when-to-use guidance, no statement of when to prefer get_company for a known record, and no note on empty-result behavior. Usage is inferred rather than declared.

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