Skip to main content
Glama
pghdma

CallRail MCP

search_calls_by_number

Locate call records for any phone number by matching its last 10 digits. Accepts various input formats and offers optional account, company, and lookback window filters.

Instructions

Find calls from/to a specific phone number. Matches on the last 10 digits of the stored customer_phone_number so any format works.

Args: phone_number: Any format — will be normalized to digits-only. Must contain at least 7 digits to avoid false positives. account_id: Auto-resolves. company_id: Optional company filter. days: Lookback window (default 90).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
phone_numberYes
account_idNo
company_idNo
daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full responsibility. It discloses normalization, last-10-digit matching, auto-resolution of account_id, and a constraints (7-digit minimum). However, it does not explicitly state it is read-only, though that is implied by 'Find calls'.

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 description is a bit verbose with the Args list, but it is well-structured and front-loaded with the core behavior. Every sentence adds value, so it is acceptable despite some wordiness.

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 description covers parameter behavior well. Given that an output schema exists, it is not required to describe return values. Missing info like pagination or result ordering is not critical for this search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It does so thoroughly: phone_number normalization and length constraint, account_id auto-resolve, company_id optional filter, days default. Adds significant value beyond the bare schema.

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 finds calls from/to a specific phone number, using a specific matching mechanism (last 10 digits). This distinguishes it from siblings like list_calls (all calls) or get_call (single call by ID).

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 description does not explicitly mention when to use this tool versus alternatives like list_calls or get_call. It implies usage for phone number search but lacks contrast with siblings, which would help an agent decide between tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pghdma/callrail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server