Skip to main content
Glama

List API templates

list_api_templates
Read-onlyIdempotent

List the api templates belonging to the authenticated tenant. An api template is a reusable, parameterized HTTP or gRPC request a workflow invokes to reach an external system.

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

Input Schema

NameRequiredDescriptionDefault
page_sizeNomaximum number of templates to return in this page
page_tokenNotoken from a previous response's next_page_token to fetch the next page
slug_prefixNoonly return templates under this FOLDER path (matched on whole '/'-delimited segments, NOT as a raw string prefix), e.g. 'blog' (trailing slash optional) returns everything under blog/. A partial segment matches nothing: 'bl' will NOT match 'blog/post'; use the full segment(s)

Output Schema

NameRequiredDescriptionDefault
templatesYes
next_page_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / slug_prefix / description
      Previous value: -"only return templates whose slug starts with this prefix"New value: +"only return templates under this FOLDER path (matched on whole '/'-delimited segments, NOT as a raw string prefix), e.g. 'blog' (trailing slash optional) returns everything under blog/. A partial segment matches nothing: 'bl' will NOT match 'blog/post'; use the full segment(s)"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description contributes the tenant-scoping behavior ('belonging to the authenticated tenant'), which is genuine added context, but it says nothing about pagination defaults, ordering, or result limits beyond the schema hints.

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 sentences, front-loaded with the action and scope, and the definitional second sentence earns its place by grounding a domain term. No filler or repetition of the title.

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?

With an output schema present, return values need no explanation, and all three parameters are documented in the schema. What the description supplies — scope, resource definition, tenant boundary — is sufficient for a simple paged list tool; only cross-referencing to sibling lookup tools is missing.

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%, with page_size, page_token and the segment-matching slug_prefix fully documented in the schema itself. The description adds no parameter-level meaning, 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?

States a specific verb and resource ('List the api templates') plus the scoping qualifier 'belonging to the authenticated tenant', and the second sentence defines what an api template is, which grounds the term for an agent. It does not explicitly contrast with get_api_template or the other list_* siblings, but the list/read framing is unambiguous.

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?

Usage is only implied by the verb 'List' — an agent can infer this is for browsing/discovering templates, but there is no explicit when-to-use statement and no mention of when to prefer get_api_template (single lookup) instead. No exclusions or prerequisites are given.

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