Skip to main content
Glama

List Carrier Routes

listCarrierRoutes
Read-onlyIdempotent

List the routes on one SIP trunk, by integrationId (from listCarrierIntegrations), sorted by name: routeId, name, techPrefix, custom headers, enabled and dialable. A test config uses a routeId as its carrierRouteId. Use when: the user asks which routes a trunk has or whether one can be dialled. Read-only. Needs testing:read. Returns 404 if the trunk is not in your workspace.

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": {
      "integrationId": "<integrationId>"
    },
    "name": "listCarrierRoutes"
  }
}

Input Schema

NameRequiredDescriptionDefault
integrationIdYes

Output Schema

NameRequiredDescriptionDefault
routesYesSorted by name. Empty for an integration with no routes yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds non-obvious context beyond that: it requires the testing:read scope and returns 404 when the trunk is outside the caller's workspace. It does not mention sorting behavior beyond 'by name' or any pagination, but the essential operational facts are present.

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?

Front-loaded with the action and scope, followed by provenance, usage condition, safety and error behavior — a sensible ordering with little wasted text. The single dense block is slightly run-on, with the route-field enumeration and the carrierRouteId note competing for the same sentence space.

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 an output schema present, the definition does not need to explain return values, yet it still summarizes them. Between the usage condition, required scope, identifier provenance and 404 behavior, an agent has what it needs to call this correctly against a single-parameter read tool; only pagination/ordering edge cases are unaddressed.

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 0% and the single parameter is undocumented in the schema, so the description must carry the meaning. It does: integrationId is the trunk identifier and is obtained from listCarrierIntegrations, which tells the agent where to source the value rather than just its name.

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 ('List the routes on one SIP trunk'), names the identifier that scopes it, and distinguishes itself from the sibling that produces that identifier (listCarrierIntegrations). It even enumerates the returned fields, so an agent knows exactly what it is getting.

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?

Provides an explicit 'Use when:' condition — the user asks which routes a trunk has or whether one can be dialled — which is clear invocation context. It also explains the relationship to test configs via carrierRouteId. It lacks an explicit 'when not / use X instead' exclusion, keeping it just below a 5.

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.