Skip to main content
Glama

Discover SAP Agents

sap_discover_agents

Paid hosted discovery for SAP agents. Search and filter the current on-chain AgentAccount directory by query, wallet, protocol, capability, x402 endpoint presence, and cursor pagination. Use this for targeted agent discovery before calling per-agent fetch tools. SAP MCP context: Read-only SAP SDK wrapper against the configured Solana RPC and SAP program. Use these reads to inspect current chain state before mutating registry, payment, reputation, memory, or tool accounts.

SAP MCP execution guidance: Intent: read/discovery workflow. Pricing: paid read-premium; estimate first, then use sap_payments_call_paid_tool when the runtime cannot replay x402 natively. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNoResult shape. Use compact for broad discovery and full for detailed rows. Defaults to compact.
limitNoMaximum rows to return. Defaults to 50; hard-capped at 500.
queryNoOptional text search across name, description, agentId, wallet, PDA, x402 endpoint, protocols, capabilities, and active plugins. Example: "XONA" or "creative".
cursorNoOpaque pagination cursor returned as pagination.nextCursor by a previous sap_list_all_agents or sap_discover_agents call.
offsetNoZero-based pagination offset. Defaults to 0. Prefer cursor after the first page when nextCursor is returned.
walletNoOptional exact owner wallet public key filter. Use this when a wallet is known; it is the most reliable lookup path.
hydrateNoDeprecated compatibility alias. Use view="full" for full rows or view="compact" for directory rows.
agentPdaNoOptional exact SAP agent PDA filter.
protocolNoOptional protocol filter matched case-insensitively against agent protocols and protocol-index membership. Example: "jupiter", "creative", "payments".
capabilityNoOptional single capability ID filter matched case-insensitively. Example: "creative:imageGeneration" or "jupiter:swap".
capabilitiesNoOptional list of capability IDs. Use capabilityMode="all" when the agent must have every capability.
capabilityModeNoHow to match the capability/capabilities filters. Defaults to "any".
hasX402EndpointNoOptional filter for agents that advertise a paid HTTP/x402 endpoint.
includeInactiveNoInclude inactive agents. Defaults to false.
includeProtocolIndexesNoInclude compact protocol index summaries. Defaults to false for sap_discover_agents and true for sap_list_all_agents.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesMCP content blocks returned to the caller.
isErrorNoTrue when the tool result represents an application-level error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / description
      Added value: +"Discover SAP Agents input schema. Intent: read/discovery workflow. Pricing: paid read-premium; estimate first, then use sap_payments_call_paid_tool when the runtime cannot replay x402 natively. Routing: paid hosted call; call sap_estimate_tool_cost first, then use sap_payments_call_paid_tool if the runtime cannot handle x402 natively. Signer boundary: hosted reads/builders never receive keypair bytes; value-moving results must be finalized locally when signing is required. Use exact field names from this schema; do not guess aliases or include private key material."
    • changedInput schema / properties / capabilities / items / description
      Previous value: -"Capabilities parameter for Discover SAP Agents."New value: +"Capabilities array describing agent/tool capabilities. Use stable IDs, protocol labels, and human-readable descriptions; validate category values before writes."
  2. Changed15 schema fields changed
    • addedInput schema / properties / agentPda
      Added value: +{
      +  "description": "Optional exact SAP agent PDA filter.",
      +  "type": "string"
      +}
    • changedInput schema / properties / capabilities / description
      Previous value: -"Array of capability IDs to filter agents by (requires at least one)"New value: +"Optional list of capability IDs. Use capabilityMode=\"all\" when the agent must have every capability."
    • changedInput schema / properties / capability / description
      Previous value: -"Single capability ID to filter agents by (e.g. \"jupiter:swap\")"New value: +"Optional single capability ID filter matched case-insensitively. Example: \"creative:imageGeneration\" or \"jupiter:swap\"."
    • addedInput schema / properties / capabilityMode
      Added value: +{
      +  "description": "How to match the capability/capabilities filters. Defaults to \"any\".",
      +  "enum": [
      +    "any",
      +    "all"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Opaque pagination cursor returned as pagination.nextCursor by a previous sap_list_all_agents or sap_discover_agents call.",
      +  "type": "string"
      +}
    • addedInput schema / properties / hasX402Endpoint
      Added value: +{
      +  "description": "Optional filter for agents that advertise a paid HTTP/x402 endpoint.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / hydrate / description
      Previous value: -"Whether to include full hydrated agent profiles in results (default: true)"New value: +"Deprecated compatibility alias. Use view=\"full\" for full rows or view=\"compact\" for directory rows."
    • addedInput schema / properties / includeInactive
      Added value: +{
      +  "description": "Include inactive agents. Defaults to false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / includeProtocolIndexes
      Added value: +{
      +  "description": "Include compact protocol index summaries. Defaults to false for sap_discover_agents and true for sap_list_all_agents.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of agents to return (default: 50)"New value: +"Maximum rows to return. Defaults to 50; hard-capped at 500."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Zero-based pagination offset. Defaults to 0. Prefer cursor after the first page when nextCursor is returned.",
      +  "type": "number"
      +}
    • changedInput schema / properties / protocol / description
      Previous value: -"Protocol identifier to filter agents by (e.g. \"jupiter\", \"drift\")"New value: +"Optional protocol filter matched case-insensitively against agent protocols and protocol-index membership. Example: \"jupiter\", \"creative\", \"payments\"."
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Optional text search across name, description, agentId, wallet, PDA, x402 endpoint, protocols, capabilities, and active plugins. Example: \"XONA\" or \"creative\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "Result shape. Use compact for broad discovery and full for detailed rows. Defaults to compact.",
      +  "enum": [
      +    "compact",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / wallet
      Added value: +{
      +  "description": "Optional exact owner wallet public key filter. Use this when a wallet is known; it is the most reliable lookup path.",
      +  "type": "string"
      +}
  3. First observed

TDQS

B3.1/5.0
Behavior1/5

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

The description claims 'Read-only SAP SDK wrapper' and 'Use these reads to inspect current chain state', but the annotation readOnlyHint is false. This is a direct contradiction, severely undermining transparency. Additionally, the description adds details about pricing and routing that go beyond annotations, but the contradiction overrides.

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 front-loaded with the core purpose in the first sentence. It includes two paragraphs: one for tool function, one for SAP MCP execution context. Though somewhat verbose with pricing and routing details, it remains well-structured and each sentence adds value.

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 15 parameters and output schema existence, the description covers the read-only usage, pricing model, and intended workflow. It lacks a direct comparison to sibling listing tools, but overall provides sufficient context for an agent to use it appropriately.

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%, so the schema already describes all parameters. The description lists filter types but adds no additional semantics beyond the schema. Baseline 3 is appropriate as the description does not deepen parameter understanding.

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 the purpose: 'Paid hosted discovery for SAP agents' with filtering by query, wallet, protocol, etc. It positions the tool for targeted discovery before per-agent fetch tools. However, it does not explicitly distinguish from similar sibling tools like sap_list_agents or sap_list_all_agents, leaving some ambiguity.

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 provides usage guidance: 'Use this for targeted agent discovery before calling per-agent fetch tools' and discusses read-only context before mutations. However, it does not specify when not to use it (e.g., for a single known agent via sap_get_agent) or alternatives explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.