Skip to main content
Glama

Prepare Action

prepare_action
Idempotent

Preview or commit one draft-safe proposal from a Signal Center event. The event, not the caller, selects the only allowed action descriptor. First call without previewReceipt/idempotencyKey to validate and receive a bound receipt; repeat the identical call with both values to create the proposal. This never executes the resulting ActionItem or changes signal trust mode. Requires Write scope plus the live actions.prepare capability; client-pinned credentials cannot prepare tenant-scoped ActionItems in this phase.

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": {
      "eventId": "<eventId>",
      "expectedVersion": "<expectedVersion>",
      "proposal": "<proposal>"
    },
    "name": "prepare_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventIdYesSignal Center event id returned by list_open_actions.
proposalYesExactly one typed proposal branch; the event determines which branch is legal.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt.
previewReceiptNoReceipt returned by the preview call; omit on preview.
expectedVersionYesOpaque event version returned by list_open_actions/get_action_context.

Output Schema

NameRequiredDescriptionDefault
okNo
resultNo
effectsNo
warningsNo
expiresAtNo
operationNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
allowedNextActionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is partly given. The description still adds real behavioral context: it never executes the ActionItem nor changes signal trust mode, needs Write scope plus the live actions.prepare capability, and client-pinned credentials cannot prepare tenant-scoped ActionItems. Return format and version-conflict behavior are not covered, and the receipt/idempotency mechanics are stated but the failure modes are not.

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?

Four front-loaded sentences with no filler; the two-phase protocol leads and the permission/limitation caveats follow. Slightly dense with compound clauses (capability plus client-pinned credential exception) but nothing is extraneous.

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

Completeness4/5

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

Output schema exists, so return values need no explanation, and the description covers the multi-step flow, permissions, and side-effect boundaries for a nested-object, 5-parameter tool. It does not say what happens when expectedVersion is stale or when previewReceipt is rejected, which is the main residual gap for a mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the coupling between previewReceipt and idempotencyKey (both required on the commit call, omitted on preview) and that exactly one proposal branch is legal based on the event. That is meaning the schema alone does not convey.

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?

Names a specific verb pair (preview/commit) and resource (a draft-safe proposal from a Signal Center event), and implicitly distinguishes itself from acknowledge_action/dismiss_action by declaring it 'never executes the resulting ActionItem.' An agent can tell what this does and what it is not.

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?

Gives an explicit two-step protocol: call without previewReceipt/idempotencyKey to validate and get a bound receipt, then repeat the identical call with both values to create the proposal. It also states the event, not the caller, chooses the action descriptor. It stops short of naming a sibling alternative for the dismiss/acknowledge paths, so not a full 5.

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