Skip to main content
Glama

List Header Components

list_header_components
Read-only

List the header components defined at one level: 'spec' (needs specId) or 'project'. Set includeUsageCounts to see how often each is referenced — spec level only. Returns the ids and rowVersions needed to change them or assign them in a header policy. Requires project context. Use this for spec or project level; for the organization level use list_org_header_components.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelYesWhich level to read: 'spec' or 'project'
specIdNoPublic ID (GUID) of the API specification — required for level 'spec'
versionIdNoOptional version ID (GUID) to filter by a specific version — spec level only
includeUsageCountsNoAlso return how often each component is referenced — spec level only (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it states that the call returns ids and rowVersions and explains the effect of includeUsageCounts. It also clarifies that versionId and includeUsageCounts only apply at the spec level, so there are no surprise side effects.

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 description is compact and front-loaded, with no redundant filler. Each sentence carries distinct information about scope, parameters, returns, and alternatives.

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?

It covers the essential call context, including level, required specId, project context, and return purpose. Since there is no output schema, a little more detail about the response shape beyond 'ids and rowVersions' would make it fully complete, but the core usage is clear.

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?

Although the schema already describes each parameter, the description adds practical semantics: specId is required for level='spec', versionId and includeUsageCounts are spec-level-only, and includeUsageCounts controls reference counts. This goes beyond the baseline schema coverage.

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?

The description opens with a clear verb-resource pairing, 'List header components', and immediately scopes it by level (spec/project). It also distinguishes itself from the organization-level alternative, list_org_header_components, and from related tools like get_header_component.

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?

It explicitly says when to use the tool ('Use this for spec or project level') and names the alternative for organization level. It also notes the requirement for project context, which orients an agent before calling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources