Skip to main content
Glama
@omnidim-ai/mcp-server

@omnidim-ai/mcp-server

by Omnidim

purchasePhoneNumber

Destructive

Buy a phone number from the OmniDimension number shop; the monthly rental is deducted from your wallet and the number is added to your account ready to attach to an agent.

Instructions

Buy a phone number from the OmniDimension number shop.

The monthly rental comes out of your wallet. The number is added to your account, ready to attach to an agent.

(Tags: Phone numbers)

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": {
      "region": "<region>",
      "carrier": "<carrier>",
      "phone_number": "<phone_number>"
    },
    "name": "purchasePhoneNumber"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYesRegion the number belongs to.
carrierYesThe carrier to buy from: pass the `carrier` the search response named, so you buy from the inventory you searched. Required where the region has more than one carrier; omitting it there returns `409 carrier_required`.
phone_numberYesThe number to buy, as returned by the search operation.
Idempotency-KeyNoYour own unique key for this purchase, for example a fresh UUID. Strongly recommended: it is what makes a retry safe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.22.0
    • addedInput schema / properties / carrier
      Added value: +{
      +  "description": "The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nRequired where the region has more than one carrier;\nomitting it there returns `409 carrier_required`.\n",
      +  "type": "string"
      +}
    • addedInput schema / properties / phone_number
      Added value: +{
      +  "description": "The number to buy, as returned by the search operation.",
      +  "type": "string"
      +}
    • addedInput schema / properties / region
      Added value: +{
      +  "description": "Region the number belongs to.",
      +  "enum": [
      +    "IN",
      +    "US"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / requestBody
      Removed value: -{
      -  "description": "The JSON request body.",
      -  "properties": {
      -    "carrier": {
      -      "description": "The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nRequired where the region has more than one carrier;\nomitting it there returns `409 carrier_required`.\n",
      -      "type": "string"
      -    },
      -    "phone_number": {
      -      "description": "The number to buy, as returned by the search operation.",
      -      "type": "string"
      -    },
      -    "region": {
      -      "description": "Region the number belongs to.",
      -      "enum": [
      -        "IN",
      -        "US"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "region",
      -    "carrier",
      -    "phone_number"
      -  ],
      -  "type": "object"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "requestBody"
      -]New value: +[
      +  "region",
      +  "carrier",
      +  "phone_number"
      +]
  2. Changed1 schema field changedv0.14.0
    • changedInput schema / properties / requestBody / properties / carrier / description
      Previous value: -"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nAlways required, and omitting it returns\n`409 carrier_required` naming that region's carriers.\n"New value: +"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nRequired where the region has more than one carrier;\nomitting it there returns `409 carrier_required`.\n"
  3. Changed1 schema field changedv0.13.1
    • changedInput schema / properties / requestBody / properties / carrier / description
      Previous value: -"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nAlways required. Region `IN` has `carrier-1` (landline) and\n`carrier-2-new` (mobile); region `US` has `carrier-us`.\nOmitting it returns `409 carrier_required` listing them.\n"New value: +"The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nAlways required, and omitting it returns\n`409 carrier_required` naming that region's carriers.\n"
  4. Changed2 schema fields changedv0.13.0
    • addedInput schema / properties / requestBody / properties / carrier
      Added value: +{
      +  "description": "The carrier to buy from: pass the `carrier` the search\nresponse named, so you buy from the inventory you searched.\nAlways required. Region `IN` has `carrier-1` (landline) and\n`carrier-2-new` (mobile); region `US` has `carrier-us`.\nOmitting it returns `409 carrier_required` listing them.\n",
      +  "type": "string"
      +}
    • changedInput schema / properties / requestBody / required
      Previous value: -[
      -  "region",
      -  "phone_number"
      -]New value: +[
      +  "region",
      +  "carrier",
      +  "phone_number"
      +]
  5. Addedv0.10.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes beyond them by disclosing the real consequence: a recurring monthly rental drawn from the user's wallet. It also states the post-condition (number added to account, attachable to an agent), which is useful for an agent deciding whether to proceed. It does not mention whether the purchase is reversible or refundable, which keeps it below 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical facts (what it does, that it costs money, what happens afterward) are front-loaded in three short lines with no wasted prose. The trailing "(Tags: Phone numbers)" line is organizational filler that adds no invocation value.

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 financially consequential mutation with no output schema, the description covers cost, resulting state, and next step, and the schema covers carrier selection and idempotency. The main remaining gap is the absence of any return-value hint (e.g., whether the purchased number record comes back), which is minor for a 4-parameter tool.

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 description coverage is 100%, so region, carrier, phone_number and Idempotency-Key are all documented with meaningful detail in the schema (including the 409 carrier_required case). The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

"Buy a phone number from the OmniDimension number shop" pairs a specific verb (buy) with a specific resource (phone number), and the follow-on sentence clarifies the resulting state (added to your account, ready to attach to an agent). This distinguishes it in spirit from search/list/attach/release, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the reader infers this comes after a search (the schema reinforces this via "as returned by the search operation") and before attachPhoneNumber. There is no explicit when-to-use / when-not-to-use guidance or named alternative in the description itself.

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