Skip to main content
Glama

mechacut

validate_phone

Phone -> E.164: punctuation stripped, 00/+/national forms accepted, closed dial-code table with per-country digit ranges. Free.

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
phoneYes
default_countryNocc, e.g. "FR"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavior: punctuation stripping, accepted 00/+/national forms, validation against a closed dial-code table with per-country digit ranges, and that it is free. It stops short of saying what happens on an invalid number or how the output is returned (error vs. flag).

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?

A single dense line that front-loads the input->output mapping and then the normalization rules. Every clause (punctuation stripping, accepted forms, dial-code table, free) conveys distinct information with no filler.

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 2-parameter, no-output-schema tool, the description covers input forms, output format, validation basis, and cost. The main gap is the unmentioned default_country role and invalid-input behavior, but overall it is nearly self-sufficient.

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 50%, with only default_country documented in the schema. The description never names default_country, though "national forms accepted" weakly implies a country context is needed to interpret national numbers. That hint is thin, so it adds only marginal meaning beyond the schema.

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?

The description gives a specific input-to-output transform ("Phone -> E.164") plus the normalization it performs, so an agent can tell this is a phone-number validator/normalizer rather than a generic check. It does not explicitly contrast with siblings like validate_email or validate_country, keeping it just short of a 5.

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 arrow notation and accepted-forms list suggest 'use this to normalize a phone number to E.164.' There is no explicit when-to-use, when-not-to-use, or pointer to an alternative sibling.

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.