Skip to main content
Glama

terminate_workflow_execution

Stop a running Temporal workflow immediately. Use when you need to abort an active workflow execution and mark it as terminated.

Instructions

Terminate a running workflow execution. This immediately stops the workflow and marks it as terminated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runIdNoOptional run ID. If not provided, terminates the latest run.
reasonNoReason for termination (optional)
regionNoRegion where the workflow is running. Defaults to "us" if not specified.
workflowIdYesThe workflow ID to terminate
Install Server

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It does disclose that termination is immediate and that the workflow is marked as terminated. However, it does not mention irreversibility, required permissions, or side effects, which would be valuable for a mutating tool.

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 short sentences with no filler. The action and primary consequence are front-loaded, and every word contributes to understanding the tool's behavior.

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?

For a simple termination action with fully documented parameters, the description is mostly adequate. However, with no annotations and no output schema, it could be more complete by noting that termination is irreversible and that only running executions are affected.

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 input schema already fully documents all four parameters. The description adds no parameter-level meaning beyond that, so the baseline score of 3 is appropriate.

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 states a specific verb ('Terminate') and resource ('running workflow execution'), and adds the key consequence: it stops immediately and marks the execution as terminated. This clearly differentiates the tool from its read-only siblings (list/get/describe/fetch history).

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?

The phrase 'running workflow execution' gives clear context for when to use this tool. It does not explicitly name alternatives or exclusion cases, but none of the sibling tools perform termination, so the usage intent is unambiguous.

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

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/shimantakb-sprinto/temporal-mcp'

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