Skip to main content
Glama

query_concepts

Filter FOLIO legal concepts by label, definition, branch, hierarchy, or country to retrieve precise, unranked result sets for targeted research.

Instructions

Filter FOLIO concepts by exact field matches and structure (not ranked).

Use this for precise filters, e.g. every area of law whose label contains "tax", or concepts whose definition mentions "fiduciary". For "find the concept called X", search_concepts ranks better. All filters are ANDed; give at least one.

Text filters: label: Match the primary label. definition: Match the definition text. alt_label: Match alternative labels / synonyms. example: Match examples. any_text: Match any text field (label, definition, synonyms, examples, notes).

Structural filters: branch: Branch name from list_branches(), e.g. "areas_of_law" (also accepts "AREA_OF_LAW"). parent_iri: Only descendants of this concept (IRI, short ID or branch name). has_children: True = non-leaf concepts only, False = leaf concepts only. deprecated: Include deprecated concepts (default False). country: Match the country field.

Control: match_mode: "substring" (default, case-insensitive), "exact", "regex", or "fuzzy". limit: Maximum results (default 20, max 100).

Returns: JSON array of {iri, label, definition}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_concepts"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A4.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses AND semantics, defaults (deprecated=False, match_mode=substring, limit=20), and a hard cap (max 100). It does not frame the operation as read-only or discuss cost/pagination of results, so it stops just short of full disclosure.

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?

Front-loaded one-line purpose, then grouped Text/Structural/Control filters with per-parameter lines — every sentence is load-bearing. Length is proportionate to a 12-parameter tool rather than padded.

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?

Covers purpose, selection vs sibling, per-parameter semantics, defaults, and result shape for a 12-parameter query tool with no annotations. Nothing an agent needs to call it correctly is missing, and the Returns block adds clarity even though an output schema exists.

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 coverage is 0%, yet all 12 parameters are documented with concrete meaning, defaults, and edge cases (parent_iri accepts IRI, short ID, or branch name; branch accepts "AREA_OF_LAW" as well as "areas_of_law"). This fully compensates for the empty schema descriptions.

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?

"Filter FOLIO concepts by exact field matches and structure (not ranked)" gives a specific verb and resource plus a scope distinction (filtering, not ranking). It explicitly contrasts with search_concepts, so an agent can pick between them without opening either 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?

Names concrete when-to-use cases ("every area of law whose label contains 'tax'") and an explicit alternative ("For 'find the concept called X', search_concepts ranks better"). It also states the invocation constraint "All filters are ANDed; give at least one", which is real routing guidance rather than inference.

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