Skip to main content
Glama

List DIDs

list_dids
Read-onlyIdempotent

List the authenticated customer's DIDs, optionally filtered by number (exact or number_contains), description_contains, country, DID Group, group features (voice, voice_out, t38, sms, sms_out, a2p, p2p, emergency, cnam_out — ALL listed must be supported), routing (trunk_id / sms_trunk_id, or has_trunk / has_sms_trunk false for the numbers routed NOWHERE), capacity (shared_capacity_group_id, capacity_pool_id, has_dedicated_channels) and status (terminated, blocked, awaiting_registration, is_configured — the get_did flag: routed AND with channels). Results are paginated. Returns each DID id, phone number, country ISO code, DID Group area, included channels, status flags, billing_cycles_count (renewal), description, creation time and expiration date (expires_at), plus pagination meta.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1).
numberNoExact full DID phone number match.
blockedNoFilter by routing-blocked status.
featuresNoCapabilities the DID Group must support — every listed feature must be present (AND), like the panel Features filter.
trunk_idNoVoice IN Trunk UUID (from list_trunks) — only the DIDs routed to that trunk.
has_trunkNofalse = only voice DIDs with NO trunk (calls go nowhere); true = only routed ones.
page_sizeNoResults per page (default 50, max 1000).
terminatedNoFilter by terminated status.
country_isoNoOptional country filter by ISO 3166-1 alpha-2 code (e.g. US, GB), case-insensitive. Same value returned as `country_iso` on each DID.
did_group_idNoOptional DID Group UUID filter.
sms_trunk_idNoSMS trunk UUID (from list_sms_trunks) — only the DIDs whose incoming SMS route there.
has_sms_trunkNofalse = only SMS-capable DIDs with NO SMS trunk; true = only routed ones.
is_configuredNoThe get_did flag: true = ready to carry traffic, false = missing routing or capacity.
number_containsNoPartial phone number match (substring of the full number).
capacity_pool_idNoCapacity pool UUID (from list_capacity_pools) — only the DIDs drawing on that pool.
description_containsNoPartial match on the DID description (substring, case-insensitive).
awaiting_registrationNoFilter by awaiting-registration status.
has_dedicated_channelsNotrue = only DIDs with dedicated channels of their own; false = only those without.
shared_capacity_group_idNoShared capacity group UUID (from list_capacity_groups) — only its member DIDs.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds real value on top: it declares pagination, enumerates the returned fields, and clarifies the multi-condition semantics of the features filter ('ALL listed must be supported').

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?

Single front-loaded paragraph with the core action first and filters grouped by theme (routing, capacity, status). It is long but every clause maps to a real parameter; only the dense parenthetical listing hurts readability slightly.

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 compensates by enumerating returned fields (id, number, country_iso, channels, status flags, billing_cycles_count, description, expires_at) and pagination meta. Combined with 19 fully documented params, an agent has everything needed to call it correctly.

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%, so the schema already documents all 19 parameters, setting a baseline of 3. The description adds meaning beyond it by spelling out AND-semantics for features and the routing/capacity interpretation of flags, though it mostly parallels the schema text.

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?

Opens with a specific verb+resource ('List the authenticated customer's DIDs') and immediately scopes it with the filter dimensions. It is trivially distinguishable from get_did, delete_did, and update_did without opening any 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?

The description explains what each filter accomplishes (e.g. has_trunk/has_sms_trunk false surfaces numbers 'routed NOWHERE', is_configured means 'routed AND with channels'), which is effectively usage guidance. It stops short of naming alternatives like get_did for a singleton lookup or the assign_* tools for non-list operations.

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