Skip to main content
Glama

Anuário

Get an activity code

get_cae
Read-onlyIdempotent

What a CAE Rev.4 code covers and what it does not include (with the codes those activities belong to), from the official explanatory notes of INE. Accepts any level: a section letter or a 2- to 5-digit code.

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": {
      "code": "<code>"
    },
    "name": "get_cae"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesSection letter A-V or a 2- to 5-digit code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world, non-destructive), so the description's job is to add content context, which it does: it discloses the provenance (official INE explanatory notes) and the shape of the payload (inclusions, exclusions, and the codes those exclusions belong to). It does not say what happens for a code with no note entry, which is the main remaining gap.

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?

Two short sentences with no filler, and the substantive content (scope plus exclusions) is front-loaded. The opening is a noun phrase rather than a verb, which slightly slows the read but wastes no words.

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, read-only lookup with a fully covered schema and no output schema, the description supplies enough: what the data means, where it comes from, and that any hierarchy level is valid. Only the behavior for unknown or note-less codes is left unstated.

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 `code` parameter is fully documented with its pattern. The description's 'section letter or a 2- to 5-digit code' restates the schema and adds only the framing that every hierarchy level is accepted, so it neither compensates for nor meaningfully extends the schema.

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 names the specific resource (CAE Rev.4 activity code) and what the response contains: what the code covers, what it excludes, and the codes those excluded activities belong to. It implicitly distinguishes itself from the sibling search/validate tools by being a single-code lookup, though it never names an alternative directly.

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?

Usage is only implied: the acceptance of 'any level' suggests looking up a code you already have, and the mention of exclusions suggests using it to disambiguate classification. There is no explicit statement of when to prefer this over search_cae or when not to call it, so the agent must infer the routing.

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