Skip to main content
Glama

query_profile

Retrieve loaded OSCAL Profiles with metadata and child-type counts; query all profiles or filter by UUID or exact title to inspect compliance model structures.

Instructions

Return loaded OSCAL Profiles with metadata and childTypeCounts. For child elements, use list_profile_imports or list_profile_modify, then get_child_element.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items per page, 1-100.
offsetNoZero-based index of the first item.
query_typeNo"all" (paged), "by_uuid", or "by_title" (exact, then full-text).all
query_valueNoUUID or title to match. Required for by_uuid and by_title.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.7.1
    • 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), \"by_uuid\", or \"by_title\" (exact, then full-text)."
    • changedInput schema / properties / query_type / enum
      Previous value: -[
      -  "all",
      -  "by_uuid",
      -  "by_title",
      -  "by_type"
      -]New value: +[
      +  "all",
      +  "by_uuid",
      +  "by_title"
      +]
    • addedInput schema / properties / query_value / description
      Added value: +"UUID or title to match. Required for by_uuid and by_title."
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that only already-"loaded" profiles are returned and that a childTypeCounts field is included, but it never explains paging semantics (limit/offset defaults of 10/0) or what "loaded" actually means in this server's lifecycle.

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?

Two tight sentences with the core capability front-loaded and the routing note second — no wasted clauses. Slightly compressed wording ("loaded", unlabeled childTypeCounts) costs a point but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description would need to describe the return shape; it only gestures at "metadata and childTypeCounts" without enumerating fields or indicating paging envelope/ordering. For a query tool with no annotations and no output schema, this leaves gaps an agent would hit on the first call.

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% — limit, offset, query_type and query_value are each documented in the schema, including the enum meanings and the requirement that query_value is mandatory for by_uuid/by_title. The description adds nothing about parameters, so the baseline 3 applies.

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 names a concrete verb and resource ("Return loaded OSCAL Profiles") plus the payload contents (metadata and childTypeCounts), so the agent knows what comes back. It stops short of distinguishing this from the sibling list_profiles, which also sounds like a profile-listing tool.

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 second sentence gives explicit routing: for child elements use list_profile_imports or list_profile_modify, then get_child_element. That is a real when/when-not boundary. It does not say when to prefer this over list_profiles, leaving one sibling ambiguous.

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