Skip to main content
Glama

query_properties

Filter FOLIO ontology relationship types by label, definition, domain, range, or inverse status to retrieve matching properties with full domain/range details.

Instructions

Filter FOLIO object properties (relationship types), with full domain/range detail.

Text filters: label: Match the property label, e.g. "advised", "drafted", "governed", "hasActor". definition: Match the property definition.

Structural filters: domain_iri: Only properties whose domain includes this class IRI. range_iri: Only properties whose range includes this class IRI. has_inverse: True = only properties with inverses, False = only without.

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

Returns: JSON array of {iri, label, definition, domain, range, inverse_of, sub_property_of}.

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

Input Schema

NameRequiredDescriptionDefault
labelNo
limitNo
range_iriNo
definitionNo
domain_iriNo
match_modeNosubstring
has_inverseNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it declares the default and maximum result count ('default 20, max 100'), enumerates the four matching strategies, names the default match_mode, and specifies the exact return shape. It does not disclose whether matching is case-sensitive, how 'fuzzy' behaves, or how the limit interacts with total-result truncation.

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 single-sentence purpose is front-loaded, then organized under 'Text filters', 'Structural filters', 'Control', and 'Returns' headings. Every line adds a distinct fact; there is no restatement of the tool name and no filler.

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?

For a seven-parameter query tool with no annotations and zero schema coverage, the definition supplies the filters, controls, and result shape needed to call it correctly, and the 'Returns' section is a bonus given an output schema exists. The remaining gap is the absence of any routing advice relative to the many sibling lookup tools.

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%, yet the description defines every one of the seven parameters in prose, including concrete sample labels ('advised', 'drafted', 'governed'), the boolean semantics of has_inverse (True = with inverses), the enumerated values for match_mode that the schema does not constrain, and the limit ceiling of 100 that appears nowhere in the schema.

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 description opens with a specific verb+resource pairing ('Filter FOLIO object properties (relationship types)') and adds scope ('with full domain/range detail'), so an agent knows exactly what this retrieves. It stops short of explicitly contrasting itself with the sibling get_properties, leaving the filter-vs-fetch distinction to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus siblings like get_properties or search_expanded, and no preconditions or exclusions. The 'Text filters' and 'Structural filters' groupings hint at two usage modes (label lookup vs domain/range traversal) but never tell the agent which situation calls for which.

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