Skip to main content
Glama

Zyla API Hub

call_api

Call an API endpoint on Zyla API Hub. Requires the user's API key and a credit card on file. Billing is pay-per-successful-request: you only pay for 2xx responses. Each API has its own price per call (shown in get_api_info), and every successful response includes cost_usd — the exact amount billed for that call. There is no monthly fee and no minimums. Usage is charged to the credit card automatically; call account_status for the billing mode in effect and the amount accrued this cycle. If a 402 error is returned with a payment_url, the user MUST open that URL in their browser to add a credit card before retrying. Pass the api_id, endpoint_id, HTTP method, and parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_idYesThe numeric API ID
methodNoHTTP method: GET or POST (default: GET)
paramsNoKey-value parameters to send with the request
endpoint_idYesThe numeric endpoint ID within the API

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 so thoroughly. It discloses pay-per-successful-2xx billing, the cost_usd field in every successful response, automatic credit card charging, no monthly fee or minimums, and the mandatory browser flow for 402/payment_url. This is far beyond a basic 'calls an API' statement.

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 long but information-dense; each sentence adds a distinct operational fact such as billing model, cost reporting, automatic charging, and payment recovery. It is front-loaded with the core action and prerequisites before the billing details. Minor redundancy between 'credit card on file' and 'charged automatically' prevents a 5.

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?

For a generic execution tool with no output schema, the description covers the essential contract: required inputs, auth prerequisites, billing side effects, the successful-response cost field, and the key 402 failure mode. It does not specify how the API key is passed or describe general error response shapes, but the schema and sibling tools fill much of the surrounding context.

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?

The input schema already documents all four parameters at 100% coverage, so the baseline is 3. The description only restates 'Pass the api_id, endpoint_id, HTTP method, and parameters' and adds no deeper meaning about how params are structured or how they map to endpoint behavior. It is not harmful, but it does not elevate the score.

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 opens with a clear verb and object ('Call an API endpoint on Zyla API Hub') and specifies the required inputs: api_id, endpoint_id, HTTP method, and parameters. It doesn't explicitly contrast the tool with catalog/lookup siblings, but its generic execution role is unmistakable.

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?

It names concrete prerequisites (API key, credit card on file), points to account_status for billing mode and accrued charges, and references get_api_info for pricing. It also gives explicit 402/payment_url retry behavior. It doesn't explicitly state 'use this tool when you need to execute the actual API call after discovering APIs', but the context strongly implies it.

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.

Resources