Skip to main content
Glama

get_workflow_result

Retrieve the result of a completed Temporal workflow by workflow ID, optionally waiting a set number of seconds; omit timeout to wait until the workflow closes.

Instructions

Get the result of a completed workflow

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

Input Schema

NameRequiredDescriptionDefault
timeoutNoSeconds to wait for the result. Omit to wait until the workflow closes, which blocks indefinitely on a running workflow.
namespaceNoTemporal namespace for this operation; omit to use the server default
workflow_idYesThe workflow execution ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior2/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 of behavioral disclosure. It does not explain blocking behavior, failure results, namespace requirements, or what the returned result contains, leaving significant behavioral gaps for a Temporal workflow result tool.

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?

The definition is a single concise sentence with no filler and front-loads the action and resource. It is structurally efficient, though the same brevity contributes to missing behavioral context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should carry more context about result format, blocking waits, and failure or running-workflow behavior. The input schema is complete, but the description is too sparse for the operational complexity of retrieving workflow results.

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%, and the schema already documents workflow_id, timeout, and namespace including the indefinite blocking behavior when timeout is omitted. The description adds no additional parameter meaning beyond the schema, so the baseline score of 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?

The description states a specific verb ('Get') and resource ('result of a completed workflow'), which distinguishes it from workflow history, event, and activity result siblings. It does not explicitly name alternatives, so it is clear but not maximally differentiated.

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?

The phrase 'completed workflow' implies a precondition for use, but the definition gives no explicit guidance on when to use this instead of get_workflow_history, get_workflow_event, or get_activity_result. It also does not mention how running workflows or timeout waits should be handled.

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