Skip to main content
Glama

get_port_codec

Retrieves codec configuration for an FXS port, including vocoder priority, DTMF, RTP, jitter buffer, SRTP, and fax settings.

Instructions

Get codec settings for a port: vocoder priority, DTMF, RTP, jitter buffer, SRTP, fax.

Args: port: FXS port number (1 or 2).

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": {
      "port": "<port>"
    },
    "name": "get_port_codec"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden; 'Get' implies a non-mutating read, and the field enumeration conveys the scope of data returned. It does not state what happens for an out-of-range or unconfigured port, or whether any permission/state conditions apply, leaving real gaps for an unannotated tool.

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?

One front-loaded sentence covering purpose and returned settings, followed by a single-parameter doc. No filler and nothing buried.

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?

The tool is simple (one parameter, read-only) and an output schema exists, so return values need not be described. The port domain is documented, though edge-case behavior for invalid ports is not mentioned.

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% (a bare integer with no description), so the description does the work: it identifies the parameter as an FXS port number and constrains valid values to 1 or 2. That is meaningful semantics the schema does not provide.

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?

States a specific verb and resource ('Get codec settings for a port') and enumerates the exact settings returned (vocoder priority, DTMF, RTP, jitter buffer, SRTP, fax), which distinguishes it from sibling readers like get_port_sip or get_port_call_features. It stops short of naming a sibling outright, so it is clear but not maximally differentiated.

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 implied: call this to read the codec configuration of a specific FXS port. There is no explicit when-to-use / when-not-to-use guidance and no mention of prerequisites such as the port being registered or the device being online.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.