Fetch a GeoSGB document
fetchReturns 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 GeoSGB catalog. Valid ids: those returned by `search` (subst:<name>, prov:<name>, read offline) and occ:<ID> for one mineral occurrence, read live from the source (the id field of the occurrence tools); an unknown id returns an error.
Search_mineral_occurrences, get_geological_outcrops and get_lithology_by_area 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` (subst:<nome>, prov:<nome>) ou de uma ocorrência (occ:<ID>) |
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 | Yes | Pares chave/valor adicionais sobre o documento (tipo, fonte, período…) | |
| provenance | Yes | Bloco de proveniência (contrato v1.0 do portfólio): fonte, camada, WHERE efetiva, URL que reproduz a consulta, instante da extração em UTC e licença | |
| attribution | Yes | URLs de origem distintas desta resposta (a lista de atribuição a citar) |