Skip to main content
Glama
imessage-mcp

imessage-mcp

by kashyapmanu

List handles with message counts

list_contacts_handles
Read-only

List Messages handles with contact names and message counts, ordered by activity. Filter by phone number, email, handle ID, or contact name.

Instructions

List phone numbers, emails and other Messages handles with their Contacts name (if any) and how many messages each has, most active first. Optional query matches a substring of the handle id or of a contact name.

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": "list_contacts_handles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of items to return (1-500, default 50).
queryNoSubstring of a handle id, a contact name, or a phone number's digits to filter by (e.g. '+1555', 'alice@', 'Alice', '(415) 555-1234').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds genuine value by disclosing that results are joined with Contacts names and ranked by message count descending, but it says nothing about pagination, what happens when no Contact match exists, or whether counts span the entire message history.

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?

Two compact sentences with no filler, and the field list and sort order are front-loaded where the agent will see them first. The second sentence is slightly redundant with the schema's own query documentation, but it is short enough not to be a real cost.

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?

For a two-optional-parameter read-only list tool with no output schema, the description covers the resource, the fields returned, the default ordering, and the filter semantics, which is enough to call it correctly. The only missing piece is result-set size/pagination behavior, which the limit parameter's schema partly covers.

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%, so both limit and query are already documented, including examples and maximums; that sets the baseline at 3. The description restates the query's substring behavior on handle id and contact name but omits the schema's phone-digit matching and never mentions limit, so it adds little beyond the schema.

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?

Names a specific verb and resource ("List phone numbers, emails and other Messages handles") and even enumerates the returned fields (Contacts name, message count) plus ordering ("most active first"), which is more than most list tools offer. It stops short of differentiating itself from siblings like list_chats or search_messages, so an agent must infer that this enumerates handles rather than chats or messages.

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 only implied: the sentence about "Optional query matches a substring" hints that filtering is optional and unfiltered listing is the default, but there is no explicit when-to-use guidance and no mention of when an agent should prefer search_messages or list_chats instead. The agent can infer a browsing/aggregation use case but nothing is stated.

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