Skip to main content
Glama

Worms Get Classification

worms_get_classification
Read-onlyIdempotent

Retrieve root-to-tip classification and optional direct children for an AphiaID or canonical WoRMS LSID. resultOffset indexes lineage followed by fetched children; consume nextResultOffset with unchanged options and upstream offset before advancing page.nextOffset and resetting resultOffset to zero. Missing ranks remain unknown; child offset and filters are inactive without includeChildren. A full fetched 50-row child page has uncertain continuation and can lead to an empty page. The submitted ID keeps its own recorded lineage; a notice names its linked accepted ID, distinguishing an accepted alternative representation from its preferred ID.

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

Input Schema

NameRequiredDescriptionDefault
offsetNoOne-based starting record, advancing by 50; default 1.
aphiaIdYesPositive safe-integer AphiaID, decimal string, or canonical urn:lsid:marinespecies.org:taxname:<AphiaID>; outputs remain numeric.
extantOnlyNoExtant children only; inactive without includeChildren.
marineOnlyNoMarine or brackish children only; inactive without includeChildren.
resultOffsetNoZero-based position in lineage followed by fetched children; keep upstream offset unchanged until nextResultOffset is null.
includeChildrenNoAlso fetch one page of direct children.

Output Schema

NameRequiredDescriptionDefault
echoNoEffective options; child-only options inactive when includeChildren is false.
pageNoChildren pagination only.
errorNoPresent when the call failed. Absent on success.
foundNoWhether classification exists.
ranksNoThis segment of the root-to-tip lineage.
noticeNoLinked accepted/preferred-AphiaID and empty-children-page guidance, in that order.
aphiaIdNoPositive safe-integer AphiaID; obtain from worms_resolve_taxon.
childrenNoOne page of direct children when requested and retrieved.
guidanceNoNext step for absent classification.
byteBudgetNoComplete serialized response byte target.
totalCountNoKnown local sequence length before pagination.
attributionNoWoRMS source attribution.
statusErrorNoFailed taxonomic-status read; evidence is unaffected, but whether the AphiaID is its accepted name is unknown.
resultOffsetNoZero-based starting position in the complete local sequence.
budgetLimitedNoWhether the byte budget ended this local page early.
childrenErrorNoOptional children retrieval failure.
oversizedItemNoOne indivisible scientific item exceeds the target; retained intact with forward progress.
requiredBytesNoSerialized paired-surface result bytes for an oversized item, excluding transport-added metadata.
returnedCountNoWhole scientific items returned on this segment.
nextResultOffsetNoNext local position; null when consumed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / children / items / properties / authority
      Added value: +{
      +  "description": "Authorship.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / children / items / properties / validAphiaId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Accepted taxon identifier."
      +}
    • addedOutput schema / properties / children / items / properties / validName
      Added value: +{
      +  "description": "Accepted scientific name.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / marineOnly / description
      Previous value: -"Marine children only; inactive without includeChildren."New value: +"Marine or brackish children only; inactive without includeChildren."
  3. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses several non-obvious behaviors: missing ranks are reported as unknown, a fully fetched 50-row child page has uncertain continuation and can yield an empty page, child offset and filters are silently inactive without includeChildren, and a submitted ID retains its own recorded lineage while a notice names its linked accepted ID. Those are real operational pitfalls an agent could not derive from annotations or schema.

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 is front-loaded, but the pagination sentences are densely chained clauses with heavy jargon ('consume nextResultOffset with unchanged options and upstream offset before advancing page.nextOffset and resetting resultOffset to zero') that require re-reading. Every sentence carries information, yet the packaging makes it hard to parse on first pass.

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 six-parameter tool with lineage-plus-children pagination, the description covers the pagination protocol, filter inactivity, and ID-resolution edge cases, and the presence of an output schema removes the need to explain return shapes. The remaining gap is routing guidance relative to sibling tools, which an agent working across the WoRMS family would want.

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 above baseline by explaining the cross-parameter protocol that no individual schema property states — resultOffset indexes lineage first then fetched children, and nextResultOffset must be consumed with unchanged options and upstream offset before advancing page.nextOffset and resetting resultOffset. It also clarifies that child offset and filters are inert when includeChildren is false.

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 first sentence gives a specific verb and resource ('Retrieve root-to-tip classification and optional direct children') plus the accepted identifier forms (AphiaID or canonical WoRMS LSID). It does not name any sibling to contrast with, so an agent must infer the distinction from worms_get_taxon or worms_get_synonyms from the resource noun alone.

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?

The description is rich on operational mechanics — when includeChildren unlocks child offset and filters, and how to sequence resultOffset with nextResultOffset — but that is in-tool parameter usage rather than tool selection. There is no statement of when to choose this over worms_get_taxon or worms_get_distributions, so the when-to-use-versus-alternatives guidance is only implied.

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.