Skip to main content
Glama

Call Service

call_service

Invokes a discovered API service via AgentClear's metered proxy and charges the per-call price to your prepaid balance; discover the service first to get its service ID and payload schema.

Instructions

Call an API service through AgentClear's metered proxy. You'll be charged the per-call price from your prepaid balance. Use 'discover_services' first to find the service_id. The payload varies by service — discovery results include expected input schemas.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "service_id": "<service_id>",
      "payload": "<payload>"
    },
    "name": "call_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesThe request payload to send to the upstream API. Structure depends on the service.
service_idYesThe service ID returned by discover_services, e.g. 'openweathermap', 'deepl-translate'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden well by disclosing that each call is metered and deducts the per-call price from a prepaid balance — a critical side effect an agent must know. It omits failure semantics, such as whether a failed call is still charged or what errors look like, which keeps it from a 5.

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?

Three short sentences, front-loaded with the core action, followed by the cost side effect and the prerequisite. No redundant restatement of the tool name or schema fields.

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 dynamic-payload proxy tool the description covers cost, prerequisites, and where to find payload structure, which is nearly everything needed to invoke it. With no output schema, it could say a bit about what the response contains (the upstream API's result), leaving a minor gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real value by explaining that the payload shape varies per service and that discovery results carry the expected input schemas — telling the agent how to construct an otherwise opaque parameter.

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 names a specific verb and resource — calling an upstream API service through AgentClear's metered proxy — which an agent can immediately distinguish from discover_services (lookup) and check_balance (account query).

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 explicitly directs the agent to run 'discover_services' first to obtain the service_id, giving a clear prerequisite and ordering. It doesn't state when-not to use this tool (e.g., avoid it for just probing available APIs), so it falls just short of full alternative coverage.

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

Deploy Server

Other Tools