Register SAP Agent (Raw SDK Deprecated)
sap_register_agentRegisters an SAP agent with display name, pricing tiers, protocols, and capabilities via the raw SDK. Deprecated; production uses the canonical payment-confirmed path.
Instructions
Deprecated raw SDK wrapper. Production registration must use sap_payments_register_agent so the local signer path confirms the account, verifies the 0.1 SOL protocol treasury fee invariant, and returns protocolComplete. Hosted accountless SAP MCP rejects this direct write before x402 payment. SAP MCP context: Do not use this raw SDK wrapper for production registration. The canonical registration path is sap_payments_register_agent, because it confirms the account, audits the protocol treasury fee, and fails closed when protocolComplete is false. Hosted accountless SAP MCP rejects direct registration before x402 payment because OOBE never custodies user wallet keys. Use sap_agent_identity_plan first, then sap_payments_register_agent with confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required public display name for the SAP agent. Keep it stable enough for explorers and humans. | |
| agentId | No | Optional stable lowercase agent id, for example solking. This is separate from the on-chain agent PDA. | |
| pricing | No | Optional pricing tiers advertised by the agent. Use tokenType usdc + settlementMode x402 for pay.sh/x402 agent commerce. | |
| agentUri | No | Optional public HTTPS/IPFS/Arweave/Kommodo URI for the agent profile metadata or profile page. Never use local desktop file paths. | |
| protocols | No | Required protocol tags the agent supports, for example sap, mcp, jupiter, pyth, metaplex, sns, x402, payments. | |
| description | No | Required public description of what the agent does, which protocols it can use, and its safety/trust boundaries. | |
| metadataUri | No | Alias for agentUri. Prefer a public JSON metadata document containing name, description, image, external_url, attributes, sap, metaplex, sns, and x402 fields. | |
| capabilities | No | Required capability list. Prefer object form for production; strings are accepted as shorthand. | |
| x402Endpoint | No | Optional public x402 discovery/payment endpoint, usually https://host/.well-known/x402 for external agent services. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MCP content blocks returned to the caller. | |
| isError | No | True when the tool result represents an application-level error. |