Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Build SAP x402 Headers From Escrow

sap_x402_build_headers_from_escrow

Fetch escrow data for an agent wallet and build SAP x402 HTTP headers for payment settlement.

Instructions

Build SAP x402 HTTP headers by fetching escrow data for an agent wallet with SDK X402Registry.buildPaymentHeadersFromEscrow. 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.
networkNoOptional network identifier for X-Payment-Network
agentWalletNoAgent wallet public key (base58)

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?

The description adds context like SDK method name and flow position beyond annotations. However, it is ambiguous whether the tool performs writes: it says 'fetching escrow data' (read) but annotations mark readOnlyHint=false, suggesting possible writes. The description does not clarify side effects or state modifications, leaving agents uncertain.

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?

Three sentences, no fluff, first sentence states purpose and method, second gives context, third provides guidance. Ideal conciseness for an agent.

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 the tool has an output schema (not shown but present) and full schema coverage, the description covers high-level usage context and flow. It does not explain error conditions or prerequisites (e.g., existence of escrow data), but is adequate for a builder tool.

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?

Input schema covers all 3 parameters with 100% description coverage. The description adds no additional semantics about parameters (e.g., format, defaults, or constraints beyond schema). Baseline score 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?

The description clearly states it builds SAP x402 HTTP headers by fetching escrow data, using a specific SDK method. It distinguishes itself from sibling tools like sap_x402_fetch_escrow (which fetches but does not build headers) and sap_x402_settle_batch (which settles). The verb 'build' and resource 'HTTP headers' are specific.

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?

The description advises to use this tool before creating escrows or settling calls, placing it in the payment flow context. It warns that write operations require signer mode and policy approval. However, it does not explicitly say when not to use it or compare with alternative tools for pre-payment steps.

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