Skip to main content
Glama

list_workflows

Retrieve and filter workflows in your workspace to view their ID, name, status, and goal. Supports filtering by status and limiting results.

Instructions

List all workflows in the workspace. Returns id, name, status, goal for each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by status: draft, active, paused
limitNoMax results (default 50, max 200)

Implementation Reference

  • The 'list_workflows' tool implementation. It registers the tool with the MCP server, defines the input schema, and calls the 'listWorkflows' method on the client provided by the clientFactory.
    server.tool(
        'list_workflows',
        'List all workflows in the workspace. Returns id, name, status, goal for each.',
        {
            status: z.string().optional().describe('Filter by status: draft, active, paused'),
            limit: z.number().optional().describe('Max results (default 50, max 200)'),
        },
        async ({ status, limit }, extra) => {
            const client = clientFactory(extra);
            const result = await client.listWorkflows({ status, limit });
            return {
                content: [{
                    type: 'text' as const,
                    text: JSON.stringify(result, null, 2),
                }],
            };
        }
    );
Behavior2/5

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

With no annotations, the description carries full burden but provides minimal behavioral context. It mentions the return fields but doesn't cover pagination (implied by 'limit' parameter), ordering, error conditions, authentication needs, or rate limits. 'List all workflows' suggests a read-only operation, but this isn't explicitly stated.

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 two concise sentences with zero waste. The first sentence states the action and scope, and the second specifies the return fields, making it front-loaded and efficient.

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?

Given no annotations and no output schema, the description is incomplete. It covers basic purpose and return fields but lacks details on behavior, error handling, or usage context. For a simple list tool with full schema coverage, it's minimally adequate but leaves gaps in transparency.

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%, so the schema fully documents both parameters. The description adds no parameter-specific information beyond what's in the schema, maintaining the baseline score of 3 for adequate coverage without extra value.

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?

The description clearly states the verb ('List') and resource ('all workflows in the workspace'), and specifies the returned fields (id, name, status, goal). It distinguishes from siblings like 'get_workflow' (singular) but doesn't explicitly differentiate from other list tools like 'list_executions' or 'list_snapshots'.

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 tool versus alternatives is provided. It doesn't mention when to prefer 'list_workflows' over 'get_workflow' for single workflows, or how it relates to other list tools like 'list_executions' for workflow runs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Agentled/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server