Skip to main content
Glama

get_cdrs

Read-only

Fetch call detail records (CDRs) from VoIPstudio — duration, cost, disposition etc. Supports filtering by any field: {"call_id":"number","duration":"number","id":"number","live_id":"number","is_root":"boolean","root_live_id":"number","parent_live_id":"number","user_id":"number","sip_endpoint_id":"number","server_id":"number","type":"string","calldate":"string","clid":"string","src_id":"string","src_name":"string","src":"string","src_ua":"string","src_codec":"string","dst_id":"string","dst":"string","dst_name":"string","dst_ua":"string","dst_codec":"string","billsec":"number","disposition":"string","destination":"string","context":"string","rate":"number","charge":"number","t_cause":"string","info":"string","labels":"array","metadata":"object","nb_notes":"number","nb_children":"number"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
sortNoSorts results by given property and direction
limitNoNumber of CDRs to fetch
filtersNoOptional filters. Examples: - Date range: [{property:"some_date_propery",operator:"gte",value:"2026-01-01 00:00:00"},{property:"some_date_propery",operator:"lte",value:"2026-12-31 23:59:59"}] - By string: [{property:"some_string_property",operator:"eq",value:"EXPECTED VALUE"}] - Greather than: [{property:"some_number_property",operator:"gt",value:10}] As a 'property' you can use any property from output schema.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
totalYes

TDQS

A4.2/5.0
Behavior4/5

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

The description clearly indicates this is a read-only operation (consistent with readOnlyHint=true) and details the filtering capability, including the list of all filterable fields. It does not disclose any destructive behavior, which is appropriate.

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?

The purpose is stated concisely at the beginning. The description embeds a large JSON object listing all filterable fields, which is structured but adds length. It is front-loaded with the main activity, earning a high score for clarity despite verbosity.

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?

Given the read-only annotation, the presence of an output schema, and comprehensive parameter schema description, the tool description fully covers what the agent needs. No return value explanation is required, and pagination/filtering details are present.

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?

The schema has 100% coverage with descriptions for page, sort, limit, and filters. The description adds a comprehensive JSON of field names and types for filtering, providing significant additional context beyond the schema, though the lengthy list may overwhelm.

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 clearly states the tool fetches call detail records from VoIPstudio, listing specific attributes (duration, cost, disposition) and that it supports filtering. This distinguishes it from sibling tools like get_live_calls or get_history_for_number, which deal with other aspects.

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?

While the description mentions filtering and lists fields, it does not provide explicit guidance on when to use this tool versus its alternatives. It lacks 'when to use' or 'when not to use' contexts, leaving the agent to infer usage from the tool name alone.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct aspect of VoIP data: CDRs, call history per number, live calls, recording audio, recordings with transcripts, and voicemails. There is no overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent 'get_<resource>' pattern in snake_case, making them predictable and easy to remember.

Tool Count5/5

With 6 tools covering essential read-only operations for a VoIP system (CDRs, live calls, recordings, voicemails, history), the count is well-scoped and each tool serves a clear purpose.

Completeness4/5

The server covers the main data types for a read-only VoIP API, but lacks a dedicated tool to retrieve a single CDR by ID (though filtering can approximate that). Minor gap but overall sufficient.

Resources