Skip to main content
Glama

execute_activity

Run a standalone Temporal activity with specified type, ID, task queue, and arguments, then wait for its result.

Instructions

Execute a standalone Temporal activity and wait for result

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": {
      "activity": "<activity>",
      "activity_id": "<activity_id>",
      "task_queue": "<task_queue>"
    },
    "name": "execute_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments to pass to the activity
activityYesActivity type name to execute
namespaceNoTemporal namespace for this operation; omit to use the server default
task_queueYesTask queue for this activity
activity_idYesUnique identifier for the activity execution
start_to_close_timeout_secondsNoActivity start-to-close timeout in seconds
schedule_to_close_timeout_secondsNoTotal time limit in seconds, including time queued before a worker picks the activity up. Unlike start-to-close, this bounds the wait when no worker is polling the task queue.

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 supplied, so the description carries the full disclosure burden. It reveals that the call blocks until a result, but says nothing about retry behavior, what happens when no worker polls the queue, whether the execution is idempotent given activity_id, or what is returned on failure.

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?

A single front-loaded sentence with no filler; the blocking semantic is placed where an agent will read it first. It is arguably under-specified rather than padded, so conciseness is a strength here.

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?

For a 7-parameter, nested-argument execution tool with no annotations and no output schema, the description is thin: it omits timeout interaction behavior, failure semantics, and the shape of the waited-on result. The schema covers parameters well, but the behavioral surface an agent needs before calling is not addressed.

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 itself explains args, activity, task_queue, activity_id, namespace, and both timeouts in detail. The description adds no parameter meaning beyond that, so the baseline 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?

"Execute a standalone Temporal activity and wait for result" gives a specific verb (execute), resource (Temporal activity), and a key behavioral qualifier (standalone, blocking). This implicitly separates it from start_activity/get_activity_result, but no sibling is named, so the differentiation is inferential rather than explicit.

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 words "standalone" and "wait for result" imply this is the synchronous one-shot path versus an async start/poll pattern, but the description never states when to prefer it over start_activity + get_activity_result, nor any prerequisites. Usage is implied, not guided.

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