Skip to main content
Glama

Worms Get Traits

worms_get_traits
Read-onlyIdempotent

Retrieve recorded attributes for an AphiaID or canonical WoRMS LSID, including inherited attributes by default. Resume nextResultOffset as resultOffset with unchanged selectors and options. Whole rows retain original preorder nodeIndex and parentIndex across pages; parents may be on earlier pages. measurementType keeps each matching node with its subtree and ancestors, indices unchanged; totalCount counts that set and unfilteredCount the whole tree. Values, references and inheritance markers remain unchanged; on an accepted taxon WoRMS also returns attributes recorded on its synonyms whatever includeInherited is set to, marked by inheritedFrom. A notice names the linked accepted ID, distinguishing an accepted alternative representation from its preferred ID. Missing traits do not prove biological absence; IUCN list membership is not a threat category.

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_traits"
  }
}

Input Schema

NameRequiredDescriptionDefault
aphiaIdYesPositive safe-integer AphiaID, decimal string, or canonical urn:lsid:marinespecies.org:taxname:<AphiaID>; outputs remain numeric.
resultOffsetNoZero-based local position; resubmit unchanged selectors and options.
measurementTypeNoCase-insensitive whole-value measurement type, not trimmed, e.g. Body size; blank means no filter. Names come from worms_list_reference with topic: trait_types.
includeInheritedNoInclude attributes inherited from higher taxa; default true.

Output Schema

NameRequiredDescriptionDefault
echoNoEffective options.
errorNoPresent when the call failed. Absent on success.
foundNoWhether WoRMS has the submitted taxon record; null when the status read failed.
noticeNoLinked accepted/preferred-AphiaID and absent-attribute guidance, in that order.
traitsNoThis preorder segment; indices refer to the complete original tree.
aphiaIdNoPositive safe-integer AphiaID; obtain from worms_resolve_taxon.
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.
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.
unfilteredCountNoNodes in the complete tree before the measurementType filter.
nextResultOffsetNoNext local position; null when consumed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "resultOffset",
      -      "returnedCount",
      -      "totalCount",
      -      "nextResultOffset",
      -      "byteBudget",
      -      "budgetLimited",
      -      "oversizedItem",
      -      "aphiaId",
      -      "unfilteredCount",
      -      "traits",
      -      "attribution",
      -      "echo"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "resultOffset",
      +      "returnedCount",
      +      "totalCount",
      +      "nextResultOffset",
      +      "byteBudget",
      +      "budgetLimited",
      +      "oversizedItem",
      +      "aphiaId",
      +      "found",
      +      "unfilteredCount",
      +      "traits",
      +      "attribution",
      +      "echo"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / found
      Added value: +{
      +  "description": "Whether WoRMS has the submitted taxon record; null when the status read failed.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world, yet the description goes further: stable nodeIndex/parentIndex across pages with parents possibly on earlier pages, totalCount versus unfilteredCount semantics, inheritedFrom markers, and the notable rule that synonym attributes are returned on an accepted taxon regardless of includeInherited. It also flags two interpretive traps (missing traits ≠ absence, IUCN list membership ≠ threat category). Some of the paging index detail is dense and hard to act on, but the behavioral disclosure is well above the annotation baseline.

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?

The core purpose and scope are front-loaded in the first sentence and no sentence is purely decorative; each adds a distinct rule. However, several later sentences pack multiple clauses of index/count jargon without structure, making the middle portion slow to parse.

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?

Given an output schema exists, the description need not enumerate return fields, and it still covers paging, filtering, inheritance, synonym inclusion and caveats, which is more than enough for a four-parameter read tool. The only shortfall is the absence of routing guidance against sibling tools, which leaves a small gap in deciding when to call this one.

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 coverage is 100%, so the schema already defines aphiaId, resultOffset, measurementType and includeInherited. The description adds genuine meaning for resultOffset paging continuity and for measurementType's subtree-and-ancestor retention behavior, but repeats the includeInherited default rather than expanding it, netting slightly above the baseline.

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 opening sentence gives a specific verb and resource (retrieve recorded attributes for an AphiaID or canonical LSID) plus the default inheritance behavior, which clearly separates it from siblings like worms_get_classification or worms_get_distributions. It never names a sibling explicitly, so differentiation is inferable rather than stated.

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 explains how to resume paging ('resume nextResultOffset as resultOffset with unchanged selectors and options') and how measurementType narrows results, which implies correct usage. It does not state when an agent should choose this over the other trait/taxon tools, nor any prerequisites beyond the schema note pointing at worms_resolve_taxon.

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.