Skip to main content
Glama

Create a rail-neutral commitment

create_commitment

Creates a governed commitment between a buyer and a seller and persists it to the SAAX commitment store. The commitment is settlement-rail-neutral: settlementRail is metadata only (x402, mpp, ap2, acp, or unspecified) and is NEVER a prerequisite. Returns the new commitment id (saax_), createdAt, status, and the settlementRail. Call this BEFORE any payment flow to establish the governed commitment record. Once created, use get_commitment to read the manifest.

Input Schema

NameRequiredDescriptionDefault
termsYesThe commercial terms: deliverable, price, deadline
buyerIdYesThe buyer's identity: 0x-address or agent id
sellerIdYesThe seller's identity: 0x-address or agent id
recoveryPolicyNoRecovery policy on failure
settlementRailNoThe settlement rail as metadata. Never a prerequisite; 'unspecified' is valid.unspecified
acceptanceCriteriaYesObjective acceptance criteria for fulfillment
evidenceRequirementsNoEvidence the seller must supply

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses important behavior: rail-neutrality with settlementRail as metadata only and never a prerequisite, plus the returned fields (id format saax_<hash>, createdAt, status, settlementRail). It doesn't cover permissions/authorization or idempotency, which would be relevant for a create/persist operation.

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?

Four sentences, front-loaded with purpose, then rail semantics, then return values, then sequencing. Efficient and well-ordered, though the rail-neutrality point is repeated (title says 'rail-neutral', body reiterates it).

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

Completeness4/5

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

Given 7 params with nested objects and no output schema, the description compensates well by naming the returned fields. It covers purpose, rail semantics, return shape, and next-step routing. Missing only edge cases like duplicate/idempotency behavior or auth requirements.

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%, so the schema already documents all 7 parameters including the nested terms/price/recoveryPolicy objects. The description adds value by clarifying the settlementRail semantics ('metadata only, unspecified is valid'), but otherwise the schema does the heavy lifting. Baseline 3 is appropriate.

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 ('Creates a governed commitment between a buyer and a seller') and names the persistence target (SAAX commitment store). This clearly distinguishes it from the read-only siblings like get_commitment and list_commitments.

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?

Explicitly says 'Call this BEFORE any payment flow' and directs the agent to get_commitment afterward for reading the manifest. Strong sequencing guidance, though it doesn't state when NOT to create a commitment (e.g., if one already exists for this pair).

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