Skip to main content
Glama

Validate phone number

check_phone_number
Read-only

Validate and normalise a phone number: valid or not, country, type (mobile, fixed line, toll-free …), E.164 and international format. Offline; the number is not called. Live tool – free during the pilot, rate-limited.

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": {
      "phone_number": "<phone_number>"
    },
    "name": "check_phone_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
phone_numberYesPhone number, ideally with country code (+49 …).
default_countryNoISO country code used when the number has no country code, e.g. DE.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it discloses that no call is placed to the number, that the tool is live, that it is free during the pilot, and that it is rate-limited — the operational facts an agent needs to plan retries and cost. None of this is recoverable from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Two tight sentences, front-loaded with the verb and enumerated outputs, then the differentiating offline note, then operational caveats. No filler or repetition.

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 carries the return-value burden itself and does so by listing the fields returned. Combined with the offline/no-call disclosure and rate-limit note, an agent has everything needed to call and interpret this two-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 both phone_number and default_country are already documented with examples (+49, DE). The description adds output-shape information but no additional meaning about parameter syntax or interaction, so the baseline of 3 applies.

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 and resource ('Validate and normalise a phone number') and enumerates exactly what is returned: validity, country, line type, E.164 and international format. The clause 'Offline; the number is not called' distinguishes it from the live-request siblings such as request_phone_check without needing the schema.

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 clear selecting context: it is an offline lookup rather than a live call, which tells an agent to use it for format/validity questions and not as a substitute for request_phone_check. It stops short of naming that alternative or stating explicit exclusions, so it is strong context rather than full routing guidance.

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