Skip to main content
Glama

gbif-biodiversity-mcp-server

Bulk Match Species Names

gbif_bulk_match_species
Read-onlyIdempotent

Resolve up to 50 scientific names to GBIF backbone taxon keys in one call — the batch counterpart to gbif_match_species for checklist, inventory, and species-list workflows that would otherwise need one round trip per name. Each name is matched independently and results are returned in input order, one entry per processed name. An entry is a name string, or { name, kingdom } to narrow that one name to a kingdom: a name shared across kingdoms, such as Oenanthe (a bird genus and a plant genus), matches nothing until its entry names one, while a kingdom applied to every name would move the others (Parus major under Plantae matches the pear Pyrus major). By default, an oversized batch processes the first 50 and returns the remaining entries, as submitted, in unprocessedNames. A name GBIF matched at a higher rank yields matchType HIGHERRANK with a note naming the taxon matched and what its key covers: that whole taxon, or its accepted taxon when it is a synonym — a misspelled species can fall back to its genus or kingdom at a confidence above 90, and a bare genus name carries the label too, matched as that genus. A name with no match yields matchType NONE (no key) instead of failing the batch, with a note carrying GBIF's explanation when it gives one, such as several equal matches for a name shared across kingdoms; a per-name lookup failure yields matchType ERROR carrying that name's error message and, when the failure was classified, a machine-readable reason — the rest of the batch is unaffected, and the call as a whole still succeeds unless the deployment cannot reach the Catalogue of Life route checklistKey needs (a GBIF_BASE_URL not ending in /v1), which fails the call. 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, matchedTaxonKey carries the synonym's own key, and acceptedName names the accepted taxon whenever GBIF's answer does. checklistKey 7ddf754f-d193-4cc9-b351-99906754a03b matches the whole batch against the Catalogue of Life eXtended Release instead of the backbone, which GBIF no longer updates; its keys come back as strings in checklistTaxonKey and checklistMatchedTaxonKey, with no taxonKey, and the occurrence tools take checklistTaxonKey under that name, with the same checklistKey. Common names are not supported — use gbif_search_species for vernacular searches. Below confidence 80, review the match.

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

Input Schema

