Skip to main content
Glama

discovery_stat_codes_retrieve

One ISIC / NAICS / NACE code by its numeric id. To filter companies by codes, pass scheme:code values such as naics2022:326 in the stat_codes filter of companies_search.

Method: GET /api/v1/discovery/stat-codes/{id}/

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": {
      "id": "<id>"
    },
    "name": "discovery_stat_codes_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA unique integer value identifying this Statistical Code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the burden, and it does disclose the read-only access method (GET /api/v1/discovery/stat-codes/{id}/) and the `scheme:code` identifier convention used elsewhere in the API. It says nothing about the returned record, not-found behavior, or why the `scheme:code` format differs from the numeric `id` used here.

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 core purpose is front-loaded in the first sentence, and the second sentence delivers actionable cross-tool guidance without padding. The trailing "Method: GET ..." line is mildly redundant with the tool name but cheap and harmless.

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 one-parameter lookup with full schema coverage, the definition covers what the tool returns conceptually (one code from a named scheme) and how it relates to company filtering. The absence of any indication of the response fields or of how to discover valid ids keeps it slightly short of complete.

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 the single `id` parameter is already documented as an integer identifying a Statistical Code, so the baseline is 3. The description reinforces that the id is numeric and scoped to ISIC/NAICS/NACE codes, but adds no lookup or format guidance for that specific parameter.

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?

States a specific verb and resource: retrieve a single statistical code by its numeric `id`, and names the code systems involved (ISIC / NAICS / NACE). The word "One" implicitly contrasts it with the `discovery_stat_codes_list` sibling, so an agent can tell a single-record fetch from an enumeration.

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?

Gives a concrete cross-tool instruction: to filter companies by codes, pass `scheme:code` values like `naics2022:326` to `companies_search`'s `stat_codes` filter, which steers the agent away from unnecessary lookups here. It stops short of explicit exclusions such as 'use discovery_stat_codes_list to enumerate codes' or how to obtain an `id` in the first place.

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.