Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Finalize Transaction With Local Signer

sap_payments_finalize_transaction

Previews, signs with the local SAP profile signer, and optionally submits Solana transactions returned by hosted builder tools. Requires user confirmation.

Instructions

Local non-custodial transaction finalizer for hosted SAP MCP builders. Use this when a hosted tool returns transactionBase64, transaction, or an unsigned Solana transaction. It previews, signs with the active local SAP MCP profile signer, and optionally submits through the OOBE hosted submit relay for reliable confirmation. The relay only broadcasts already-signed bytes and never receives keypair material. Never create temporary signing scripts, read keypair JSON, or call hosted sap_sign_transaction for user-owned signatures. Requires confirm: true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
submitNoWhen true, submit the signed transaction after preview and signing. When false or omitted, return the signed transaction for inspection.
confirmNoMust be true. Confirms the user allows the local SAP MCP signer to sign this transaction.
encodingNoEncoding for transaction or transactionBase64. Defaults to base64.
intentIdNoOptional caller-provided id used to bind preview, signature, submission, and audit output.
commitmentNoDesired confirmation status before returning success. Defaults to confirmed.
maxRetriesNoOptional Solana RPC sendRawTransaction maxRetries value, used only when submit is true.
transactionNoSerialized unsigned or partially signed Solana transaction. Accepts base64 by default.
skipPreflightNoOptional Solana RPC sendRawTransaction skipPreflight flag, used only when submit is true.
submitRelayUrlNoOptional submit relay URL. Must be HTTPS, localhost, or 127.0.0.1. Defaults to https://mcp.sap.oobeprotocol.ai/tx/submit.
submitViaRelayNoWhen submit is true, defaults to true. Set false only when the user explicitly wants local RPC submission instead of the OOBE hosted submit relay.
transactionBase64NoAlias for transaction when the builder returns transactionBase64.
confirmationTimeoutMsNoOptional bounded confirmation wait in milliseconds. Defaults to 90000; maximum 180000.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
auditYesProof object binding intent, local signer, preview, signing, submission, and secret-material guarantee.
actionYespreview-sign or preview-sign-submit.
previewYesDecoded transaction preview and policy result.
successYesWhether finalization succeeded.
encodingNoEncoding of signedTransaction.
retrySafeNoWhether the agent may ask the user to retry without risking a known landed duplicate.
signatureNoSolana transaction signature when submit is true.
submittedYesWhether the signed transaction was submitted to RPC.
explorerUrlNoSolana explorer URL for the submitted signature.
signerPublicKeyYesPublic key of the local signer that signed the transaction.
nativeTransferSolYesEstimated native SOL transferred by the transaction.
signedTransactionNoBase64 signed transaction when submit is false or for audit.
confirmationStatusNoConfirmed/finalized/failed/expired_or_not_landed status when submit is true.
Behavior5/5

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

The description adds context beyond annotations: it previews, signs with active local profile, optionally submits via relay, and clarifies relay security ('never receives keypair material'). No contradiction with annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false).

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?

A single paragraph of 5 sentences, front-loaded with purpose, followed by usage and warnings. Every sentence contributes essential information with no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite 12 parameters and complex workflow, the description covers input scenarios, signing process, submission options, security guarantees, and required confirm flag. Output schema exists (not shown) but is not needed for completeness here. Sufficient for correct agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and parameters are well-documented in the schema. The description adds value by highlighting key usage constraints (confirm: true, submit relay defaults) without repeating schema details. While not exhaustive, it integrates parameter context into the workflow.

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 tool's purpose as a local non-custodial transaction finalizer for hosted SAP MCP builders, specifying inputs (transactionBase64, transaction, unsigned Solana transaction) and actions (preview, sign, optionally submit). It distinguishes from siblings like sap_sign_transaction and sap_submit_signed_transaction by emphasizing local signing and relay submission.

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 when to use: when a hosted tool returns transactionBase64, transaction, or unsigned Solana transaction. Provides clear when-not-to-use guidance: 'Never create temporary signing scripts, read keypair JSON, or call hosted sap_sign_transaction for user-owned signatures.' This offers effective alternative disambiguation.

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