Documento para Deep Research
fetchRetrieve a full IBGE document using an id returned by search, including Markdown text and canonical URL for citation.
Instructions
Returns the full document for an id obtained from search, as { id, title, text, url, metadata }: text is the readable content (Markdown) and url the canonical public page to cite.
Companion of search in the OpenAI Deep Research contract, over the IBGE (Brazilian official statistics: SIDRA tables, municipalities, known indicators) catalog. Only ids returned by search are valid; an unknown id returns an error.
The ibge_* tools (ibge_sidra, ibge_cidades, ibge_indicadores, ibge_comparar…) remain the tools for data queries.
Behavior: read-only and idempotent — a live GET against the public source when the document needs it.
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": "fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identificador de um documento devolvido por `search` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identificador único do documento no servidor; é o que `fetch` recebe | |
| url | Yes | URL pública canônica do documento — a citação do ChatGPT depende dela | |
| text | Yes | Conteúdo integral do documento, legível (Markdown) | |
| title | Yes | Título legível do documento | |
| metadata | No | Pares chave/valor adicionais sobre o documento (tipo, fonte, período…) |