Skip to main content
Glama

query_concepts

Filter FOLIO ontology concepts by text fields, taxonomy branch, and structural properties to retrieve precise matching entries.

Instructions

Query FOLIO concepts with composable text and structural filters.

More powerful than search_concepts — supports field-specific matching, structural constraints, and multiple match modes. All specified filters must match (AND logic).

Text filters: label: Match against the concept's primary label (rdfs:label). definition: Match against the concept's definition (skos:definition). alt_label: Match against alternative labels (skos:altLabel). example: Match against examples (skos:example). any_text: Match against ALL text fields (label, definition, alt_labels, examples, notes, comment).

Structural filters: branch: Limit to a taxonomy branch (e.g., "AREA_OF_LAW", "CURRENCY", "LEGAL_ENTITY"). parent_iri: Only descendants of this IRI (transitive subClassOf). has_children: True = non-leaf concepts only, False = leaf concepts only. deprecated: Include deprecated concepts (default False). country: Match against the country field.

Control: match_mode: "substring" (default), "exact", "regex", or "fuzzy". limit: Maximum results (default 20).

Returns: JSON array of matching concepts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNo
limitNo
branchNo
countryNo
exampleNo
any_textNo
alt_labelNo
definitionNo
deprecatedNo
match_modeNosubstring
parent_iriNo
has_childrenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses AND logic, filter semantics (e.g., transitive subClassOf for parent_iri, leaf vs non-leaf for has_children), defaults for deprecated and match_mode, and the return format. It does not cover error handling or performance, but for a query tool the disclosed behaviors are substantial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description opens with a clear purpose, then uses well-organized bullet sections for text filters, structural filters, control, and returns. Every sentence is informative, and the structure makes it easy to scan. It is detailed without wasting words.

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?

The tool is complex with 12 parameters, but the description covers all of them with meaningful context. It explains the overall AND logic, default behaviors, and return type. The output schema is said to exist, so not detailing the exact return structure is acceptable. The description is sufficiently complete for an agent to correctly invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate. It does so by explaining each parameter's meaning, including RDF properties (rdfs:label, skos:definition), providing branch examples, and defining match_mode values. This adds significant value beyond the raw schema.

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 queries FOLIO concepts with composable filters. It explicitly differentiates from sibling search_concepts by positioning itself as more powerful and supporting field-specific matching, structural constraints, and multiple match modes.

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 explains the tool's capabilities and contrasts it with search_concepts, giving context for when to use it. However, it does not explicitly state when to use the simpler sibling tool, so the guidance is context-rich but lacks explicit exclusions or alternatives beyond a comparative phrase.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alea-institute/folio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server