Skip to main content
Glama

Prevent Duplicate Consequential Agent Actions

once_execute

CALL THIS when an AI agent is about to perform or retry a consequential external side effect where duplication would be harmful: purchase, refund, payment, booking, send, create, modify, submit, or delete. ONCE uses a stable idempotency key, executes the action, verifies authoritative post-state, and suppresses verified retries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
verifyYes
idempotencyKeyYesStable key representing this one intended real-world action. Reuse it for retries.

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that it uses a stable idempotency key, executes the action, verifies authoritative post-state, and suppresses verified retries. However, it omits failure handling, error conditions, and the irreversibility of side effects, which are important for a consequential tool.

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?

The description is two concise sentences, front-loaded with the triggering condition and listing use cases. No wasted words; every part earns its place.

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

Completeness2/5

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

For a complex tool with nested objects and no output schema, the description lacks return value expectations and failure behavior. It doesn't explain what the agent should expect after calling, leaving some critical context missing for safe execution.

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

Parameters2/5

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

Schema coverage is only 33%, with only idempotencyKey having a description. The description repeats the idempotency key concept but adds no meaning to action or verify structures beyond what the schema already shows, failing to compensate for the low coverage.

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?

The description clearly states the tool's purpose with a specific verb ('prevent duplicate consequential actions') and lists concrete scenarios (purchase, refund, payment, etc.). It also explains the mechanism (idempotency, verification, suppression), which distinguishes it from the sibling once_demo as the real execution tool.

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?

'CALL THIS when an AI agent is about to perform or retry a consequential external side effect' explicitly indicates when to use. It gives a clear set of use cases, though it doesn't discuss alternatives or when not to use, so a small gap remains.

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.

TDQS

A4.1/5.0
Disambiguation5/5

once_demo and once_execute have completely distinct purposes: one for safe demonstration and one for real side-effectful operations. There is no ambiguity between them.

Naming Consistency5/5

Both tool names follow the consistent pattern 'once_<verb>' (demo, execute), making the naming predictable and easy to memorize.

Tool Count4/5

With only two tools, the server is minimal but well-scoped for its purpose: a demo tool for discovery and an execute tool for actual use. Slightly thin but appropriate for a focused idempotency service.

Completeness4/5

The server covers the essential workflow: demonstrating idempotency and performing real operations with suppression of duplicates. A status or history tool would be a nice addition but is not critical for the core purpose.