Skip to main content
Glama
pakistan-mcp

pakistan-mcp

by mubasher1111

Check a Pakistani mobile number

validate_phone
Read-onlyIdempotent

Checks a Pakistani mobile number in common formats and returns E.164, local, and WhatsApp versions plus its original network prefix (numbers may be ported).

Instructions

Checks a Pakistani mobile number in any common format (0300..., +92..., 0092...) and returns it in international (E.164), local and WhatsApp formats, plus the network its prefix was originally given to (numbers can be ported to another network).

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

Input Schema

NameRequiredDescriptionDefault
phoneYesMobile number, e.g. 0300 1234567

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this as a safe, idempotent, closed-world read, so the description's job is lighter. It still adds genuine context the annotations do not: accepted input formats, the specific output formats returned, and the important caveat that the network reflects the prefix's original assignment rather than the current carrier (porting). It omits error/failure behavior for invalid numbers.

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?

One dense sentence with the purpose front-loaded and no filler; the output description and the porting caveat both carry real information for the caller.

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, the description correctly spends its words describing return values and formats, and it covers input tolerance well. The remaining gap is error behavior — it does not say what is returned or raised for an invalid or non-Pakistani number.

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% and the single parameter is already documented with an example, so the baseline would be 3. The description earns above baseline by enumerating the accepted format families (0300..., +92..., 0092...), which meaningfully expands on the schema's one example.

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 (checks/validates), a specific resource (Pakistani mobile number), and the output shape (E.164, local, WhatsApp formats plus original network). This is clearly distinguishable from sibling validators such as validate_cnic or validate_iban because the resource and return values are 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 implied by the verb 'checks' and by the note that any common format is accepted, which tells the agent what input is valid. However, there is no explicit when-to-use guidance, no statement of what to do when validation fails, and no routing to siblings — though those siblings cover obviously different resources.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.