Skip to main content
Glama

stop_execution

Stop a running or pending workflow execution in the Agentled MCP Server by providing workflow and execution IDs. Use this tool to halt ongoing or scheduled workflow processes.

Instructions

Stop a running or pending workflow execution. Only works on executions with status "running" or "pending".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID
executionIdYesThe execution ID to stop

Implementation Reference

  • Registration and handler implementation for the stop_execution MCP tool.
    server.tool(
        'stop_execution',
        'Stop a running or pending workflow execution. Only works on executions with status "running" or "pending".',
        {
            workflowId: z.string().describe('The workflow ID'),
            executionId: z.string().describe('The execution ID to stop'),
        },
        async ({ workflowId, executionId }, extra) => {
            const client = clientFactory(extra);
            const result = await client.stopExecution(workflowId, executionId);
            return {
                content: [{
                    type: 'text' as const,
                    text: JSON.stringify(result, null, 2),
                }],
            };
        }
    );
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the tool's behavioral constraint (only works on specific statuses) but doesn't mention permissions needed, whether the action is reversible, rate limits, or what happens after stopping. For a mutation tool with zero annotation coverage, this leaves significant gaps.

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 sentences with zero waste: the first states the purpose, and the second adds crucial usage constraints. It's front-loaded and every sentence earns its place by providing essential information.

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 this is a mutation tool with no annotations and no output schema, the description is incomplete. It covers the purpose and basic constraints but lacks details on permissions, side effects, error conditions, or what the tool returns. For a tool that modifies system state, more behavioral context is needed.

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 already documents both parameters ('workflowId' and 'executionId'). The description doesn't add any parameter-specific details beyond what the schema provides, such as format examples or relationships between parameters. Baseline 3 is appropriate when the schema handles parameter documentation.

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 clearly states the specific action ('Stop') and target resource ('a running or pending workflow execution'), distinguishing it from sibling tools like 'retry_execution' or 'get_execution'. It precisely defines what the tool does without being tautological.

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 states when to use this tool ('Only works on executions with status "running" or "pending"'), providing clear context and exclusions. This helps differentiate it from alternatives like 'retry_execution' or tools for other execution states.

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