Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Sign Hosted x402 Challenge

sap_payments_sign_challenge

Signs a parsed x402 PaymentRequired challenge with the active wallet profile and returns a one-time Payment-Signature header for custom client implementations requiring direct payment header access.

Instructions

Low-level local helper that signs a parsed x402 PaymentRequired challenge with the active SAP MCP profile wallet and returns a one-time Payment-Signature header. Use only when building a custom client; normal agents should prefer sap_payments_call_paid_tool so the payment header is not surfaced separately. Requires confirm: true and maxPriceUsd.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be true. Confirms the user allows this helper to sign an x402 payment payload.
challengeNoAlias for paymentRequired for agent runtimes that store the challenge under a generic name.
maxPriceUsdNoMaximum accepted x402 payment amount in USD. The call aborts if the challenge exceeds this cap.
profileNameNoSAP MCP profile used to sign the x402 payment. Defaults to the active profile.
selectedIndexNoIndex into paymentRequired.accepts to sign. Defaults to 0.
paymentRequiredNoParsed x402 PaymentRequired challenge returned by sap_payments_prepare_challenge or the hosted MCP payment_required response.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
headersNoHTTP headers to attach to the exact paid retry request.
payloadNox402 payment payload produced by the official client SDK.
paymentNoSelected network, asset, and payTo.
warningNoSafety warning for one-time payment authorization material.
amountUsdNoUSD amount authorized by the selected challenge.
signerAddressNoPublic address of the signer that created the payment authorization.
Behavior4/5

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

Annotations (readOnlyHint=false, destructiveHint=false) are present. Description adds that it requires confirm: true and maxPriceUsd, returns a one-time header, and that the payment header is not surfaced when using the sibling. It does not elaborate on side effects beyond signing, but the annotations already cover the non-destructive nature.

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, front-loaded with purpose, then usage guidance. No wasted words. Alternative tool named explicitly.

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?

For a low-level helper with 6 parameters, annotations, and an output schema, the description covers purpose, usage constraints, and alternative. Could mention that it's local (already 'local helper') but otherwise complete.

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 coverage is 100% with each parameter having a description. The description adds no further meaning beyond the schema; it only states the overall tool purpose and constraints. 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?

The description clearly states the verb ('signs a parsed x402 PaymentRequired challenge') and the resource ('returns a one-time Payment-Signature header'). It also distinguishes from the sibling tool sap_payments_call_paid_tool by noting that normal agents should prefer it.

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 says 'Use only when building a custom client; normal agents should prefer sap_payments_call_paid_tool' which provides clear when-to-use and when-not-to-use guidance. Also mentions requirements: 'Requires confirm: true and maxPriceUsd.'

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