Documento para Deep Research
fetchRetrieve the complete IBGE document for an ID returned by search, including readable Markdown text and the canonical public URL to cite. Unknown IDs return an error.
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.
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…) | |
| provenance | Yes | Bloco de proveniência (contrato v1.0): fonte, URL, período, extração e licença | |
| attribution | Yes | URLs canônicas das fontes desta resposta (lista de atribuição) |