Skip to main content
Glama

GeoSGB — Serviço Geológico do Brasil

Fetch a GeoSGB document

fetch
Read-onlyIdempotent
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 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

NameRequiredDescriptionDefault
idYesIdentificador de um documento devolvido por `search` (subst:<nome>, prov:<nome>) ou de uma ocorrência (occ:<ID>)

Output Schema

NameRequiredDescriptionDefault
idYesIdentificador único do documento no servidor; é o que `fetch` recebe
urlYesURL pública canônica do documento — a citação do ChatGPT depende dela
textYesConteúdo integral do documento, legível (Markdown)
titleYesTítulo legível do documento
metadataYesPares chave/valor adicionais sobre o documento (tipo, fonte, período…)
provenanceYesBloco 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
attributionYesURLs de origem distintas desta resposta (a lista de atribuição a citar)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, openWorldHint and destructiveHint=false, and the description partially restates these. It nonetheless adds genuinely new behavior: subst:/prov: documents are read offline while occ: ids are fetched live with a GET, and an unknown id returns an error rather than empty content. That live-vs-offline distinction is the key operational fact an agent needs and is not in the annotations.

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-loads the return shape before the id rules, which is the right ordering. A few phrases ('Companion of `search` in the OpenAI Deep Research contract') are context rather than actionable instruction and could be trimmed, but nothing is redundant enough to obscure the usage rules.

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?

For a single-parameter retrieval tool with an output schema, this covers everything needed: valid id forms, per-namespace read behavior, error behavior on bad ids, and where to go for queries instead. No material gap remains for an agent to call it correctly on the first try.

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?

Schema coverage is 100% and the single id parameter is already documented, so the baseline is 3. The description earns one more point by documenting the occ:<ID> namespace and its live-fetch semantics, which the schema description omits, plus the failure mode for unrecognized ids.

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?

Opens with a specific verb and resource: 'Returns the full document for an id obtained from `search`', and names the exact return shape { id, title, text, url, metadata }. It is immediately distinguishable from sibling retrieval tools such as get_occurrence_details or search.

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?

Explicitly states the valid id namespaces (subst:, prov:, occ:) and where each comes from, notes that an unknown id errors, and routes data queries to the other tools ('Search_mineral_occurrences, get_geological_outcrops and get_lithology_by_area remain the tools for data queries'). This is a clear when-to-use and when-not-to-use statement.

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.