Skip to main content
Glama

Anuário

Search activity codes

search_cae
Read-onlyIdempotent

Find Portuguese activity codes (CAE Rev.4) by words of the activity, e.g. "restaurante" or "programação", or by the start of a code. Searches titles and the official explanatory notes.

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_cae"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare this as a read-only, idempotent, non-destructive, closed-world search. The description adds useful behavioral detail by saying it searches titles and official explanatory notes, but it does not explain ranking, result format, or how the limit parameter behaves.

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?

The description is two efficient sentences with the core search behavior front-loaded. The examples directly clarify acceptable query forms and no wording is wasted.

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 two-parameter search tool with full safety annotations and no output schema, the description covers the main purpose and match scope well. The remaining gap is minor: it does not explain the optional limit parameter or result ordering.

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 0%, so the description carries significant weight. It adds rich meaning for the required query parameter, including word-based matching and code-prefix matching, but it says nothing about the optional limit parameter beyond what the schema constraints show.

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 states a specific verb and resource: find Portuguese activity codes (CAE Rev.4). It clearly says the search can be by activity words or by the start of a code, which distinguishes this from a simple exact-code lookup, though it does not explicitly name the sibling get_cae.

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?

It gives clear usage context: use it when searching by descriptive words such as "restaurante" or "programação", or when matching only the beginning of a code. It does not state when not to use it or explicitly route exact-code lookups to get_cae.

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