NameRequiredDescriptionDefault
namesYesScientific names to match, each a name string or { name, kingdom } — an entry kingdom applies to that name alone and is how a name GBIF reports several equal matches for is resolved. Up to 50 are matched in parallel; additional entries are returned as submitted in unprocessedNames when read-limit clamping is enabled (default). Every submitted entry must be valid, and a blank kingdom on any of them fails the call.
strictNoWhen true, require an exact match for every name (no fuzzy matching). When false (default), GBIF applies fuzzy matching to tolerate minor misspellings.
checklistKeyNoTaxonomy to match every name 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; its keys come back as strings in checklistTaxonKey and checklistMatchedTaxonKey, and taxonKey and matchedTaxonKey are absent.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoRequested and applied batch size when names exceed the 50-name workload cap.
resultsNoOne result per processed input name, in input order (at most 50).
unprocessedNamesNoEntries beyond the first 50, as submitted, in original order including duplicates. Submit these entries in another call. Absent when every entry was processed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / properties / checklistKey
      Added value: +{
      +  "description": "Taxonomy to match every name 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; its keys come back as strings in checklistTaxonKey and checklistMatchedTaxonKey, and taxonKey and matchedTaxonKey are absent.",
      +  "enum": [
      +    "d7dddbf4-2cf0-4f39-9b2a-bb099caae36c",
      +    "7ddf754f-d193-4cc9-b351-99906754a03b"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / names / description
      Previous value: -"Scientific names to match against the GBIF backbone. Up to 50 are matched in parallel; additional names are returned in unprocessedNames when read-limit clamping is enabled (default). Every submitted name must be valid."New value: +"Scientific names to match, each a name string or { name, kingdom } — an entry kingdom applies to that name alone and is how a name GBIF reports several equal matches for is resolved. Up to 50 are matched in parallel; additional entries are returned as submitted in unprocessedNames when read-limit clamping is enabled (default). Every submitted entry must be valid, and a blank kingdom on any of them fails the call."
    • addedInput schema / properties / names / items / anyOf
      Added value: +[
      +  {
      +    "description": "A scientific name to match, e.g. \"Panthera leo\".",
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A scientific name with a kingdom that applies to it alone.",
      +    "properties": {
      +      "kingdom": {
      +        "description": "Kingdom for this name alone, such as Animalia, Plantae, or Fungi, sent to GBIF as gbif_match_species sends its own. Omit it to match the name without one; a blank or whitespace-only value is rejected.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "A scientific name to match, e.g. \"Oenanthe\".",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / names / items / description
      Previous value: -"A scientific name to match, e.g. \"Panthera leo\"."New value: +"A scientific name, or { name, kingdom } to narrow that one name to a kingdom."
    • removedInput schema / properties / names / items / minLength
      Removed value: -1
    • removedInput schema / properties / names / items / type
      Removed value: -"string"
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_filter`: An entry in names carried a blank or whitespace-only kingdom, which disambiguates nothing. Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / error / properties / data / properties / reason / examples
      Added value: +[
      +  "invalid_filter"
      +]
    • addedOutput schema / properties / results / items / 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 absent when the accepted taxon is below species rank (gbif_get_species with taxonKey names it); under the Catalogue of Life every synonym carries it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / results / items / 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 / results / items / 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. Present only when checklistKey selects the Catalogue of Life. Not a backbone key: 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 / results / items / properties / matchType / description
      Previous value: -"EXACT or FUZZY for a match; HIGHERRANK when GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — so taxonKey covers that whole taxon, or its accepted taxon when it is a synonym (see note); NONE when GBIF found no usable match; ERROR when the lookup itself failed for this name (see error)."New value: +"EXACT or FUZZY for a match, with VARIANT in place of FUZZY under the Catalogue of Life; HIGHERRANK when GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — so the key covers that whole taxon, or its accepted taxon when it is a synonym (see note); NONE when GBIF found no usable match; ERROR when the lookup itself failed for this name (see error)."
    • changedOutput schema / properties / results / items / properties / note / description
      Previous value: -"On HIGHERRANK, names the taxon and rank GBIF matched and what taxonKey covers: that whole taxon, or its accepted taxon when it is a synonym. On NONE, GBIF's own explanation when it gave one — for a name shared across kingdoms, its report of several equal matches, with a pointer to retry that name through gbif_match_species with kingdom. Absent on EXACT, FUZZY, and ERROR entries, and on a NONE GBIF did not explain."New value: +"On HIGHERRANK, names the taxon and rank GBIF matched and what the key covers: that whole taxon, or its accepted taxon when it is a synonym. On NONE, GBIF's own explanation when it gave one — for a name shared across kingdoms, its report of several equal matches, with a pointer to resubmit the entry with kingdom set unless it already carried one. Absent on other matches, on ERROR entries, and on a NONE GBIF did not explain."
    • changedOutput schema / properties / results / items / 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 / results / items / properties / taxonKey / description
      Previous value: -"GBIF backbone taxon key to pass to gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets — the accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key. Absent when matchType is NONE or ERROR."New value: +"GBIF backbone taxon key to pass to gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets — the accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key. Absent when matchType is NONE or ERROR, and under the Catalogue of Life."
    • changedOutput schema / properties / unprocessedNames / description
      Previous value: -"Names beyond the first 50, in original order including duplicates. Submit these names in another call. Absent when every name was processed."New value: +"Entries beyond the first 50, as submitted, in original order including duplicates. Submit these entries in another call. Absent when every entry was processed."
    • addedOutput schema / properties / unprocessedNames / items / anyOf
      Added value: +[
      +  {
      +    "description": "A name submitted as a string.",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A name submitted as { name, kingdom }.",
      +    "properties": {
      +      "kingdom": {
      +        "description": "The submitted kingdom, when given.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The submitted name.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / unprocessedNames / items / description
      Added value: +"One remaining entry, exactly as submitted."
    • removedOutput schema / properties / unprocessedNames / items / type
      Removed value: -"string"
  2. Changed5 schema fields changed
    • changedOutput schema / properties / results / items / properties / confidence / description
      Previous value: -"Match confidence 0–100. Below 80 warrants review. Absent on ERROR."New value: +"Match confidence 0–100. Below 80 warrants review; a HIGHERRANK match can score above 90, so read matchType too. Absent on ERROR."
    • changedOutput schema / properties / results / items / properties / matchType / description
      Previous value: -"EXACT, FUZZY, or HIGHERRANK for a match; NONE when GBIF found no usable match; ERROR when the lookup itself failed for this name (see error)."New value: +"EXACT or FUZZY for a match; HIGHERRANK when GBIF matched at a higher rank — a misspelled species falls back to its genus or kingdom, and a bare genus name carries it too — so taxonKey covers that whole taxon, or its accepted taxon when it is a synonym (see note); NONE when GBIF found no usable match; ERROR when the lookup itself failed for this name (see error)."
    • addedOutput schema / properties / results / items / properties / note
      Added value: +{
      +  "description": "On HIGHERRANK, names the taxon and rank GBIF matched and what taxonKey covers: that whole taxon, or its accepted taxon when it is a synonym. On NONE, GBIF's own explanation when it gave one — for a name shared across kingdoms, its report of several equal matches, with a pointer to retry that name through gbif_match_species with kingdom. Absent on EXACT, FUZZY, and ERROR entries, and on a NONE GBIF did not explain.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / results / items / properties / reason / description
      Previous value: -"Machine-readable failure identifier when matchType is ERROR — e.g. invalid_filter when GBIF rejected a supplied value. Absent when the failure carried no classification, and absent on every non-ERROR entry."New value: +"Machine-readable failure identifier when matchType is ERROR and the failure was classified. Absent when the failure carried no classification, and absent on every non-ERROR entry."
    • changedOutput schema / properties / results / items / properties / taxonKey / description
      Previous value: -"GBIF backbone taxon key to pass to gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets — the accepted taxon's key when this name is a synonym, otherwise the matched taxon's own key. Absent when matchType is NONE or ERROR."New value: +"GBIF backbone taxon key to pass to gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets — the accepted taxon's key when the name GBIF matched is a synonym, otherwise the matched taxon's own key. Absent when matchType is NONE or ERROR."
  3. Changed5 schema fields changed
    • changedInput schema / properties / names / description
      Previous value: -"Scientific names to match against the GBIF backbone. 1–50 per call, matched in parallel."New value: +"Scientific names to match against the GBIF backbone. Up to 50 are matched in parallel; additional names are returned in unprocessedNames when read-limit clamping is enabled (default). Every submitted name must be valid."
    • removedInput schema / properties / names / maxItems
      Removed value: -50
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Requested and applied batch size when names exceed the 50-name workload cap.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / results / description
      Previous value: -"One result per input name, in input order."New value: +"One result per processed input name, in input order (at most 50)."
    • addedOutput schema / properties / unprocessedNames
      Added value: +{
      +  "description": "Names beyond the first 50, in original order including duplicates. Submit these names in another call. Absent when every name was processed.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed6 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": [
      +      "results"
      +    ]
      +  },
      +  {
      +    "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.",
      +          "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"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "results"
      -]
  5. Changed4 schema fields changed
    • changedOutput schema / properties / results / items / properties / error / description
      Previous value: -"Failure reason when matchType is ERROR. Absent otherwise."New value: +"Failure message when matchType is ERROR. Absent otherwise."
    • addedOutput schema / properties / results / items / 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 / results / items / properties / reason
      Added value: +{
      +  "description": "Machine-readable failure identifier when matchType is ERROR — e.g. invalid_filter when GBIF rejected a supplied value. Absent when the failure carried no classification, and absent on every non-ERROR entry.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / results / items / properties / taxonKey / description
      Previous value: -"Matched GBIF backbone taxon key — use in gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets. Absent when matchType is NONE or ERROR."New value: +"GBIF backbone taxon key to pass to gbif_search_occurrences, gbif_count_occurrences, and gbif_occurrence_facets — the accepted taxon's key when this name is a synonym, otherwise the matched taxon's own key. Absent when matchType is NONE or ERROR."
  6. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, openWorld); the description adds substantial behavior beyond that: result ordering, per-name independence, oversized-batch clamping into unprocessedNames, the HIGHERRANK/NONE/ERROR match taxonomy, synonym handling (taxonKey vs matchedTaxonKey vs acceptedName), and the specific condition under which the whole call fails (Catalogue of Life route unreachable). It even notes the confidence-80 review threshold.

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?

The first sentence is front-loaded and earns its place, but the body is a dense series of run-on sentences where several points (synonym key fields, checklistKey types) pack multiple concepts into one clause. Almost nothing is filler, yet readability suffers and structure could be tightened.

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 3-parameter batch tool with an output schema, the description is complete: it covers input forms, batch limits, per-entry failure isolation, result ordering, match-type outcomes, and the checklist route caveat. Nothing an agent needs to call it correctly is missing.

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 the baseline is 3; the description earns credit by explaining why kingdom is per-entry rather than batch-wide, with a vivid example (Oenanthe; Parus major vs Pyrus major), and by spelling out what checklistKey does and how its keys differ in type from backbone keys. This adds genuine meaning beyond the schema text.

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 opening clause delivers a specific verb, resource, scope, and sibling relationship: 'Resolve up to 50 scientific names to GBIF backbone taxon keys in one call — the batch counterpart to gbif_match_species.' An agent can immediately tell what it does and how it differs from the per-name sibling.

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 names concrete use cases (checklist, inventory, species-list workflows needing one round trip per name) and adds an explicit exclusion: 'Common names are not supported — use gbif_search_species for vernacular searches.' It also implies when to flip checklistKey. It stops short of a full when/when-not decision rule against every alternative, so 4 rather than 5.

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.