Skip to main content
Glama

Make a test call to an agent

test_call
Destructive

Have this account's agent call a number right now, to check it actually works end to end. This call is BILLED exactly like a regular outbound agent call (no discount), it is just capped at a strict 3 calls per ACCOUNT per 24 hours across all agents (far stricter than regular calls) - every dialed attempt counts, including an unanswered one (which is not charged). The response carries testCalls (max, remaining, resetAt) and get_account shows the same before you call; when it runs out this fails with rate_limited, the message says when the next test call is available, and nothing is charged. Use this for occasional verification, not for regular dialing - for that use make_call/POST /v1/calls, which has no such cap. With a monthly spending cap set by the customer (see get_spend_cap) and reached this month, this fails with spend_cap_reached (HTTP 402): nothing is charged and retrying will not help, so tell the customer, who can raise or remove the cap (set_spend_cap, clear_spend_cap) or wait for the next month. Same data as POST /v1/agents/{id}/test-call (response schema in /openapi.json).

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": {
      "agentId": "<agentId>",
      "to": "<to>"
    },
    "name": "test_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesE.164 destination to call, e.g. +420700123456.
agentIdYesId of the agent that should make the call, from list_agents. Looks like ag_9f3a2b7c4d1e.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint=true, openWorldHint=true) by disclosing that the call is billed like a real outbound call, that the account-wide cap is 3 per 24h, that every dial attempt counts while unanswered calls are not charged, and that both failure modes (rate_limited, spend_cap_reached/402) charge nothing and are non-retryable. The one gap is that it never says what a successful test result looks like beyond the testCalls counter (e.g. whether it waits for the call to complete or returns immediately).

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?

Front-loaded with purpose and alternative, and every sentence conveys a distinct operational fact (billing, cap, error codes, remediation). It is dense to the point of being a single long run-on paragraph with stacked parentheticals, which costs a little scannability but no sentence is genuinely wasted.

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?

With no output schema, the description compensates by naming the returned testCalls fields (max, remaining, resetAt) and the exact error identifiers an agent must branch on. For a billed, rate-limited, destructive action with two required params, nothing material is missing.

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% and both parameters already document format and provenance (E.164 destination, agent id 'from list_agents'), so the description adds no per-parameter meaning. Baseline 3 applies when the schema carries parameter semantics.

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?

Opens with a specific verb, resource and intent: 'Have this account's agent call a number right now, to check it actually works end to end.' It immediately distinguishes itself from the regular-dial sibling ('for that use make_call/POST /v1/calls'), so an agent can pick between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('occasional verification'), when-not ('not for regular dialing'), and the named alternative (make_call). It also routes the agent to get_account and get_spend_cap for pre-checks and to set_spend_cap/clear_spend_cap for remediation, which is unusually complete for a caller-facing tool.

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.