Skip to main content
Glama

Mailrun Agent Identity

Provision phone

provision_phone
Idempotent

Buy a number for the identity (202 provisioning; the number is not known yet; follow meta.poll). Needs the phone channel, a card on file, and stays within the hourly provisioning limit. area_code is a preference: with none available there the number comes from elsewhere in the country, and get_phone then shows requested_area_code with area_code_fallback true.

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>"
    },
    "name": "provision_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNoDefault US.US
area_codeNoThree-digit NANP area code: first digit 2-9, middle digit 0-8, not an N11 service code (else validation_failed).
identity_idYesIdentity id from list_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.2/5.0
Behavior5/5

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

Beyond the annotations (idempotent, open-world, non-destructive mutation) it discloses the 202 asynchronous provisioning behavior, the polling requirement via meta.poll, billing/card prerequisite, and a rate-limit constraint. That is substantial behavioral context an agent cannot get from the structured fields alone.

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 purpose is front-loaded in the first clause and every sentence carries operational information. The parenthetical '(202 provisioning; the number is not known yet; follow meta.poll)' is dense and slightly crammed, but nothing is genuinely wasted.

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?

With no output schema and an async mutation, the description supplies the status code, polling path, prerequisites, and how to verify results, which is close to complete. It still leaves the failure modes (e.g., card declined, limit exceeded) and their error codes unstated.

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 real semantics beyond the schema: area_code is only a preference, and when unavailable the number comes from elsewhere in the country with requested_area_code and area_code_fallback surfaced by get_phone. The idempotency_key retry/conflict semantics are already in the schema.

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 specific verb and resource ('Buy a number for the identity') and clarifies the essential trait that the number is not returned immediately. It names get_phone as the place where the resulting number and area-code fallback appear, which helps separate this tool from the inspection sibling, though other relatives such as release_phone are not contrasted.

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 states the preconditions for calling it (phone channel enabled, a card on file, within the hourly provisioning limit) and tells the caller to poll meta.poll rather than expecting an immediate number. It does not spell out when not to use it or what to do if a precondition fails.

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