Skip to main content
Glama

List a workflow's versions

list_workflow_versions
Read-onlyIdempotent

List the saved versions of a workflow, newest first: version, created_at, current (whether it is the definition in use), and a summary (description, model, the start of the prompt). Every save that changes the definition adds a version; the newest 50 are kept. Read one in full with get_workflow and its version, and go back to it with restore_workflow_version.

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": {
      "name": "<name>"
    },
    "name": "list_workflow_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe workflow's name.
limitNoHow many versions (default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered; the description adds real behavior on top: version creation semantics ("Every save that changes the definition adds a version") and a retention rule ("the newest 50 are kept"). It also discloses the record shape, which annotations cannot express.

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 tight sentences: the first front-loads purpose, ordering and return fields, the second covers lifecycle semantics and hand-offs. No filler or redundancy.

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?

With no output schema, the description compensates by enumerating the returned fields (version, created_at, current, summary contents). Combined with retention behavior and the follow-up routing, an agent has everything needed to call it and act on results.

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 baseline is 3; however, the description explains why limit caps at 50 by disclosing the retention policy, adding causal meaning the schema's "maximum: 50" does not convey. It does not restate the default of 20, but the schema already does.

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 saved versions of a workflow") plus ordering ("newest first") and the returned fields, which immediately separates it from get_workflow (single full definition) and list_workflows (the workflows themselves).

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?

Explicitly routes the agent onward: "Read one in full with get_workflow and its version, and go back to it with restore_workflow_version." It gives clear context for the list-then-act pattern, though it doesn't state a when-not condition (e.g., when listing workflows rather than versions is appropriate).

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