Skip to main content
Glama

Search library elements

search-library-elements
Read-onlyIdempotent

Find taxonomy elements by a phrase or a qname: reporting concepts (rs-gaap and the other standards) and this graph's own accounts, matched against qname, name and label.

WHEN TO USE:

  • Turning a qname (rs-gaap:ProceedsFromIssuanceOfLongTermDebt) or a phrase ("deferred revenue") into an element id for a mapping, a flow or a schedule

  • Checking which reporting concept an idea is called before mapping to it

PARAMETERS:

  • query (required): one or more words; each must appear in the qname, name or label text

  • source (optional): one standard only, e.g. rs-gaap

  • whole_library (optional, default false): search every concept the reporting library has, not only the ones this graph already holds. Use it to name a line of a report being received with ingest-report; a mapping or a schedule needs a concept this graph holds

  • brief (optional, default false): return one short row per concept (id, qname, label, balance_type, period_type, trait, is_abstract) without documentation and references. Use it when choosing among many candidates

  • limit (optional, default 50, 1 to 500)

RETURNS: elements, closest name first (the exact name, then names that start with the query, then names that contain it, shorter names first): each with id, qname, namespace, name, trait, balance_type, period_type, is_abstract, is_monetary, element_type, source, taxonomy_id, parent_id, labels and references; with brief, the short row.

RELATED TOOLS:

  • suggest-mapping — ranked concepts for one account

  • list-element-arcs — what an element maps to

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": {
      "query": "<query>"
    },
    "name": "search-library-elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefNoOne short row per concept, without documentation and references.
limitNo
queryYesSubstring of the qname, name or label text.
sourceNoOne standard, e.g. rs-gaap.
whole_libraryNoSearch the whole reporting library rather than this graph's own working set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description goes further by disclosing result ordering (exact name, then prefix, then substring; shorter names first), the default 50 and 1-500 limit range, and what brief mode omits (documentation and references). It does not mention truncation behavior when results exceed limit, which is the remaining gap.

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?

Front-loaded with a one-line purpose, then headed WHEN TO USE, PARAMETERS, RETURNS and RELATED TOOLS sections, so the agent can scan to the part it needs. Minor redundancy between the PARAMETERS bullets and the schema descriptions, but each bullet contributes usage context rather than restating types.

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?

No output schema exists, and the RETURNS section compensates fully by enumerating every returned field, including the abbreviated brief row. Combined with the parameter guidance and sibling routing, an agent has everything needed to call and interpret this search correctly.

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 80%, and the description still adds real meaning: query terms are conjunctive ('each must appear in the qname, name or label text') rather than a single substring as the schema suggests, and both whole_library and brief carry usage advice the schema lacks. The limit parameter only repeats its schema bounds.

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 (find/search) and resource (taxonomy library elements), and names the two concept families searched (reporting standards and this graph's own accounts). It also separates itself from suggest-mapping and list-element-arcs in the RELATED TOOLS section, so an agent can route correctly without opening any schema.

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?

The WHEN TO USE block gives two concrete selection scenarios (qname/phrase to element id for a mapping, flow or schedule; verifying a concept name), and the whole_library parameter note states the exclusion explicitly: use it only to name a line of a report being received, since mappings and schedules need a concept the graph holds. Alternatives are named with their distinct roles.

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.