Skip to main content
Glama

gbif-biodiversity-mcp-server

Get Occurrence Record

gbif_get_occurrence
Read-onlyIdempotent

Fetch a single occurrence record by its GBIF occurrence key. Returns the complete Darwin Core record — all coordinates, administrative geography (GADM levels 0–3), dates, collections metadata, collector identifiers, conservation status, media links, and quality issue flags. Check occurrenceStatus before reading the record as a sighting: ABSENT means a survey looked for the taxon and did not find it. Use the occurrence key from gbif_search_occurrences results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
occurrenceKeyYesGBIF occurrence key from gbif_search_occurrences results.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayNoObservation day. May be absent.
keyNoGBIF occurrence key.
sexNoSex of the individual(s). May be absent.
gadmNoGADM administrative geography — stable GIDs and names at levels 0–3. May be absent.
yearNoObservation year. May be absent.
classNoClass classification. May be absent.
errorNoPresent when the call failed. Absent on success.
genusNoGenus classification.
mediaNoAssociated media (images, audio, video). May be absent.
monthNoObservation month (1–12). May be absent.
orderNoOrder classification.
familyNoFamily classification.
issuesNoGBIF data quality issue flags.
phylumNoPhylum classification.
countryNoCountry name. May be absent.
kingdomNoKingdom classification.
speciesNoSpecies canonical name.
classKeyNoBackbone taxon key for the class. May be absent.
localityNoLocality description. May be absent.
taxonKeyNoBackbone taxon key.
continentNoContinent name. May be absent.
eventDateNoObservation date as ISO 8601 string. May be absent.
eventTimeNoTime of day of the observation, with seconds and UTC offset (e.g. 20:15:00+01:00) — the offset eventDate omits when it carries a local time. May be absent.
lifeStageNoLife stage of the individual(s). May be absent.
taxonRankNoTaxonomic rank of the identified taxon.
datasetKeyNoUUID of the source dataset.
recordedByNoCollector name(s). May be absent.
countryCodeNoISO 3166-1 alpha-2 country code. May be absent.
identifiersNoAlternative record identifiers from the source. May be absent.
identifiedByNoIdentifier name(s). May be absent.
occurrenceIDNoDarwin Core occurrenceID — the source record identifier, often a URL back to the origin record. May be absent.
basisOfRecordNoHow the occurrence was recorded.
canonicalNameNoCanonical name without authorship.
catalogNumberNoCatalog number within the collection. May be absent.
stateProvinceNoState or province. May be absent.
collectionCodeNoCollection code within the institution. May be absent.
scientificNameNoScientific name from occurrence record.
decimalLatitudeNoLatitude in decimal degrees (WGS84). May be absent.
individualCountNoNumber of individuals. May be absent.
institutionCodeNoCode of the contributing institution. May be absent.
taxonomicStatusNoStatus of the identification carried on this record — ACCEPTED, PROVISIONALLY_ACCEPTED, SYNONYM, DOUBTFUL, and so on. Says whether the occurrence was filed under an accepted name or a synonym. May be absent.
decimalLongitudeNoLongitude in decimal degrees (WGS84). May be absent.
occurrenceStatusNoPRESENT when the record asserts the taxon was there, ABSENT when it documents a survey that looked and did not find it. An ABSENT record is not a sighting — it carries coordinates, a date, and a recorder all the same. May be absent.
publishingCountryNoCountry code of the publishing organization.
iucnRedListCategoryNoIUCN Red List category of the taxon — CR Critically Endangered, EN Endangered, VU Vulnerable, NT Near Threatened, LC Least Concern, DD Data Deficient, EX Extinct, EW Extinct in the Wild, CD Conservation Dependent. May be absent.
coordinateUncertaintyInMetersNoCoordinate uncertainty radius in meters. May be absent.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint, openWorldHint, and idempotentHint, covering safety. The description adds valuable behavioral context: it lists the full Darwin Core record fields returned and explicitly explains the ABSENT occurrenceStatus semantic. This goes beyond the annotations and helps the agent interpret results correctly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three well-structured sentences: the first states purpose, the second lists contents, the third gives a critical interpretation warning. No filler, no repetition, and all information is actionable. The most important constraint (check occurrenceStatus) is front-loaded after the purpose.

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

Completeness4/5

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

For a single-record fetch with an output schema and safety annotations, the description covers the essential workflow (search → get), the return envelope, and the classification nuance. Minor omissions like error behavior or rate limits are not critical for this simple read operation, so it's nearly complete.

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?

The schema already provides full coverage (100%) of the single parameter occurrenceKey with the description 'GBIF occurrence key from gbif_search_occurrences results.' The tool description repeats this same information without adding new syntax, format, or edge-case details. Since the schema carries the load, the baseline of 3 is appropriate.

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 description opens with a clear and specific verb-resource pair: 'Fetch a single occurrence record by its GBIF occurrence key.' It enumerates exactly what the record contains (coordinates, GADM levels, dates, etc.), which distinguishes it from sibling getters like gbif_get_dataset or gbif_get_species. No ambiguity about what this tool does.

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 provides direct workflow guidance: 'Use the occurrence key from gbif_search_occurrences results' ties it to the search step. It also warns to check occurrenceStatus and explains the meaning of ABSENT, which is critical for correct interpretation. It does not explicitly name alternatives or say when not to use it, but given the tool is the only occurrence getter and has a distinct role, this is adequate.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a distinct action and resource pair: matching (single and batch), retrieving species details, hierarchy traversal, searching occurrences, counting, aggregating by facets, and searching datasets/publishers. There is no functional overlap or ambiguity between tools.

Naming Consistency4/5

The naming is largely consistent with the gbif_ prefix followed by a verb and noun (e.g., gbif_match_species, gbif_count_occurrences, gbif_get_dataset). However, a few tools use a search_<noun> pattern (e.g., gbif_search_datasets) and one uses a noun phrase without a verb (gbif_occurrence_facets), introducing a minor inconsistency.

Tool Count5/5

13 tools is well within the optimal range for a domain-specific API. The tools cover taxonomy resolution, species lookup and hierarchy, occurrence search/count/aggregation, and dataset/publisher discovery—no unnecessary bloat or sparse coverage.

Completeness4/5

The surface covers the core GBIF workflows: match → search/get occurrences, get species details and classification, and find datasets/publishers. Missing bulk download is explicitly acknowledged and not served by this tool, and searching datasets by taxon is indirect (via occurrence datasetKey), but these are workable gaps rather than blockers.