Skip to main content
Glama

setup_two_phase_commit

Generate two-phase commit coordinator and participant setup for cross-service transactions

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": {
      "participants": "<participants>",
      "database": "<database>"
    },
    "name": "setup_two_phase_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseYesCoordinator database
withTimeoutNoTransaction timeout in seconds
participantsYesParticipating service names

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. "Generate" is ambiguous about whether it writes files to disk, returns code snippets, or mutates a project, and it says nothing about side effects, reversibility, or required permissions for the participant services.

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?

A single front-loaded sentence with no filler or redundant phrasing. It is efficient, though its brevity is part of the specification gap rather than a virtue in itself.

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 generator tool with no output schema and no annotations, the definition should clarify what artifact is produced (config, code, migration) and how participants relate to the database. Neither the return shape nor side effects are covered, leaving an agent unable to predict the outcome.

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

Parameters3/5

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

Schema description coverage is 100%, with all three parameters documented including the database enum and timeout units. The description adds no meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb ("Generate") and a specific resource ("two-phase commit coordinator and participant setup") scoped to cross-service transactions. It is clearly differentiable from siblings like setup_database or create_saga, though it never names an alternative to contrast with.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to choose this over setup_database, create_saga, or create_event_store, nor any prerequisites such as needing a coordinator database first. Usage must be inferred from the phrase "cross-service transactions".

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.