Skip to main content
Glama
OOBE-PROTOCOL

SAP MCP Server

Resolve SAP MCP Next Action

sap_agent_next_action
Read-onlyIdempotent

Route next action for SAP MCP errors and partial results. Use to resolve issues before retrying on payment_required, timeout, or unconfirmed signatures.

Instructions

Free routing resolver for SAP MCP errors and partial results. Use this before retrying after payment_required, hosted_local_signer_required, BlockhashNotFound, missing sap_payments, timeout, or a submitted signature that has not confirmed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
intentNoCurrent user intent or workflow area.
toolNameNoTool that produced the error or partial result, for example sap_register_agent, sap_update_agent, or sap_create_escrow_v2.
errorCodeNoMachine error code when available, for example hosted_local_signer_required, payment_required, BlockhashNotFound, or expired_or_not_landed.
errorMessageNoHuman or structured error message returned by the runtime, hosted server, local bridge, or wallet/RPC layer.
hasSignatureNoTrue when a transaction signature was already produced or submitted. This prevents unsafe duplicate retries.
paymentRequiredNoTrue when the previous response was an x402/pay.sh payment challenge.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYesWhether the resolver produced guidance.
nextToolYesExact preferred next SAP MCP tool, or null when user/runtime action is needed.
retryableYesWhether the underlying issue can generally be retried.
nextActionYesConcrete next action for the agent.
userMessageYesShort user-facing explanation.
classificationYesNormalized error or routing classification.
paymentChargedYesBest-effort payment status: no, unknown, possible, or yes.
safeToRetryNowYesWhether the agent should retry immediately without risking duplicate writes or duplicate user charges.
forbiddenActionsYesActions the agent must not take for this case.
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, indicating safe, non-mutating behavior. The description adds context about being a 'routing resolver' for errors, but does not introduce new behavioral traits beyond what annotations provide. No contradictions.

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?

The description consists of two succinct sentences that immediately convey the tool's purpose and usage context. No unnecessary words or details.

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's moderate complexity (6 parameters, no required, output schema present), the description covers the essential purpose, usage triggers, and error scenarios. The output schema handles return value documentation. Slight room for improvement could be mentioning output type, but overall sufficiently 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 detailed descriptions for all 6 parameters (e.g., 'intent' enum, 'errorCode' values). The description does not add additional meaning beyond the schema, so a baseline score of 3 is appropriate. The description implicitly relates parameters to error handling, but no explicit parameter guidance.

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 'Free routing resolver for SAP MCP errors and partial results', specifying its role as a resolver for error conditions. It lists concrete error codes (e.g., payment_required, BlockhashNotFound) and scenarios (timeout, unconfirmed signature), making the tool's purpose distinct from sibling tools.

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 explicitly directs agents to use this tool 'before retrying after' a list of specific errors and partial results (e.g., payment_required, timeout). This provides clear when-to-use guidance. It does not explicitly state when not to use it, but the positive context is strong enough to avoid misuse.

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