Skip to main content
Glama
iMessage MCP

iMessage MCP

by 4ndylg

search_messages

Search your local Messages database to find texts by message body, subject, or contact. Returns matching results read-only, without sending or changing any data.

Instructions

搜索本机 Messages 数据库中的短信正文、主题和联系人。只读,不会发送或修改任何信息。

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": {
      "query": "<query>"
    },
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo最多返回多少条搜索结果。
queryYes

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?

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses that the tool is read-only and will never send or modify anything, which is real safety context for a tool touching a local message store. It omits other relevant behavior such as required OS permissions, result ordering, or whether the search spans all chats and attachments.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences: the first states what is searched and where, the second states the safety constraint. Nothing is redundant and the core purpose is front-loaded.

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?

For a two-parameter search tool with no annotations and no output schema, the description covers purpose and safety but leaves gaps around result format, ordering, and the semantics of the required query parameter. It is adequate to call the tool but not fully self-sufficient.

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?

Only the limit parameter is documented in the schema (50% coverage), and the description partially compensates by naming the fields query matches against (bodies, subjects, contacts). It still does not explain matching semantics (substring, exact, fuzzy) or default result ordering, so the undocumented query parameter remains underspecified.

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?

The description gives a specific verb and resource: search the local Messages database, and it enumerates what is matched (message bodies, subjects, contacts). It does not explicitly contrast itself with siblings like get_messages or get_messages_by_date, so an agent must infer that this is the free-text search path rather than a retrieval-by-id or by-date path.

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 implied by the word 'search' and by the read-only statement, which tells the agent this is a safe lookup operation. However, there is no explicit guidance on when to choose this over get_messages or get_messages_by_date, nor any stated prerequisites, so the agent has to rely on inference.

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