Skip to main content
Glama

Quote phone numbers

quote_numbers
Read-onlyIdempotent

Compare available phone numbers and their prices without buying or charging.

    Returns ``offers``, ``recommended_quote_id`` and ``expires_at``.
    Each offer includes ``e164``, ``number_type``, ``capabilities``, ``quote_id``,
    ``monthly_cents``, ``setup_cents``, ``readiness``, ``requirements``,
    ``subject_types``, ``verifications``, ``locality`` and ``region``.
    Prices are USD cents. ``locality`` and ``region`` tell apart cities with the same name.
    Quotes expire after ten minutes. Expired quotes cannot authorize a purchase.
    ``recommended_quote_id`` identifies a ready offer or is null when none is ready.

    ``subject_types`` identifies eligible personal or business registrations.
    ``verifications`` contains accepted registrations, with approved entries first.
    Entries include ``id``, ``state``, ``subject_type`` and ``subject_name``.
    ``readiness="verification_required"`` means registration approval is still needed.
    Registration requirements are specific to the quote and applicant type.
    An offer with ``by_request=true`` has no assigned number and requires a manual support order.
    Such offers remain valid for registration but are unavailable for automatic purchase.
    An upstream failure returns an error.

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": {
      "country_code": "<country_code>"
    },
    "name": "quote_numbers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity name as carriers list it, such as ``Austin``. Omitted: any city.
