Skip to main content
Glama

Search call history

search_calls
Read-onlyIdempotent

Finds phone calls on this Widely seat by date range, direction, contact name, or number. Returns one row per phone call, with direction, duration, outcome, the identity used, and whether a transcript or recording exists. started_at, ended_at, and created_at are UTC. The matching _local fields use the account timezone, or timezone when you pass an IANA name. Numbers are E.164. remote_number is the other party, including the other leg when the collapsed leg shows this seat's own number on both sides. remote_name is the saved contact for that number when one contact matches and the saved name is not the number. When you tell the user about a call, say remote_name. Say remote_number only when remote_name is empty.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_calls"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLook back this many days (default 30).
lineNo
limitNoMax rows to return.
queryNoWords from a stored transcript. Pro.
sinceNoISO 8601 start (inclusive).
untilNoISO 8601 end (exclusive).
numberNoPhone number or trailing digits.
contactNoSaved contact name to match.
timezoneNoIANA timezone for the local-time fields. Defaults to the account timezone.
directionNo
missed_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / timezone
      Added value: +{
      +  "description": "IANA timezone for the local-time fields. Defaults to the account timezone.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description goes well beyond them: it discloses the row shape, UTC vs. _local time semantics, E.164 number format, the collapsed-leg quirk where this seat's number appears on both sides, and the remote_name/remote_number presentation rule. It stops short of describing pagination or what limit does to the result set.

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?

Purpose is front-loaded in the first clause, and the following sentences each carry distinct payload (return shape, timezone, number format, contact-vs-number naming). The closing presentation guidance is slightly beyond pure tool selection but is short and actionable, so little is wasted.

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 no output schema, the description does the work of describing the returned row (direction, duration, outcome, identity, transcript/recording presence) and the timezone field semantics. The main gap is result-set behavior — ordering, paging, or what happens when limit is hit — which an agent calling an 11-param search would want.

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 73%, and the description adds real meaning on top: timezone drives the _local fields, numbers are E.164 (relevant to the `number` filter), and the started_at/ended_at/created_at columns are UTC. It does not clarify days, line, limit, direction, missed_only, or the odd 'Pro' note on `query`, so coverage of the remaining params is still thin.

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?

Opens with a specific verb+resource ('Finds phone calls on this Widely seat') and enumerates the filter axes (date range, direction, contact name, number), so the agent knows exactly what this retrieves. It does not name the sibling that handles the singular case (get_call) or non-call search (search_messages), so sibling differentiation is left to inference.

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?

The filter list implies when the tool applies, but there is no explicit when-to-use/when-not statement and no pointer to get_call for a single call or to search_messages for other channels. An agent must infer the routing decision from the sibling names 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.