Skip to main content
Glama

wals.pro AI 4 weclapp

Execute approved write

execute_approved
Destructive

Execute a previewed entity write or workflow action using its approval token.

The single second step for every two-step write: run any preview_* tool first, then call this with the token and the exact execution payload from the preview response. Keep every approved field unchanged. Inline document/image upload only: add content_base64 INSIDE that payload, as its execution.note instructs; no separate base64 parameter or file argument. Native agent_upload uses the same file instead. The token binds the action, target and approved fields; altered fields are rejected and inline bytes must match the approved digest/MIME/length.

Args: approval_token: The approval.token value from the preview response. Single-use and short-lived. payload: The execution payload exactly as returned by the preview (the WHOLE execution.payload object, including wrapper keys such as entity and nested payload). Never pass only an inner payload. Inline upload adds only content_base64 at its top level. Omit only when the preview says no payload is needed. file: The same native attachment selected for the agent-upload preview. Required for native file uploads; omitted for ordinary writes and local binary transport. The bytes must match the approved SHA-256, MIME type and length. Never put a URL inside payload.

Returns: The mutation summary of the executed action — the same shape the action's preview documents.

when_to_use: After a successful preview_* call, to perform the approved mutation. preconditions: A valid, unconsumed approval token from the same connection; approved fields unchanged, with only the documented inline content_base64 addition where required. post_effects: Exactly one business mutation per token; replaying the same token returns the recorded outcome instead of writing twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNo
payloadNo
approval_tokenYes
correlation_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: token is single-use and short-lived, altered fields are rejected, inline bytes must match the approved digest/MIME/length, exactly one business mutation per token, and replay returns the recorded outcome rather than double-writing. This is exactly the kind of non-obvious safety behavior an agent needs before firing 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Long but well-structured with Args/Returns/when_to_use/preconditions/post_effects sections and the key action front-loaded. Slightly padded by doubled-backtick markup and some repetition of the digest/field-unchanged rule across Args and preconditions.

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, token-bound mutation with no schema-level parameter documentation, the description supplies the full contract: sequencing, token semantics, payload shape, upload rules, failure modes, and idempotency behavior. An output schema exists, so the brief Returns note is sufficient.

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 0%, so the description carries the burden, and it does for three of four params: approval_token provenance, the whole execution.payload object including wrapper keys, and the file/native-upload digest requirement. The fourth parameter, correlation_id, is never mentioned anywhere, 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 and resource ('Execute a previewed entity write or workflow action') and immediately positions itself as 'the single second step' after any preview_* tool, which cleanly separates it from the many preview_* siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit when_to_use ('after a successful preview_* call'), explicit preconditions (valid unconsumed token from the same connection, approved fields unchanged), and a named alternative workflow (run preview_* first). Nothing is left to inference.

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