Skip to main content
Glama

GeoSGB — Serviço Geológico do Brasil

Buscar ocorrências minerais

search_mineral_occurrences
Read-onlyIdempotent
Busca ocorrências minerais no banco de dados do Serviço Geológico do Brasil.

Permite filtrar por substância mineral, estado (UF), município, status econômico
e/ou área geográfica (bounding box). Devolve a página pedida (count), o total
que casa na fonte (total_count) e as ocorrências (features), cada uma com um
id que get_occurrence_details detalha.

Custo: a fonte não pagina — a busca baixa tudo que casa (só os campos da
resposta, mais coordenadas) e corta no cliente; uma UF inteira leva ~4 s.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_mineral_occurrences"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da unidade da federação, em maiúsculas (ex.: "MG", "GO", "BA", "PA")
limitNoMáximo de itens na resposta (1 a 120); o resto se alcança com offset, e total_count diz quantos há. A fonte não pagina: o corte é feito no cliente, depois de baixar tudo o que casa, em ordem crescente de id
offsetNoQuantos itens pular antes do primeiro devolvido (paginação no cliente)
bbox_xmaxNoLongitude máxima (leste) do retângulo, graus WGS84. Os quatro cantos vêm juntos ou nenhum; incompleto, invertido ou fora do globo é recusado.
bbox_xminNoLongitude mínima (oeste) do retângulo, graus WGS84. Os quatro cantos vêm juntos ou nenhum; incompleto, invertido ou fora do globo é recusado.
bbox_ymaxNoLatitude máxima (norte) do retângulo, graus WGS84. Os quatro cantos vêm juntos ou nenhum; incompleto, invertido ou fora do globo é recusado.
bbox_yminNoLatitude mínima (sul) do retângulo, graus WGS84. Os quatro cantos vêm juntos ou nenhum; incompleto, invertido ou fora do globo é recusado.
substanceNoSubstância mineral, com a grafia da fonte (ex.: "Ouro", "Lítio", "Nióbio", "Terras raras"). Casa por LIKE sensível a caixa e acento: sem o acento, zero achados. list_mineral_substances devolve as grafias
municipalityNoMunicípio, com a grafia da fonte (LIKE sensível a caixa e acento)
economic_statusNoStatus econômico, exatamente como a fonte grava: "Mina", "Garimpo", "Indeterminado" ou "Não explotado" (não existe "Ocorrência")

Output Schema

NameRequiredDescriptionDefault
countYesQuantos itens esta resposta traz (depois de limit/offset)
offsetYesQuantos itens foram pulados antes desta página (o offset pedido)
featuresYesOcorrências minerais desta página: id, substâncias, status econômico, rochas hospedeiras, província, UF, município, projeto e coordenadas
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)
total_countYesTotal de ocorrências que atendem ao filtro na fonte

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With annotations already declaring readOnly/idempotent/openWorld/non-destructive, the description still adds material behavior: the source does not paginate, the whole matching set is downloaded and sliced client-side, and a full-UF query costs roughly 4 seconds. That is exactly the kind of performance and mechanism disclosure the annotations cannot carry.

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?

Three short, front-loaded paragraphs: purpose and filters first, return shape second, cost caveat last. No filler, though the cost sentence could be tightened slightly.

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?

With an output schema present, the description need not document return fields beyond naming count/total_count/features, and it does exactly that. Combined with full parameter coverage and rich annotations, an agent has everything needed to call it correctly and calibrate query breadth.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning beyond it: it explains the combination of filters ('e/ou'), states that each returned feature carries an id consumed by get_occurrence_details, and frames limit/offset as client-side paging over a fully downloaded result set, which changes how an agent should choose the two.

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?

The definition opens with a specific verb and resource ('Busca ocorrências minerais no banco de dados do Serviço Geológico do Brasil') and enumerates the filter dimensions. It explicitly hands off detail work to get_occurrence_details, so an agent can distinguish list-from-search without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the context clearly: filter by substance/UF/municipality/status/bbox and use get_occurrence_details for a single record's id. The cost note ('uma UF inteira leva ~4 s') implicitly steers toward narrow queries, but there is no explicit when-not-to-use guidance or routing against the sibling search_rare_earth_occurrences.

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.