Skip to main content
Glama

get_concepts

Read-only

Fetch multiple ontology concepts in one call by slugs or uids, returning details and per-row error info for invalid entries.

Instructions

Fetch multiple nodes by exactly one selector array: slugs (canonical slugs or unique aliases) or immutable uids. Same per-row shape as get_concept; successful rows always return permanent uid plus current canonical slug. Order matches the selected input array. Missing or invalid slug rows return partial {slug, ok:false, error, ...repairFields} rows, so later valid slugs still resolve; UID misses likewise return {uid, ok:false, error, ...repairFields} without aborting the batch. Graph relations and graph-operation inputs remain slug-based.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoApplies to every row. `excerpt` (default) returns the first prose paragraph per row; `full` returns the entire markdown body per row and caps the batch at 20 slugs.
uidsNoExact permanent node UIDs. Use instead of `slugs`, never together with it. Max 50 (max 20 with body `full`).
slugsNoVault-relative slugs, unique tail slugs, or frontmatter `slug` aliases (e.g. ["capabilities/x", "elements/y"]). Omit the .md extension. Max 50 per call (max 20 when body is `full`).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
conceptsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.4/5.0
Behavior5/5

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

The description adds significant behavioral detail beyond the readOnlyHint annotation: it explains partial failure handling (missing rows return {ok:false, error, ...repairFields} without aborting the batch), guarantees successful rows always return permanent uid and current canonical slug, and states ordering matches input. It also clarifies that graph relations remain slug-based. This thoroughly discloses error behavior and output guarantees, exceeding annotation coverage.

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 description is four sentences, front-loaded with the main purpose, then error handling, and a note about graph operations. It is dense with useful information but could be slightly more concise; each sentence adds value, and the structure is logical.

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 batch-fetch tool with partial failures, the description covers all essential aspects: selector choice, per-row shape, ordering, error behavior, and graph-operation implications. It also references get_concept for output consistency. The batch limits and body effect are in the schema, so the description is complete enough for an agent to invoke correctly.

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 description coverage is 100%, so the schema already documents all parameters including the mutual exclusivity of slugs and uids ('never together') and the batch limits. The description reinforces 'exactly one selector array' and 'immutable uids' but adds no new parameter-specific meaning beyond what the schema provides. With full schema coverage, the baseline of 3 is appropriate.

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 description clearly states the tool fetches multiple nodes by exactly one selector array (slugs or uids), with a specific verb ('Fetch') and resource ('nodes'). It distinguishes from the sibling get_concept by noting 'Same per-row shape as get_concept', implying a batch vs single-node usage. The purpose is unambiguous and differentiates well.

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?

The description implies usage for fetching multiple nodes at once, contrasting with get_concept for single nodes, and explicitly notes 'exactly one selector array' to avoid mixing slugs and uids. It also explains the order matches the input array and that graph operations remain slug-based, giving context for when to use this tool. However, it doesn't explicitly state 'use get_concept for a single node' or enumerate alternatives, leaving some inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.