Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

sap_x402_build_payment_headers

Constructs SAP x402 HTTP headers using a public PaymentContext from sap_x402_prepare_payment, enabling payment verification for API calls.

Instructions

Build SAP x402 HTTP headers from a public PaymentContext returned by sap_x402_prepare_payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoOptional override for X-Payment-Network
agentPdaNoAgent PDA (base58)
maxCallsNoMax calls as a decimal string
escrowPdaNoEscrow PDA (base58)
agentWalletNoAgent wallet public key (base58)
txSignatureNoEscrow creation transaction signature
pricePerCallNoPrice per call in token base units
depositorWalletNoDepositor wallet public key (base58)
networkIdentifierNox402 network identifier stored in the payment context
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 of behavioral disclosure. It fails to disclose any behavioral traits such as whether the operation is read-only, what happens if the context is invalid, required permissions, side effects, or rate limits. For a tool with no annotations and 9 parameters, this is a significant gap.

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 a single, concise sentence that immediately states the purpose. It is front-loaded and wastes no words. However, it could benefit from a brief mention of the output or additional context without becoming verbose.

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?

Given the tool has 9 parameters and no output schema, the description is incomplete. It does not explain what the resulting HTTP headers are used for, how the parameters influence the headers, what the return value looks like, or any error conditions. The minimal context provided is insufficient for an agent to use the tool correctly without additional knowledge.

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?

The schema covers 100% of parameters with individual descriptions, so the baseline is 3. The tool description does not add any additional meaning or context beyond the schema, such as how the parameters map to HTTP header fields or their interrelationships. Thus, it meets the minimum requirement but provides no extra value.

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 clearly states that the tool builds HTTP headers from a PaymentContext, referencing the source tool sap_x402_prepare_payment. The verb 'Build' and resource 'HTTP headers' are specific, and it distinguishes the tool from other sap_x402_* siblings by naming the required input context, but it does not differentiate from the similar sibling sap_x402_build_headers_from_escrow.

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 implies that the tool should be used after obtaining a PaymentContext from sap_x402_prepare_payment, providing a prerequisite. However, it does not specify when to use this tool vs. alternatives like sap_x402_build_headers_from_escrow, nor does it mention any exclusions or scenarios where this tool is inappropriate.

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