Skip to main content
Glama

Busca para Deep Research

search
Read-onlyIdempotent

Find up to 10 relevant IBGE catalog documents by natural-language query and return their id, title, and URL for use with fetch.

Instructions

Searches the IBGE (Brazilian official statistics: SIDRA tables, municipalities, known indicators) catalog and returns up to 10 matching documents as { id, title, url }, ordered by relevance (an empty list means nothing matched).

This tool exists for the OpenAI Deep Research contract: ChatGPT deep research, company knowledge and research workflows over the Responses API require exactly the tools search and fetch. Pass one of the returned ids to fetch to read the document. For direct questions and for data (values, series, rankings) prefer the ibge_* tools (ibge_sidra, ibge_cidades, ibge_indicadores, ibge_comparar…), which return the actual data with provenance — this is a catalog index, not a data query.

Query: natural language or keywords, Portuguese or English; accents and case are ignored.

Behavior: read-only and idempotent — the catalog comes from the public source and is cached in memory.

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

Input Schema

NameRequiredDescriptionDefault
queryYesTermos de busca em linguagem natural ou palavras-chave (acentos e caixa são ignorados)

Output Schema

NameRequiredDescriptionDefault
resultsYesDocumentos encontrados, em ordem de relevância

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.6.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description still adds the result cap, relevance ordering, the empty-list-means-no-match signal, and the in-memory caching of the public source. It restates 'read-only and idempotent' from the annotations, which is redundant, keeping it short of a 5.

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-loaded with the core action and return shape, then usage, then query semantics, then behavior — good ordering with no filler paragraphs. It is longer than strictly necessary because 'Behavior: read-only and idempotent' repeats the annotations, but every other sentence carries information an agent needs.

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?

An output schema exists, yet the description still summarizes the return form and the empty-result case so the contract is clear at selection time. All four needed pieces — what it returns, why it exists, when to prefer siblings, and how to feed `fetch` — are present for a single-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage and one parameter, the baseline is 3, and the description earns a bump by adding meaning the schema does not fully carry: queries may be natural language or keywords and may be in Portuguese *or English*, plus the explicit note that this is a catalog index rather than a data query. Accent/case insensitivity is duplicated from the schema but the language breadth is not.

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 (searches) and a concrete resource (the IBGE catalog of SIDRA tables, municipalities, indicators), states the exact return shape ({id, title, url}) and the cap of 10, and explicitly distinguishes itself from the ibge_* data tools and from `fetch`. An agent can route to it correctly 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 when-to-use (the Deep Research contract requires exactly `search` plus `fetch`), explicit when-not-to-use (direct questions and actual data values/series/rankings belong to `ibge_sidra`, `ibge_cidades`, etc.), and names the follow-up tool by describing the id handoff to `fetch`. Nothing about selection is left to inference.

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