Skip to main content
Glama

List Spec Templates

list_spec_templates
Read-only

List the org's spec templates — named, reusable production configurations that can be applied to items via apply_spec_fill(templateId=...). Paged: pass limit (1–100) with offset; omit limit for every template up to 100, or PAGING_REQUIRED. While hasMore is true, call again with offset=nextOffset.

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": "list_spec_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (1–100). Omit for every row up to 100, else PAGING_REQUIRED.
offsetNoZero-based row offset; requires limit when nonzero.

Output Schema

NameRequiredDescriptionDefault
okNo
offsetNo
hasMoreNo
templatesNo
nextOffsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds behavior the annotations cannot: the 100-row ceiling, the PAGING_REQUIRED failure mode, and the exact hasMore/nextOffset continuation loop — all operationally essential for correct invocation.

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?

Front-loaded with purpose, then paging mechanics, in three tight sentences with no filler. Minor deduction for clipped phrasing such as 'or PAGING_REQUIRED', which reads as shorthand rather than a complete instruction.

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, so return-value documentation is not owed. For a two-parameter, zero-required listing tool, the description covers identity, purpose, downstream use, and the full paging protocol — nothing an agent needs 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the per-parameter text is already there and the baseline would be 3. The description earns extra credit by explaining the interaction between parameters — that omitting limit caps at 100 and triggers PAGING_REQUIRED, and that nextOffset drives the next call — which the schema fields state only individually.

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 ('List the org's spec templates') and goes further by defining what a spec template is — 'named, reusable production configurations that can be applied to items via apply_spec_fill(templateId=...)' — which ties the listing to its downstream consumer. An agent can distinguish this from list_spec_fill_batches or delete_spec_template 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 Guidelines4/5

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

Gives clear usage context by naming apply_spec_fill as the reason to discover templateId, plus explicit paging instructions (omit limit for up to 100, else PAGING_REQUIRED; loop with offset=nextOffset while hasMore). It stops short of stating exclusions or when a different listing tool is preferable, so it is clear but not fully comparative.

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