Skip to main content
Glama

Begin agent execution

begin_agent_execution
DestructiveIdempotent

Register the start of an agent run with its execution ID, trigger and associated projects so subsequent activity can be correlated.

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": {
      "executionId": "<executionId>",
      "threadId": "<threadId>",
      "trigger": "<trigger>",
      "occurredAt": "<occurredAt>",
      "projectIds": "<projectIds>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "begin_agent_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdNoIdentifier of the mapping agent claiming the scope.
triggerYesEvent or request that started the recorded execution.
threadIdYesIdentifier of the agent conversation associated with this execution.
occurredAtYesTimestamp of the execution event being recorded.
projectIdsYesOwned projects associated with this execution event.
executionIdYesExecution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
requestMetadataNoBounded fields describing the request that started this execution.
parentExecutionIdNoExisting execution that initiated this child execution.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / executionId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Execution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID."
  2. Changed8 schema fields changed
    • changedInput schema / properties / agentId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Identifier of the mapping agent claiming the scope."
    • addedInput schema / properties / occurredAt / description
      Added value: +"Timestamp of the execution event being recorded."
    • changedInput schema / properties / parentExecutionId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Existing execution that initiated this child execution."
    • addedInput schema / properties / projectIds / description
      Added value: +"Owned projects associated with this execution event."
    • removedInput schema / properties / projectIds / items / description
      Removed value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / requestMetadata / description
      Added value: +"Bounded fields describing the request that started this execution."
    • changedInput schema / properties / threadId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Identifier of the agent conversation associated with this execution."
    • addedInput schema / properties / trigger / description
      Added value: +"Event or request that started the recorded execution."
  3. Changed6 schema fields changed
    • addedInput schema / properties / agentId / description
      Added value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / executionId / description
      Added value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / parentExecutionId / description
      Added value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / projectIds / items / description
      Added value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / threadId / description
      Added value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the safety profile is covered by structured data. The description adds the correlational intent of the record but says nothing beyond the schema about retry semantics or what happens if the same executionId is registered twice, which is the most consequential unknown for a destructive, idempotent mutation. Adequate given annotation coverage, but not rich.

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?

A single front-loaded sentence that opens with the action verb, names the resource, and closes with the purpose. No redundant restatement of the title, no filler, and the most decision-relevant information comes first.

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 9-parameter, 6-required mutation with a nested requestMetadata object, a required idempotency key, an optional parentExecutionId for child runs, and no output schema, the description covers only the high-level intent. Ordering relative to finalize_agent_execution and activity recording, plus parent/child execution relationships, are left to the schema or to inference, so it is sufficient to start but thin for the tool's complexity.

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 every property carries its own description (including the careful 'not a session or project ID' clarification for executionId and the retry rules for idempotencyKey). The description only echoes three of the nine parameters (execution ID, trigger, projects) and adds no format, constraint, or defaulting detail beyond the schema, so 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?

The description gives a specific verb and resource ('Register the start of an agent run') plus the scope of data captured (execution ID, trigger, projects) and the reason for doing so (correlation of subsequent activity). It does not explicitly differentiate itself from nearby siblings like start_agent_session or begin_project_sync, but the 'agent execution' framing is distinctive enough to infer the boundary.

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?

Usage is implied rather than stated: it is the opening call of a run, with activity to be correlated afterwards, which hints at pairing with finalize_agent_execution and record_agent_execution_activity. There is no explicit when-not-to-use, no ordering/prerequisite statement, and no named alternative, so an agent must infer the workflow position from the name.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources