Skip to main content
Glama

Record agent execution activity

record_agent_execution_activity
DestructiveIdempotent

Attach a timestamped activity to an execution, including its category, affected projects and bounded change metadata.

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>",
      "activityId": "<activityId>",
      "occurredAt": "<occurredAt>",
      "projectIds": "<projectIds>",
      "category": "<category>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "record_agent_execution_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesKind of activity being recorded for this execution.
activityIdYesIdentifier for the activity within the recorded 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.
changeMetadataNoBounded metadata describing the activity and its effect.
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.

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. Changed6 schema fields changed
    • changedInput schema / properties / activityId / 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 for the activity within the recorded execution."
    • addedInput schema / properties / category / description
      Added value: +"Kind of activity being recorded for this execution."
    • addedInput schema / properties / changeMetadata / description
      Added value: +"Bounded metadata describing the activity and its effect."
    • addedInput schema / properties / occurredAt / description
      Added value: +"Timestamp of the execution event being recorded."
    • 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."
  3. Changed4 schema fields changed
    • addedInput schema / properties / activityId / 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 / 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."
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the safety profile is covered structurally. The description adds only that change metadata is 'bounded' and the activity is 'timestamped', leaving unexplained why this is flagged destructive and what a retry with a reused idempotencyKey actually returns.

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 sentence that front-loads the action and the target resource, with no filler or redundancy. It is dense but readable, though the trailing enumeration of fields partially duplicates the schema.

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 mutation with six required parameters, a nested object, and no output schema, the description is thin: it does not say what is returned, how duplicate activityIds are handled, or that the execution must be registered and unfinalized. The rich schema descriptions and annotations compensate substantially, keeping this at minimum-viable rather than inadequate.

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%, including the key hint that executionId is the ID returned at registration and not a session or project ID, so the schema does the heavy lifting. The description merely echoes the field groups (category, projects, change metadata) and adds 'bounded' without quantifying limits already enforced by the schema.

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?

States a specific verb and resource ('Attach a timestamped activity to an execution') and enumerates the payload shape (category, projects, change metadata). It does not distinguish itself from the similarly named sibling record_activity or explain how it differs from begin/finalize_agent_execution, so an agent must 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no named alternative. The only implicit signal is 'to an execution', which hints the execution must exist first, but nothing states that record_activity or the begin/finalize lifecycle tools should be used in a different situation.

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