e164NoOne exact number to quote again, such as ``+14155550123`` from an expired quote, with the same capabilities and number_type as that quote. Not combinable with area_code, city, contains or ends_with. An empty offers list means the number is no longer available.
regionNoUS state or Canadian province code from ``list_number_regions``, to tell apart cities with the same name. Omitted: any region.
containsNoDigits the number has anywhere after the country code, such as ``777``. Not combinable with ``ends_with``, or with area_code outside the US and Canada. Omitted: any digits.
area_codeNoFirst digits of the number as dialed inside the country, such as ``415``. Omitted: any digits.
ends_withNoDigits the number ends with, such as ``2026``. Not combinable with ``contains``, or with area_code outside the US and Canada. Omitted: any ending.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
number_typeNoOffer only this kind of number, for example ``toll_free`` for a number callers reach for free. Omitted: every kind.
capabilitiesNoChannels each offer must support. Omitting the filter searches for numbers that support both calls and texts.
country_codeYesISO 3166-1 alpha-2 country code, such as ``US``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / contains
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9]{2,10}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Digits the number has anywhere after the country code, such as ``777``. Not combinable with ``ends_with``, or with area_code outside the US and Canada. Omitted: any digits.",
      +  "title": "Contains"
      +}
    • addedInput schema / properties / e164
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^\\+[1-9][0-9]{1,14}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "One exact number to quote again, such as ``+14155550123`` from an expired quote, with the same capabilities and number_type as that quote. Not combinable with area_code, city, contains or ends_with. An empty offers list means the number is no longer available.",
      +  "title": "E164"
      +}
    • addedInput schema / properties / ends_with
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[0-9]{2,10}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Digits the number ends with, such as ``2026``. Not combinable with ``contains``, or with area_code outside the US and Canada. Omitted: any ending.",
      +  "title": "Ends With"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  3. Changed5 schema fields changed
    • changedInput schema / properties / capabilities / description
      Previous value: -"What every offered number must do: calls (``voice``), texts (``sms``) or both. Omitted: both."New value: +"Channels each offer must support. Omitting the filter searches for numbers that support both calls and texts."
    • addedOutput schema / $defs
      Added value: +{
      +  "OfferVerification": {
      +    "properties": {
      +      "held_cents": {
      +        "default": 0,
      +        "description": "Credit, in USD cents, set aside from your balance for this verification: setup and the first month of the offer it was started for. A purchase with this verification counts it toward the price. 0 when nothing is set aside.",
      +        "title": "Held Cents",
      +        "type": "integer"
      +      },
      +      "id": {
      +        "description": "Hail verification id. Read it with GET /v1/verifications/{verification_id}.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "state": {
      +        "description": "State of that verification, such as draft, submitted or approved.",
      +        "title": "State",
      +        "type": "string"
      +      },
      +      "subject_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Name of the person or company that verification is for, as typed in the verification form. Null when unknown.",
      +        "title": "Subject Name"
      +      },
      +      "subject_type": {
      +        "description": "Who that verification is for: 'person' (you) or 'business' (your company).",
      +        "enum": [
      +          "person",
      +          "business"
      +        ],
      +        "title": "Subject Type",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "state",
      +      "subject_type",
      +      "subject_name",
      +      "held_cents"
      +    ],
      +    "title": "OfferVerification",
      +    "type": "object"
      +  },
      +  "QuoteOffer": {
      +    "description": "One number offer as the public API shows it. It never names the\ncarrier or carries a carrier-issued id: Hail picks the carrier.",
      +    "properties": {
      +      "by_request": {
      +        "default": false,
      +        "description": "True when support orders this number by hand: it cannot be bought with POST /numbers. Ask support for it. Its quote_id still works for verification.",
      +        "title": "By Request",
      +        "type": "boolean"
      +      },
      +      "capabilities": {
      +        "description": "Voice/SMS capabilities reported by live carrier inventory; SMS registration may still be required.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Capabilities",
      +        "type": "array"
      +      },
      +      "country_code": {
      +        "description": "ISO alpha-2 country code of the number.",
      +        "title": "Country Code",
      +        "type": "string"
      +      },
      +      "currency": {
      +        "const": "USD",
      +        "default": "USD",
      +        "description": "Currency of the quoted rental and setup amounts.",
      +        "title": "Currency",
      +        "type": "string"
      +      },
      +      "e164": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Available phone number in E.164 format. Null for a by-request offer: support picks the number when it orders it.",
      +        "title": "E164"
      +      },
      +      "locality": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "City or area the carrier lists for this number, such as Phoenix or London; null when unknown.",
      +        "title": "Locality"
      +      },
      +      "monthly_cents": {
      +        "description": "Monthly number rental in USD cents, charged from organization credits.",
      +        "minimum": 1,
      +        "title": "Monthly Cents",
      +        "type": "integer"
      +      },
      +      "number_type": {
      +        "description": "Local, mobile, national, or toll-free number type.",
      +        "enum": [
      +          "local",
      +          "mobile",
      +          "toll_free",
      +          "national"
      +        ],
      +        "title": "Number Type",
      +        "type": "string"
      +      },
      +      "paperwork": {
      +        "description": "Always null for this tool. Applicant-specific paperwork is available from get_verification_requirements for the chosen offer.",
      +        "type": "null"
      +      },
      +      "quote_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Organization-bound quote identifier to pass to POST /numbers before expiry.",
      +        "title": "Quote Id"
      +      },
      +      "readiness": {
      +        "description": "Whether regulatory preflight permits purchase for this organization; rechecked at purchase.",
      +        "enum": [
      +          "ready",
      +          "verification_required"
      +        ],
      +        "title": "Readiness",
      +        "type": "string"
      +      },
      +      "region": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "State, province or region the carrier lists, such as AZ or England; null when unknown.",
      +        "title": "Region"
      +      },
      +      "regulatory_friction": {
      +        "default": "unknown",
      +        "description": "Remaining verification effort derived from live requirements: none, information/address entry, document uploads, or unknown. This does not establish legal eligibility.",
      +        "enum": [
      +          "none",
      +          "information",
      +          "documents",
      +          "unknown"
      +        ],
      +        "title": "Regulatory Friction",
      +        "type": "string"
      +      },
      +      "requirements": {
      +        "description": "Carrier regulatory requirement labels associated with this offer.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Requirements",
      +        "type": "array"
      +      },
      +      "setup_cents": {
      +        "description": "One-time setup charge in USD cents, payable with the first month.",
      +        "minimum": 0,
      +        "title": "Setup Cents",
      +        "type": "integer"
      +      },
      +      "subject_types": {
      +        "description": "Who can verify for this number: 'person' (you), 'business' (your company), or both. Empty when no verification is needed.",
      +        "items": {
      +          "enum": [
      +            "person",
      +            "business"
      +          ],
      +          "type": "string"
      +        },
      +        "title": "Subject Types",
      +        "type": "array"
      +      },
      +      "verification": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/OfferVerification"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Deprecated: read `verifications`. The verification a purchase without verification_id would use: the one approved verification in `verifications`, else the newest one there; null when there is none."
      +      },
      +      "verifications": {
      +        "description": "The verifications you can buy this offer with, approved first, then newest first: yours of a subject type in `subject_types` that are under review, and the approved ones the carrier still accepts for this offer. Once one is approved, pass its `id` as `verification_id` to POST /numbers to buy with it.",
      +        "items": {
      +          "$ref": "#/$defs/OfferVerification"
      +        },
      +        "title": "Verifications",
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "e164",
      +      "country_code",
      +      "number_type",
      +      "capabilities",
      +      "monthly_cents",
      +      "setup_cents",
      +      "currency",
      +      "readiness",
      +      "regulatory_friction",
      +      "requirements",
      +      "locality",
      +      "region",
      +      "quote_id",
      +      "subject_types",
      +      "verifications",
      +      "verification",
      +      "by_request",
      +      "paperwork"
      +    ],
      +    "title": "QuoteOffer",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "expires_at": {
      +        "description": "UTC expiry of these persisted quotes; request fresh offers afterward.",
      +        "format": "date-time",
      +        "title": "Expires At",
      +        "type": "string"
      +      },
      +      "incomplete": {
      +        "description": "True when some carriers did not answer, so the offers may not be complete. Search again later for a full comparison.",
      +        "title": "Incomplete",
      +        "type": "boolean"
      +      },
      +      "offers": {
      +        "description": "Live offers ordered by readiness, remaining verification effort, monthly price and setup price.",
      +        "items": {
      +          "$ref": "#/$defs/QuoteOffer"
      +        },
      +        "title": "Offers",
      +        "type": "array"
      +      },
      +      "recommended_quote_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Recommended ready offer, or null if none qualifies.",
      +        "title": "Recommended Quote Id"
      +      }
      +    },
      +    "required": [
      +      "offers",
      +      "recommended_quote_id",
      +      "incomplete",
      +      "expires_at"
      +    ],
      +    "title": "NumberQuotesResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"quote_numbers_toolDictOutput"
  4. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / number_type / description
      Previous value: -"Only numbers of this kind: local, mobile, national (non-geographic) or toll-free. Omitted: every kind."New value: +"Offer only this kind of number, for example ``toll_free`` for a number callers reach for free. Omitted: every kind."
  6. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, idempotentHint=true, destructiveHint=false), the description discloses material behavior: quotes expire after ten minutes, expired quotes cannot authorize a purchase, recommended_quote_id is null when no offer is ready, and by_request offers require manual support. It also states that upstream failure returns an error.

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 description is front-loaded with the core purpose and organized into short, readable paragraphs. It is somewhat verbose in enumerating every offer field even though an output schema exists, but the structure remains clear and the lifecycle caveats are worth stating.

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 ten-parameter quoting tool with an output schema and read-only annotations, the description covers the important lifecycle details: expiry, purchase authorization, readiness, verification requirements, by_request handling, and error behavior. The remaining parameter details are fully covered by the schema.

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%, and the input schema already gives detailed semantics for all ten parameters, including exclusions between e164, area_code, contains, and ends_with. The description adds almost no parameter-specific meaning beyond the schema, so the baseline of 3 is appropriate.

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 opens with a specific verb and resource: "Compare available phone numbers and their prices without buying or charging." This clearly distinguishes the tool from purchasing or charging actions, such as acquire_number, without requiring the agent to inspect other schemas.

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?

The phrase "without buying or charging" makes the pre-purchase comparison context clear, and the quote-expiry warning implies this must be used before purchase. However, it does not explicitly name a sibling tool to use for the actual purchase or state when-not to use this 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.