Skip to main content
Glama

call_service

Call a listed remote service THROUGH Clearhouse and get a signed receipt.

Routes the call via the matching protocol adapter (MCP / A2A / HTTP-x402),
enforces spend caps, settles x402 paywalls (dry-run by default), and
returns the result plus a cryptographically signed receipt binding
intent -> execution -> settlement -> outcome.

Args:
    listing_id: id from search_agents results
    tool: downstream tool name (omit to list the service's tools)
    args_json: JSON object of tool arguments
    caller_ref: opaque caller identifier for the receipt
    payment_json: for paid services — JSON {"authorization": typed_data.message,
        "signature": "0x..."} produced by signing quote_call's typed_data with
        your own key. Clearhouse relays it; it never sees your private key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolNo
args_jsonNo{}
caller_refNomcp-client
listing_idYes
payment_jsonNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses protocol adapter routing (MCP / A2A / HTTP-x402), spend-cap enforcement, dry-run default for x402 settlement, the signed receipt binding, and the fact that Clearhouse relays payment without seeing the private key. This gives the agent a clear model of side effects and safety behavior.

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 leads with a one-sentence summary, followed by a compact behavior block and a structured Args list. No sentence is filler — even the receipt-binding chain ('intent -> execution -> settlement -> outcome') concisely communicates the guarantee. It is long only because the tool is complex, and it front-loads the essential action.

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?

The tool has five parameters, no annotations, and an output schema (so return values do not need to be described). The description covers the full call flow, parameter semantics, optional behaviors, payment handling, and the receipt result, and it links to the sibling tools (search_agents, quote_call) that precede it. No critical information needed to select or invoke this tool correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the parameter explanations in the description are the only guidance available. Every one of the five parameters receives an added semantic: listing_id is tied to search_agents results, tool gains the omit-to-list behavior, args_json is a JSON object of tool arguments, caller_ref is identified as an opaque receipt identifier, and payment_json gets a precise JSON structure and signing source. This fully compensates for the schema gap.

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?

States a specific verb+resource: 'Call a listed remote service THROUGH Clearhouse and get a signed receipt.' The description further clarifies the role by mentioning protocol adapters, spend caps, and a signed receipt, which distinguishes it from siblings like search_agents (listing), quote_call (pricing/typed_data), and service_evidence (post-hoc verification).

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 references the prerequisite flow — 'listing_id: id from search_agents results' and payment_json produced by signing quote_call's typed_data — which tells the agent when this tool fits in the workflow. It also gives an explicit usage note for the optional 'tool' parameter ('omit to list the service's tools'). However, it never states when-not-to-use or points to an alternative for a specific condition, so it falls short of an explicit routing rule.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool covers a distinct stage of the workflow: discovery (search_agents), marketplace-level data (index_stats), per-service evidence (service_evidence), pricing/authorization (quote_call), and execution (call_service). There is no meaningful overlap or ambiguity between tool purposes.

Naming Consistency3/5

Three tools use a clear verb_noun pattern (call_service, quote_call, search_agents), but index_stats and service_evidence are noun phrases. The names are readable and snake_case is consistent, but the convention is mixed rather than uniform.

Tool Count5/5

Five tools is well-scoped for a service gateway: search, evidence, stats, quote, and call. Each tool has a clear role and no tool feels redundant or unnecessary.

Completeness5/5

The toolset covers the full agent-facing lifecycle: discovering services, inspecting evidence and index totals, obtaining payment quotes, and executing calls with signed receipts. There are no obvious dead ends or missing operations within the stated domain.