Skip to main content
Glama

Begin idempotency

idem_begin

Start an idempotency key or return the prior outcome. fingerprint is a hex hash. Call keys.create once. Pass caller_key on every later tools/call.

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": {
      "key": "<key>",
      "scope": "<scope>",
      "fingerprint": "<fingerprint>"
    },
    "name": "idem_begin"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
scopeYes
ttl_sNo
caller_keyNopf_ key from keys.create. Pass this on tools/call when Authorization and X-Caller-Key are not set. A header key wins if both are set.
fingerprintYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already establish that this is not read-only and not destructive, and the description adds that starts can return a prior outcome and that caller_key must be propagated. It still omits ttl behavior, duplicate-key semantics, auth details beyond the schema, and any response shape.

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?

The description is four short sentences, front-loads the core operation, and contains no filler. The fragmented style is terse but not bloated.

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 five-parameter mutation tool with no output schema, the description leaves out scope and ttl semantics, duplicate-key behavior, and meaningful return details beyond "prior outcome." An agent still lacks enough context to call this tool confidently in edge cases.

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?

With schema description coverage at 20%, the description needs to explain more parameters. It only clarifies fingerprint as a hex hash and caller_key usage, leaving key, scope, and ttl_s without added meaning.

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?

The first sentence states a specific operation, starting an idempotency key, and notes the idempotent prior-outcome behavior. It does not explicitly distinguish the tool from the sibling idem.commit, so it falls short of a 5.

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

Usage Guidelines3/5

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

It gives workflow guidance by saying to call keys.create once and pass caller_key on later tools/call invocations. It does not explain when to use idem_begin rather than idem.commit, nor does it state when not to use this tool.

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