Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

sap_x402_prepare_payment

Prepare a V1 x402 payment context for monetized agent workflows, specifying agent wallet, price per call, deposit, and optional terms. Deprecated for production escrow creation; prefer Escrow V2 tools.

Instructions

Prepare a V1 x402 payment context using SDK X402Registry.preparePayment. Deprecated by the SDK for production escrow creation; prefer Escrow V2 tools for new flows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depositNoInitial deposit amount as a decimal string
maxCallsNoOptional maximum number of calls covered
expiresAtNoOptional expiry timestamp in unix seconds
tokenMintNoOptional SPL token mint; omit/null for SOL
agentWalletNoAgent wallet public key (base58)
volumeCurveNoOptional array of { afterCalls, pricePerCall } pricing breakpoints
pricePerCallNoPrice per call as a decimal string
tokenDecimalsNoOptional token decimals
networkIdentifierNoOptional x402 network identifier written into headers
Behavior2/5

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

No annotations present, so description must fully disclose behavior. It only mentions SDK usage but omits effects (e.g., on-chain transaction, returns), permissions, or cost implications, leaving significant gaps for a 9-parameter tool.

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?

Two concise sentences with essential information front-loaded (purpose and deprecation), no unnecessary words.

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 complex tool with no output schema and no annotations, the description is minimal. It lacks context about the purpose of the payment context, workflow integration, or how it differs from related x402 tools, leaving the agent underinformed.

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 9 parameters have schema descriptions, so baseline is 3. The tool description adds no extra parameter-specific meaning beyond the schema.

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?

Description explicitly states it prepares a V1 x402 payment context using a specific SDK method, clearly distinguishing it from sibling tools like sap_x402_build_headers and sap_x402_settle.

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

Usage Guidelines5/5

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

Explicitly states deprecation for production escrow creation and recommends Escrow V2 tools as alternatives, providing clear when-not-to-use guidance.

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