Skip to main content
Glama

AgentStall: Africa and India data

South African phone number formatting and validation (+27)

za_normalize_phone
Read-onlyIdempotent

South African phone number formatting and classification: converts an SA number in any common format to international +27 (E.164) and local formats, and says whether it is mobile, landline (with area for major cities), toll-free, VoIP or premium-rate. Useful for cleaning contact lists, SMS and WhatsApp messaging, and form validation. Free here (20 calls per day).

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": {
      "number": "<number>"
    },
    "name": "za_normalize_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberYesPhone number in any common format, e.g. 082 123 4567 or +27 11 555 1234

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world behavior, and the description adds genuinely new context: a free-tier limit of 20 calls per day and the categories returned by the classifier. It does not say how invalid or ambiguous numbers are reported (error vs. flagged result), which is the main remaining behavioral gap for a validation tool.

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?

One front-loaded sentence carries purpose, formats and classification, followed by a short use-case clause and the rate limit. Dense but every element is informative; only the parenthetical '(with area for major cities)' is slightly cramped.

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 must convey return values and it does: international and local formats plus a type classification. For a one-parameter read-only lookup this is close to complete, with the only notable omission being error/edge-case behavior for invalid numbers.

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 coverage is 100% and the single parameter is documented with worked examples, so the schema does the heavy lifting. The description's phrase 'in any common format' restates rather than extends that, so the baseline 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: converts an SA phone number to +27/E.164 and local formats, and classifies it as mobile, landline, toll-free, VoIP or premium-rate. This clearly separates it from sibling validators such as za_validate_id_number or za_validate_tax_number, which handle different identifiers.

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 concrete usage contexts (cleaning contact lists, SMS and WhatsApp messaging, form validation), which tells an agent when the tool fits. It stops short of explicit exclusions or naming an alternative tool for cases like non-SA numbers, so no when-not guidance is present.

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