Skip to main content
Glama

gbif-biodiversity-mcp-server

Match Species Name

gbif_match_species
Read-onlyIdempotent

Match a scientific name against the GBIF backbone taxonomy. Returns the best-matching taxon with full classification and a confidence score (0–100). This is the mandatory first step for any GBIF workflow — it returns the backbone taxonKey required by gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets. When the name GBIF matched is a synonym — the queried name, or the higher taxon a HIGHERRANK match falls back to — taxonKey is the accepted taxon it resolves to and matchedTaxonKey carries the synonym's own key; occurrence counts differ sharply between the two, so pass taxonKey. acceptedName names that accepted taxon whenever GBIF's answer does. matchType HIGHERRANK is GBIF's label for a match made at a higher rank: a misspelled or unknown species falls back to its genus or even its kingdom, at a confidence that can exceed 90, and a bare genus name carries the label too, matched as that genus. taxonKey then covers that whole taxon, or its accepted taxon when it is a synonym, and a notice names it. Below confidence 80, the match should be reviewed. matchType NONE means no usable match was found — try removing the strict flag or broadening the name; when GBIF reports several equal matches, as for a genus name shared by an animal and a plant, set kingdom to pick one. GBIF no longer updates the backbone, so a name described or revised since its last build falls back to a higher taxon there; checklistKey 7ddf754f-d193-4cc9-b351-99906754a03b matches against the Catalogue of Life eXtended Release instead, GBIF's current taxonomy, and returns its keys as strings in checklistTaxonKey and checklistMatchedTaxonKey with no taxonKey or rank keys — they are not backbone keys, and no tool that takes a numeric taxonKey can use them, but gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets take checklistTaxonKey under that name, with checklistKey 7ddf754f-d193-4cc9-b351-99906754a03b.

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": {
      "name": "<name>"
    },
    "name": "gbif_match_species"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesScientific name to match. Examples: "Parus major", "Agaricus bisporus", "Homo sapiens". Fuzzy matching handles minor spelling variations. Common names are not supported — use gbif_search_species for vernacular name searches.
rankNoExpected taxonomic rank. Use to avoid matching a genus when you expect a species.
strictNoWhen true, only return an exact match. When false (default), GBIF applies fuzzy matching — useful for minor spelling variations and abbreviated names.
kingdomNoNarrow the match to a specific kingdom (e.g., "Animalia", "Plantae", "Fungi") to disambiguate names that appear in multiple kingdoms. Omit the field to match against the whole checklist — a blank or whitespace-only value is rejected rather than dropped, because GBIF answers one with the undisambiguated match, which is indistinguishable from a match that honored the kingdom.
checklistKeyNoTaxonomy to match against. Omitted, or d7dddbf4-2cf0-4f39-9b2a-bb099caae36c, is the GBIF Backbone, whose integer keys the occurrence and species tools take; GBIF no longer updates it. 7ddf754f-d193-4cc9-b351-99906754a03b is the Catalogue of Life eXtended Release, the taxonomy GBIF now maintains, where a recently described or revised name can match exactly; its keys come back as strings in checklistTaxonKey and checklistMatchedTaxonKey, and taxonKey, matchedTaxonKey, and the rank keys are absent.

Output Schema

