Skip to main content
Glama

Call log lines

call_log_lines
Read-onlyIdempotent

The flask and ESL worker log lines that mention this call (its call id, leg uuids and SIP Call-IDs), merged in time order, read from Docker logs on the production servers. Logs are kept only about 4 hours (flask) to a day (ESL) and are lost when a container is recreated. Customer service and super admin only. Credentials are removed and numbers are masked to the last four digits.

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": {
      "call_id": "<call_id>"
    },
    "name": "call_log_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoMinimum level. Lines with no level are dropped when this is set.
sourceNoWhich process logs to read (default all).
call_idYesThe call's id (CDR call_id).
pad_secondsNoSeconds added before the call start and after its end (default 30, max 600).
consumer_user_idNoAct on this seat (own seat, account owner or admin, or staff). Same checks as the site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing data provenance (Docker logs on production servers), sharp retention limits (about 4 hours flask, one day ESL, lost on container recreation), and PII handling (credentials removed, numbers masked to last four digits). The only thing missing for a top score is whether results are paginated or truncated.

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?

Three dense sentences, front-loaded with what is returned and followed by the caveats that matter most (retention, access, masking). Slightly wordy with the parenthetical id list, but nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers access control, retention, and privacy, which are the critical risks for an agent calling this. It does not describe the shape or volume of what comes back, and with no output schema there is nothing else to fill that gap.

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?

Schema description coverage is 100%, including enum explanations and defaults, so the schema carries parameter meaning. The description adds no parameter-level detail of its own, which is the baseline when the schema is already complete.

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 concretely what is returned: flask and ESL worker log lines mentioning the call (call id, leg uuids, SIP Call-IDs), merged in time order. That is specific enough to separate it from get_call or get_call_task, though no sibling is named as an alternative.

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?

Implied use is diagnosing a single call by pulling its log lines, and the audience is constrained ('Customer service and super admin only'). However, there is no explicit when-to-use guidance nor any pointer to a different tool when logs are gone (e.g. older calls, or aggregate debugging).

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.