Skip to main content
Glama

get_capability

Get one Capability by UUID as OSCAL JSON, or null when no Capability has that UUID. Use when working with Component Definitions that contain capabilities.

Instructions

Get one Capability by UUID as OSCAL JSON, or null when no Capability has that UUID. Use when working with Component Definitions that contain capabilities.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "uuid": "<uuid>"
    },
    "name": "get_capability"
  }
}

Input Schema

NameRequiredDescriptionDefault
uuidYesUUID of the Capability, from list_child_elements with element_type capability.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.1
    • changedInput schema / properties / uuid / description
      Previous value: -"UUID of the Capability, from list_capabilities."New value: +"UUID of the Capability, from list_child_elements with element_type capability."
  2. Changed3 schema fields changedv0.7.1
    • removedInput schema / properties / uuid / default
      Removed value: -""
    • addedInput schema / properties / uuid / description
      Added value: +"UUID of the Capability, from list_capabilities."
    • addedInput schema / required
      Added value: +[
      +  "uuid"
      +]
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it does disclose two non-obvious behaviors: the payload is OSCAL JSON and a missing UUID yields null rather than an error. That null-return contract is the single most important thing an agent needs. It stops short of covering failure modes such as malformed UUIDs.

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?

Two short sentences, the concrete contract front-loaded and the usage hint trailing. Nothing redundant, nothing padded.

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?

The tool is a simple single-param read with an output schema, so return-value documentation is not required, and the description still covers format and null semantics. The only shortfall is thin guidance about where the UUID comes from and when to choose this over sibling lookups.

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?

The only parameter is fully documented in the schema at 100% coverage, including its provenance ('from list_child_elements with element_type capability'). The description adds no format or syntax detail beyond the schema, so the high-coverage baseline of 3 applies.

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 (get one Capability), the identifier form (by UUID), the return format (OSCAL JSON), and the not-found outcome (null). This is far more precise than a bare name restatement and lets an agent distinguish it from list_child_elements or get_child_element.

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

Usage Guidelines3/5

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

The second sentence ('Use when working with Component Definitions that contain capabilities') gives situational context, which is more than nothing. However it never says when to prefer this over list_child_elements or get_child_element, nor does it state prerequisites such as needing to resolve the UUID first.

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