Skip to main content
Glama

gbif_occurrence_download_predicate_builder

Read-onlyIdempotent

Converts simple occurrence search filters into the predicate format required by the GBIF download API, helping request occurrence downloads by year, country, taxon, or dataset.

Instructions

Helper tool to build a download predicate from simple search parameters. Converts occurrence search filters into the complex predicate format required by the download API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoYear or year range for occurrence date. Example: "2020" (single year), "2015,2020" (range from 2015 to 2020).
countryNo2-letter ISO country code where occurrence was recorded. Example: "US", "BR", "KE".
geometryNoWKT geometry polygon to limit download to geographic area. Polygons must be anticlockwise. Example: "POLYGON ((30.1 10.1, 40 40, 20 40, 10 20, 30.1 10.1))".
taxonKeyNoGBIF taxon key. A taxon key from the GBIF backbone. All child taxa are included in the download. Example: 212 (for Aves - all birds).
datasetKeyNoDataset UUID to limit download to specific dataset. Example: "13b70480-bd69-11dd-b15f-b8a03c50a862".
basisOfRecordNoBasis of record types to include. Example: ["PRESERVED_SPECIMEN", "FOSSIL_SPECIMEN"] for museum specimens only. Values: OBSERVATION (general), HUMAN_OBSERVATION, MACHINE_OBSERVATION, MATERIAL_SAMPLE, PRESERVED_SPECIMEN, FOSSIL_SPECIMEN, LIVING_SPECIMEN, MATERIAL_CITATION, OCCURRENCE.
hasCoordinateNoFilter to records with (true) or without (false) geographic coordinates. Example: true for georeferenced records only.
scientificNameNoScientific name from the GBIF backbone. Example: "Panthera leo". All synonyms and child taxa included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds that the output is a predicate consumed by the download API, which is useful context, but says nothing about return format, whether the output must be passed through unchanged, or error behavior for invalid filters.

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?

Two short sentences with no filler, and the core purpose is front-loaded. However, the second sentence largely restates the first ('build a download predicate from simple search parameters' vs 'converts occurrence search filters into the complex predicate format'), so there is mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter helper with no output schema, the description should at least characterize the return value (the predicate shape/format) and how it feeds the download tool. It explains the role but leaves the agent uncertain about what it actually produces and how to use it next, which is a real gap for a tool with no output schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 8 parameters with examples (year ranges, ISO country codes, WKT winding order, taxonKey semantics). The description contributes no additional parameter meaning beyond what the schema provides, which is the expected baseline here.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it builds a download predicate from simple search parameters and converts occurrence search filters into the predicate format required by the download API. This is clearly distinguishable from listing/searching siblings, though it never names the specific download tool whose input it produces (e.g. gbif_occurrence_download_request).

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

Usage Guidelines3/5

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

Usage is implied by 'required by the download API', suggesting this runs before a download request, but the description never says when to use this versus other occurrence tools or explicitly names the alternative. No exclusions or prerequisites are given, so the agent must infer the workflow position.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools