Skip to main content
Glama

doctorSIM

lookup_carrier

Read-only

Identify the mobile carrier (operator) and country from a phone number in E.164 format (e.g. +522221231231). ALWAYS call this FIRST when the user provides a phone number for a top-up. Returns id_operator and id_country for the next steps. If lookup fails, ask the user which carrier/network the number uses.

Input Schema

NameRequiredDescriptionDefault
langNo
phoneYesRecipient phone in E.164 format, including country code (e.g. +522221231231)

Output Schema

NameRequiredDescriptionDefault
imgNo
phoneNo
id_countryNoIdentifier (integer or numeric string).
topup_typeNo
id_operatorNoIdentifier (integer or numeric string).
country_nameNo
operator_nameNo
iso_short_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context beyond annotations: it returns id_operator and id_country for downstream steps and tells the agent to ask the user on failure.

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?

The description is four short sentences with no wasted text. The primary instruction to call it first for phone-number top-ups is front-loaded.

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?

An output schema exists, so the description does not need to fully explain return values, though it helpfully names id_operator and id_country. The only meaningful gap is that lang is not explained anywhere, despite being an enum parameter.

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?

The required phone parameter is documented in the schema with E.164 format and an example, and the description reinforces that format. However, the lang parameter is an enum with no description in the schema or the tool description, leaving half the parameters undocumented.

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 uses a specific verb and resource: identify the mobile carrier and country from a phone number. It also distinguishes this lookup from sibling listing tools like get_operators and get_countries by tying it directly to a phone-number input and top-up flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit sequencing guidance: ALWAYS call this FIRST when the user provides a phone number for a top-up. It also specifies a fallback action if lookup fails, asking the user which carrier/network the number uses.

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