NameRequiredDescriptionDefault
rankNoTaxonomic rank of the matched taxon.
classNoClass of the matched taxon.
errorNoPresent when the call failed. Absent on success.
genusNoGenus of the matched taxon.
orderNoOrder of the matched taxon.
familyNoFamily of the matched taxon.
noticeNoGuidance when matchType is HIGHERRANK — naming the taxon and rank GBIF matched and what the key covers — or when the matched name was a synonym and the key was resolved to the accepted taxon. A higher-rank match on a synonym carries both. Absent on any other match of an accepted name.
phylumNoPhylum of the matched taxon.
statusNoTaxonomic status of the matched name: ACCEPTED, SYNONYM, or DOUBTFUL, and under the Catalogue of Life also PROVISIONALLY_ACCEPTED.
kingdomNoKingdom of the matched taxon.
speciesNoSpecies canonical name of the matched taxon.
classKeyNoBackbone taxon key for the class. Absent under the Catalogue of Life.
genusKeyNoBackbone taxon key for the genus. Absent under the Catalogue of Life.
orderKeyNoBackbone taxon key for the order. Absent under the Catalogue of Life.
taxonKeyNoGBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key. Absent under the Catalogue of Life, whose key is checklistTaxonKey.
familyKeyNoBackbone taxon key for the family. Absent under the Catalogue of Life.
matchTypeNoEXACT, FUZZY, HIGHERRANK, or NONE; under the Catalogue of Life, VARIANT takes the place of FUZZY for a variant spelling or authorship. HIGHERRANK means GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — and the key covers that whole taxon, or its accepted taxon when it is a synonym. NONE means no usable match.
phylumKeyNoBackbone taxon key for the phylum. Absent under the Catalogue of Life.
confidenceNoMatch confidence score 0–100. Below 80 warrants review. A HIGHERRANK match can score above 90, so read matchType too.
kingdomKeyNoBackbone taxon key for the kingdom. Absent under the Catalogue of Life.
speciesKeyNoBackbone taxon key for the species. Absent under the Catalogue of Life.
acceptedNameNoCanonical name, without authorship, of the accepted taxon a synonym resolves to. Present only on a synonym match whose answer names that taxon: under the backbone it is read from the classification field whose key equals taxonKey, so it is absent when the accepted taxon is below species rank (call gbif_get_species with taxonKey for it); under the Catalogue of Life every synonym carries it.
canonicalNameNoScientific name without authorship.
scientificNameNoFull scientific name with authorship.
matchedTaxonKeyNoBackbone key of the name that actually matched. Present only when it differs from taxonKey — that is, when a synonym was resolved to its accepted taxon.
checklistTaxonKeyNoCatalogue of Life key of the accepted taxon (or of the matched taxon when it is not a synonym), a case-sensitive string such as TPJ7G. Present only when checklistKey selects the Catalogue of Life. Not a backbone key: a digit-only one such as 8288 names an unrelated backbone taxon, so never pass it where a numeric taxonKey is asked for. The occurrence tools take it as checklistTaxonKey, with checklistKey 7ddf754f-d193-4cc9-b351-99906754a03b.
checklistMatchedTaxonKeyNoCatalogue of Life key of the name that actually matched. Present only when it differs from checklistTaxonKey — that is, when a synonym was resolved to its accepted taxon.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedInput schema / properties / checklistKey
      Added value: +{
      +  "description": "Taxonomy to match against. Omitted, or d7dddbf4-2cf0-4f39-9b2a-bb099caae36c, is the GBIF Backbone, whose integer keys the occurrence and species tools take; GBIF no longer updates it. 7ddf754f-d193-4cc9-b351-99906754a03b is the Catalogue of Life eXtended Release, the taxonomy GBIF now maintains, where a recently described or revised name can match exactly; its keys come back as strings in checklistTaxonKey and checklistMatchedTaxonKey, and taxonKey, matchedTaxonKey, and the rank keys are absent.",
      +  "enum": [
      +    "d7dddbf4-2cf0-4f39-9b2a-bb099caae36c",
      +    "7ddf754f-d193-4cc9-b351-99906754a03b"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / kingdom / description
      Previous value: -"Narrow the match to a specific kingdom (e.g., \"Animalia\", \"Plantae\", \"Fungi\") to disambiguate names that appear in multiple kingdoms. Omit the field to match against the whole backbone — a blank or whitespace-only value is rejected rather than dropped, because GBIF answers one with the undisambiguated match, which is indistinguishable from a match that honored the kingdom."New value: +"Narrow the match to a specific kingdom (e.g., \"Animalia\", \"Plantae\", \"Fungi\") to disambiguate names that appear in multiple kingdoms. Omit the field to match against the whole checklist — a blank or whitespace-only value is rejected rather than dropped, because GBIF answers one with the undisambiguated match, which is indistinguishable from a match that honored the kingdom."
    • addedOutput schema / properties / acceptedName
      Added value: +{
      +  "description": "Canonical name, without authorship, of the accepted taxon a synonym resolves to. Present only on a synonym match whose answer names that taxon: under the backbone it is read from the classification field whose key equals taxonKey, so it is absent when the accepted taxon is below species rank (call gbif_get_species with taxonKey for it); under the Catalogue of Life every synonym carries it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / checklistMatchedTaxonKey
      Added value: +{
      +  "description": "Catalogue of Life key of the name that actually matched. Present only when it differs from checklistTaxonKey — that is, when a synonym was resolved to its accepted taxon.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / checklistTaxonKey
      Added value: +{
      +  "description": "Catalogue of Life key of the accepted taxon (or of the matched taxon when it is not a synonym), a case-sensitive string such as TPJ7G. Present only when checklistKey selects the Catalogue of Life. Not a backbone key: a digit-only one such as 8288 names an unrelated backbone taxon, so never pass it where a numeric taxonKey is asked for. The occurrence tools take it as checklistTaxonKey, with checklistKey 7ddf754f-d193-4cc9-b351-99906754a03b.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / classKey / description
      Previous value: -"Backbone taxon key for the class."New value: +"Backbone taxon key for the class. Absent under the Catalogue of Life."
    • changedOutput schema / properties / familyKey / description
      Previous value: -"Backbone taxon key for the family."New value: +"Backbone taxon key for the family. Absent under the Catalogue of Life."
    • changedOutput schema / properties / genusKey / description
      Previous value: -"Backbone taxon key for the genus."New value: +"Backbone taxon key for the genus. Absent under the Catalogue of Life."
    • changedOutput schema / properties / kingdomKey / description
      Previous value: -"Backbone taxon key for the kingdom."New value: +"Backbone taxon key for the kingdom. Absent under the Catalogue of Life."
    • changedOutput schema / properties / matchType / description
      Previous value: -"EXACT, FUZZY, HIGHERRANK, or NONE. HIGHERRANK means GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — and taxonKey covers that whole taxon, or its accepted taxon when it is a synonym. NONE means no usable match."New value: +"EXACT, FUZZY, HIGHERRANK, or NONE; under the Catalogue of Life, VARIANT takes the place of FUZZY for a variant spelling or authorship. HIGHERRANK means GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — and the key covers that whole taxon, or its accepted taxon when it is a synonym. NONE means no usable match."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when matchType is HIGHERRANK — naming the taxon and rank GBIF matched and what taxonKey covers — or when the matched name was a synonym and taxonKey was resolved to the accepted taxon. A higher-rank match on a synonym carries both. Absent on an EXACT or FUZZY match of an accepted name."New value: +"Guidance when matchType is HIGHERRANK — naming the taxon and rank GBIF matched and what the key covers — or when the matched name was a synonym and the key was resolved to the accepted taxon. A higher-rank match on a synonym carries both. Absent on any other match of an accepted name."
    • changedOutput schema / properties / orderKey / description
      Previous value: -"Backbone taxon key for the order."New value: +"Backbone taxon key for the order. Absent under the Catalogue of Life."
    • changedOutput schema / properties / phylumKey / description
      Previous value: -"Backbone taxon key for the phylum."New value: +"Backbone taxon key for the phylum. Absent under the Catalogue of Life."
    • changedOutput schema / properties / speciesKey / description
      Previous value: -"Backbone taxon key for the species."New value: +"Backbone taxon key for the species. Absent under the Catalogue of Life."
    • changedOutput schema / properties / status / description
      Previous value: -"Taxonomic status: ACCEPTED, SYNONYM, or DOUBTFUL."New value: +"Taxonomic status of the matched name: ACCEPTED, SYNONYM, or DOUBTFUL, and under the Catalogue of Life also PROVISIONALLY_ACCEPTED."
    • changedOutput schema / properties / taxonKey / description
      Previous value: -"GBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key."New value: +"GBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key. Absent under the Catalogue of Life, whose key is checklistTaxonKey."
  2. Changed5 schema fields changed
    • changedOutput schema / properties / confidence / description
      Previous value: -"Match confidence score 0–100. Below 80 warrants review."New value: +"Match confidence score 0–100. Below 80 warrants review. A HIGHERRANK match can score above 90, so read matchType too."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: matchType is NONE — no candidate met the match threshold. `invalid_filter`: kingdom was supplied blank or whitespace-only, which disambiguates nothing. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: matchType is NONE — no candidate met the match threshold, or several equal candidates tied; the message then carries GBIF's note. `invalid_filter`: kingdom was supplied blank or whitespace-only, which disambiguates nothing. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / matchType / description
      Previous value: -"EXACT, FUZZY, HIGHERRANK, or NONE. NONE means no usable match."New value: +"EXACT, FUZZY, HIGHERRANK, or NONE. HIGHERRANK means GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — and taxonKey covers that whole taxon, or its accepted taxon when it is a synonym. NONE means no usable match."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when the queried name was a synonym and taxonKey was resolved to the accepted taxon. Absent when the matched name is already the accepted one."New value: +"Guidance when matchType is HIGHERRANK — naming the taxon and rank GBIF matched and what taxonKey covers — or when the matched name was a synonym and taxonKey was resolved to the accepted taxon. A higher-rank match on a synonym carries both. Absent on an EXACT or FUZZY match of an accepted name."
    • changedOutput schema / properties / taxonKey / description
      Previous value: -"GBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the queried name is a synonym, otherwise the matched taxon's own key."New value: +"GBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key."
  3. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `no_match`: matchType is NONE — no candidate met the match threshold. `invalid_filter`: kingdom was supplied blank or whitespace-only, which disambiguates nothing. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "no_match",
      +            "invalid_filter"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / kingdom / description
      Previous value: -"Narrow the match to a specific kingdom (e.g., \"Animalia\", \"Plantae\", \"Fungi\") to disambiguate names that appear in multiple kingdoms."New value: +"Narrow the match to a specific kingdom (e.g., \"Animalia\", \"Plantae\", \"Fungi\") to disambiguate names that appear in multiple kingdoms. Omit the field to match against the whole backbone — a blank or whitespace-only value is rejected rather than dropped, because GBIF answers one with the undisambiguated match, which is indistinguishable from a match that honored the kingdom."
  5. Changed3 schema fields changed
    • addedOutput schema / properties / matchedTaxonKey
      Added value: +{
      +  "description": "Backbone key of the name that actually matched. Present only when it differs from taxonKey — that is, when a synonym was resolved to its accepted taxon.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Guidance when the queried name was a synonym and taxonKey was resolved to the accepted taxon. Absent when the matched name is already the accepted one.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / taxonKey / description
      Previous value: -"GBIF backbone taxon key. Use this in downstream tools. Absent when matchType is NONE."New value: +"GBIF backbone taxon key to pass to downstream tools. The accepted taxon's key when the queried name is a synonym, otherwise the matched taxon's own key."
  6. Changed1 schema field changed
    • changedOutput schema / properties / matchType / description
      Previous value: -"EXACT, FUZZY, HIGHERORDER, or NONE. NONE means no usable match."New value: +"EXACT, FUZZY, HIGHERRANK, or NONE. NONE means no usable match."
  7. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, so the description is free to spend its length on real behavior: synonym resolution, the matchedTaxonKey vs taxonKey split, HIGHERRANK fallback semantics with its confidence caveat, and the fact that checklist keys are strings unusable by numeric-taxonKey tools. The only shortfall is that this is delivered as a dense wall of clauses rather than being organized around the decision points; no contradiction with the readOnly/idempotent annotations.

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

Conciseness3/5

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

Purpose and the mandatory-first-step claim are correctly front-loaded, but the prose then sprawls into long comma-spliced sentences and repeats the full checklist UUID twice in the closing sentence, restating what the schema's checklistKey description already covers. A meaningful fraction of the text could be trimmed without losing information.

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?

Despite an output schema existing, the description goes further by explaining how to read the response: which key to pass downstream when a synonym is involved, what HIGHERRANK means for taxonKey's scope, and what NONE implies. For a five-parameter, two-taxonomy matching tool this covers everything an agent needs to call and interpret it.

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%, so 3 is the baseline, but the description earns more by explaining consequences the schema only hints at: that strict=false enables fuzzy fallback, that removing strict is the recovery path for NONE, and that checklistKey changes key types and strips taxonKey/rank keys entirely. This goes beyond restating field docs into how parameter choices change downstream usability.

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?

States a specific verb and resource — 'Match a scientific name against the GBIF backbone taxonomy' — and immediately scopes the return value ('best-matching taxon with full classification and a confidence score'). It distinguishes itself from gbif_search_species (vernacular names) and implicitly from gbif_bulk_match_species by framing itself as the single-name first step.

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 declares itself 'the mandatory first step for any GBIF workflow' and names the three downstream tools that consume its taxonKey. It also gives concrete recovery paths: remove the strict flag or broaden the name on matchType NONE, set kingdom when GBIF reports equal matches, review below confidence 80, and switch to checklistKey when a name postdates the frozen backbone.

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.