Skip to main content
Glama

Mailrun Agent Identity

Place call

place_call
Idempotent

Place an outbound call (202 placing; follow meta.poll). Destinations limited to +1 numbers. For an identity with voice_mode hosted, Mailrun's AI carries the conversation from the identity's hosted_system_prompt plus the optional purpose for this call, and leaves outbound_voicemail_message if a machine answers; opening_text is then optional and only used if the hosted path is unavailable. Otherwise opening_text is required and spoken on connect: without an active voice.turn webhook receiver it is the whole call (spoken, then hang up); with one, the callee's replies go to it. Requires a stable idempotency_key; never redial with a new key on an uncertain outcome.

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": {
      "identity_id": "<identity_id>",
      "idempotency_key": "<idempotency_key>",
      "to": "<to>"
    },
    "name": "place_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesE.164, e.g. +14155550100.
purposeNoHosted identities: what this call is about, appended to the hosted prompt for this call only.
greetingNoHosted identities: overrides the default outbound greeting for this call. Keep it generic; no caller data.
identity_idYesIdentity id from list_identities.
opening_textNoSpoken on connect on the webhook path; capped by the voice text limit. Optional for hosted identities.
idempotency_keyYesStable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, open-world, idempotent, non-destructive action; the description goes far beyond that by disclosing the async 202-placing contract with meta.poll, the phone-number restriction, the hosted-vs-webhook branching, what happens without a webhook (opening_text spoken then hang up), and idempotency_conflict on a changed payload under a reused key.

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 the primary action and result code, then layered conditionals, and every clause carries real information. It is dense and parenthetical-heavy enough that a reader may need a second pass, but nothing is filler.

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?

For a 6-parameter, non-read-only, open-world tool with no output schema, the description covers invocation prerequisites, mode-dependent behavior, return signaling (202 + meta.poll), and retry semantics. Nothing an agent needs to call it correctly is missing.

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 baseline is 3, but the description adds mode-dependent meaning the schema cannot: purpose is appended to the hosted prompt, greeting is a hosted-path override, opening_text is conditionally required, and idempotency_key must stay stable across retries.

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 ('Place an outbound call') and immediately pins down the operational semantics: 202 placing with meta.poll, and +1-only destinations. No sibling in the list places calls, so no additional disambiguation is needed.

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?

Gives concrete conditional guidance: for voice_mode hosted identities the AI handles the call and opening_text is optional; otherwise opening_text is required, with behavior split on whether a voice.turn webhook receiver exists. Also gives retry guidance ('never redial with a new key on an uncertain outcome'). It does not name alternative tools, but no plausible alternative exists for this action.

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