Skip to main content
Glama

get_components

Retrieve reusable OpenAPI components—schemas, responses, parameters—by session, optionally filtering by component type for accurate API integration.

Instructions

Get reusable components from the OpenAPI specification (schemas, responses, parameters, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesThe session ID
componentTypeNoOptional: Specific component type (schemas, responses, parameters, examples, requestBodies, headers, securitySchemes, links, callbacks)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Get' implies a read, but the description says nothing about whether the session must be initialized first, what happens if componentType is omitted, or whether results are paginated. For a session-scoped tool with zero annotation coverage, this is a real gap.

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?

A single front-loaded sentence with no filler; the purpose is stated immediately. It is appropriately sized, though the brevity contributes to the usage and behavior gaps noted elsewhere.

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?

For a two-parameter read tool with a fully documented schema and no output schema, the description is minimally adequate: it names the resource and its scope. It omits the session prerequisite and any hint of return shape, which leaves a modest but real gap.

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%, and the schema itself enumerates the valid componentType values, so the schema does the heavy lifting. The description only repeats the same examples already listed in the schema, adding no new meaning beyond the structured field.

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?

Clear verb+resource: retrieves reusable components (schemas, responses, parameters) from an OpenAPI specification. The parenthetical examples make the scope concrete. It doesn't differentiate itself from siblings like get_endpoint_details, but the siblings are distinct enough that confusion is unlikely.

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?

No guidance on when to use this versus list_endpoints, get_endpoint_details, or get_tags, nor on when component extraction is appropriate. The only implicit signal is that 'components' implies the reusable section of the spec, which an agent must infer.

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