Skip to main content
Glama

apihub_call_external

Call an external x402-protected URL (any provider in the marketplace or any x402 API). APIHub pays the provider on your behalf using the platform wallet and debits your credit balance for the exact amount. No wallet or gas required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe full URL to call (e.g. https://hub.atxp.ai/...)
bodyNoRequest body (object or string). Omit for GET.
methodNoHTTP method (default POST)
headersNoAdditional request headers. Do not set Authorization or X-PAYMENT - handled automatically.

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals critical behaviors: APIHub pays the provider via platform wallet, debits the user's credit balance for the exact amount, and requires no wallet or gas. This goes beyond the basic 'call' action and informs the agent of payment implications. It does not cover error conditions or response details, but for a call tool, the payment disclosure is the most important behavioral trait.

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 is two sentences, each serving a distinct purpose: the first states the primary action and scope, the second explains the payment mechanism. There is no redundancy or fluff, and the key information is front-loaded with the action verb.

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?

The tool has 4 parameters, all documented in the schema, and no output schema. The description covers the core purpose, scope, and payment behavior, which is sufficient for an agent to invoke the tool correctly. It lacks explicit error scenarios or response format, but the 'call' semantics and the financial context are the most relevant completeness elements. The absence of output schema is mitigated by the simplicity of expecting an HTTP response.

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?

Because schema description coverage is 100%, the baseline is 3. The description does not repeat parameter details, but it adds contextual meaning by explaining that no wallet or gas is required and payment is handled automatically, which aligns with the schema's note about Authorization/X-PAYMENT headers. However, it does not provide additional syntax or format details for any specific parameter, so it adds minimal value beyond the schema.

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 uses a specific verb 'Call' and names the resource 'external x402-protected URL', clearly distinguishing it from internal call alternatives like apihub_call. It further specifies 'any provider in the marketplace or any x402 API', making the tool's scope unambiguous.

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 provides clear context that this tool is for external x402-protected URLs only, implying a contrast with internal calls. It does not explicitly name alternatives or state when not to use it, but the 'external x402-protected' qualifier gives enough situational guidance for an AI agent to select it appropriately.

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.2/5.0
Disambiguation5/5

Each tool has a clearly distinct role: balance check, service discovery (list/search), service details, paid calls (onboarded vs external vs content), and credit top-up. The similar pairs (search vs search_external, call vs call_external) are separated by onboarded vs external scope, and descriptions explicitly guide selection.

Naming Consistency4/5

All names share the 'apihub_' prefix and use snake_case, with verbs like get, list, search, call, read. However, 'balance' and 'topup' deviate from the verb_noun pattern, making the convention slightly inconsistent but still predictable and readable.

Tool Count5/5

With 9 tools, the set is well-scoped for a credit-based API marketplace. Each tool serves a distinct step in the workflow (discover, inspect, call, manage funds), with no redundant tools and nothing missing at the broad level.

Completeness4/5

The surface covers the full lifecycle: searching and listing services, retrieving details, making calls to both onboarded and external APIs, reading content, checking balance, and topping up credits. Minor gaps like transaction history or service ratings exist but do not hinder the core purpose.