Skip to main content
Glama

query_component_definition

Return OSCAL Components from loaded Component Definitions as OSCAL JSON, or one Capability when a by_uuid or by_title query matches one.

Instructions

Return OSCAL Components from loaded Component Definitions as OSCAL JSON, or one Capability when a by_uuid or by_title query matches one. Use when you need component details: call it directly with by_title or by_type when you know the name or type, else look them up with list_child_elements (component or capability) or list_documents (component-definition), and fetch a Capability with get_capability. Results are paged.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items per page, 1-100.
offsetNoZero-based index of the first item.
query_typeNo"all" (paged, large without a filter), "by_uuid", "by_title" (title, then property value), or "by_type" (Component type). by_uuid and by_title return a matching Capability first.all
query_valueNoUUID, title, or Component type to match. Required unless query_type is "all".
return_formatNoResponse format. Only "raw" (OSCAL JSON) is supported.raw
component_definition_filterNoUUID or exact title (case-insensitive) of one Component Definition to search. Omit to search all.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.1
    • addedInput schema / properties / component_definition_filter / description
      Added value: +"UUID or exact title (case-insensitive) of one Component Definition to search. Omit to search all."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum items per page, 1-100."
    • addedInput schema / properties / offset / description
      Added value: +"Zero-based index of the first item."
    • addedInput schema / properties / query_type / description
      Added value: +"\"all\" (paged, large without a filter), \"by_uuid\", \"by_title\" (title, then property value), or \"by_type\" (Component type). by_uuid and by_title return a matching Capability first."
    • addedInput schema / properties / query_value / description
      Added value: +"UUID, title, or Component type to match. Required unless query_type is \"all\"."
    • addedInput schema / properties / return_format / description
      Added value: +"Response format. Only \"raw\" (OSCAL JSON) is supported."
  2. First observedv0.1.0

TDQS

A4.4/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 disclose meaningful behavior: results are paged, the return is OSCAL JSON, and by_uuid/by_title return a Capability first (a non-obvious quirk). It omits explicit statement of read-only safety and any permission/rate-limit context, which keeps it from a 5.

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?

Three sentences, front-loaded with the return contract, then the when-to-use routing. Dense but every sentence contributes; the routing clause is somewhat packed but not wasteful.

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?

An output schema exists and pagination is stated, so return values and paged behavior are covered. For a read-only query tool with fully described parameters, nothing an agent needs in order to call it correctly is missing.

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 limit/offset/query_type/query_value/filter are already fully documented. The description restates usage of by_title/by_type but adds no syntax or format detail beyond the schema, so the baseline 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?

States a specific verb and resource (return OSCAL Components from loaded Component Definitions as OSCAL JSON), plus the notable edge case of returning a single Capability on by_uuid/by_title matches. It also distinguishes itself from siblings by naming list_child_elements and get_capability explicitly, so an agent can tell it apart without opening a 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?

Provides explicit when-to-use guidance and routes to named alternatives: call directly with by_title or by_type when the name/type is known, otherwise look up first via list_child_elements or list_documents, and use get_capability to fetch a Capability. This is the rare case with concrete alternatives and the conditions that select them.

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