Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Batch Settle SAP x402 Calls

sap_x402_settle_batch
Destructive

Finalize batch settlement of x402 calls for payment flows. Requires agent owner wallet authorization.

Instructions

Batch-settle served x402 calls through SDK X402Registry.settleBatch. Must be called by the agent owner wallet. SAP MCP context: Payment and settlement flow. Estimate or fetch state before creating escrows or settling calls; write operations require an enabled signer mode and MCP policy approval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nonceNoOptional escrow nonce as a decimal string. Defaults to 0.
entriesNoArray of { calls, serviceData } settlement entries
commitmentNoOptional processed|confirmed|finalized commitment
maxRetriesNoOptional RPC retry limit
computeUnitsNoOptional compute-unit limit
skipPreflightNoOptional skip preflight flag
depositorWalletNoDepositor wallet public key (base58)
priorityFeeMicroLamportsNoOptional priority fee in microlamports per compute unit

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesMCP content blocks returned to the caller.
isErrorNoTrue when the tool result represents an application-level error.
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds that the caller must be the agent owner wallet and that write operations require signer mode and policy approval. However, it lacks details on failure modes, partial success, or what exactly gets settled beyond the entries array.

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 concise at three sentences, efficiently conveying the core purpose and key usage constraints. It could be slightly more structured (e.g., separate sentences for prerequisites), but it remains clear and to the point.

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?

Despite having an output schema, the description does not explain the return format or success/failure behavior. The 'entries' parameter structure is vaguely referenced but not detailed. For a complex batch settlement operation, this leaves significant gaps in understanding the tool's full behavior.

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?

All 8 parameters have descriptions in the schema (100% coverage). The description does not add any additional meaning or constraints beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 description explicitly states 'Batch-settle served x402 calls' using 'SDK X402Registry.settleBatch', giving a clear verb and resource. It places the tool within the 'Payment and settlement flow', but does not distinguish it from sibling settlement tools like sap_settle_escrow_v2.

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?

The description notes that the tool 'Must be called by the agent owner wallet' and requires 'enabled signer mode and MCP policy approval'. It advises to 'Estimate or fetch state before creating escrows or settling calls', but does not explicitly contrast with alternative settlement tools or specify when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OOBE-PROTOCOL/sap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server