Skip to main content
Glama

search_companies

Read-only

Find French companies, associations, and public bodies by name, SIREN/SIRET, activity, or location, returning key identifiers and status for research, verification, or prospecting.

Instructions

Search French companies, associations or public bodies (Recherche d'entreprises API).

Returns the total number of matching companies (total_results) and, for the first ones: SIREN, name, status, creation date, NAF activity code, workforce band, head office and whether the company objects to commercial prospecting. For details, use company_profile; to answer "how many", use count_companies. Location filters match companies with at least one establishment there, not only head offices.

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

Input Schema

NameRequiredDescriptionDefault
textNoName, acronym, address, director name, SIREN or SIRET (optional when a filter is given). Do not put an activity or a town here: use the filters.
limitNoNumber of results listed (1 to 25).
naf_codeNoNAF/APE code(s) of the main activity, comma-separated, in the form 00.00X (optional).
postcodeNo5-digit postcode(s), comma-separated (optional). Filters on any establishment.
departmentNoDepartment code, e.g. 21 or 2A (optional).
municipalityNoMunicipality name as written in the question (optional), e.g. Lille. Filters on any establishment.
include_closedNoInclude closed companies.
activity_sectionNoSection letter(s) of the main activity (optional), e.g. J = information and communication, I = accommodation and food.
municipality_codeNoINSEE municipality code(s), comma-separated (optional). Prefer 'municipality' with the name.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real context such as the non-head-office matching semantics and, indirectly, the meaning of the returned "objects to commercial prospecting" flag (a regulatory opt-out, not a neutral attribute). It loses a point only because the enumerated return fields largely duplicate the existing output schema rather than adding behavior.

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?

Front-loads purpose, then result shape, then sibling routing in three tight sentences with no filler. The field enumeration is the one redundancy given an output schema exists.

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?

A nine-parameter optional-filter tool with an output schema and annotations; the description covers scope, filtering semantics, default exclusion of closed companies (via parameter defaults), and sibling alternatives. Nothing an agent needs to invoke it correctly is missing.

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 nine parameters, including that postcode and municipality filter on any establishment. The description reinforces the head-office nuance but adds no syntax, formatting, or interaction detail beyond it, keeping this at the high-coverage baseline.

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?

Names a specific verb and resource (search French companies, associations, public bodies) and immediately distinguishes itself from siblings company_profile and count_companies by function. An agent can pick this tool 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?

Gives explicit routing rules: use company_profile for details, count_companies to answer "how many." It also clarifies that location filters match any establishment, which sets expectations about when filters are appropriate, and warns against putting activity or town in the text parameter.

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