Skip to main content
Glama

Confirm a previewed action

confirm_action
Destructive

Executes a previously previewed LinkedIn action—such as posting, commenting, messaging, or connecting—only after you approve it. Uses a single-use token that expires in 10 minutes.

Instructions

Execute an action previewed by another tool (post, schedule, comment, reply, reaction, connection request, invitation response, message, deletion). Only call this after the user has seen the preview and clearly said yes. Tokens are single-use and expire after 10 minutes. If the AI client supports it, the user is also asked to approve in a dialog, and declining there sends nothing.

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": {
      "confirmation_token": "<confirmation_token>"
    },
    "name": "confirm_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmation_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive/openWorld/non-idempotent, and the description adds material context beyond them: single-use tokens, a 10-minute expiry window, and an optional client-side approval dialog where declining sends nothing. That tells the agent exactly how failures and refusals behave, which is the key risk information for a destructive call.

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?

Three sentences, front-loaded with the action scope, then the precondition, then the token/expiry and dialog behavior. No redundant restatement of the title or annotations.

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

Completeness5/5

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

For a destructive, non-idempotent, open-world mutation with a single opaque token and no output schema, the description covers purpose, precondition, token lifecycle, and interactive fallback — everything an agent needs to call it safely.

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?

The single parameter has 0% schema description coverage, so the description must carry the load — and it does, explaining that the token is produced by a previewing tool, is single-use, and expires after 10 minutes. It does not state what to do when a token is rejected or expired (e.g. re-preview), leaving a small gap.

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?

States a specific verb ('Execute') plus the exact class of resources it acts on, enumerating action types (post, schedule, comment, reply, reaction, connection request, invitation response, message, deletion). An agent can immediately distinguish this from preview/creation tools and from cancel_action.

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 precondition chain: only call after the user has seen the preview AND clearly said yes. That is strong when-to guidance and an implicit when-not. It does not name cancel_action or the previewing tool as the alternative path, so the routing half of the guidance is left implicit.

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