Skip to main content
Glama
carterlasalle

mac-messages-mcp

tool_fuzzy_search_messages

Search macOS Messages with fuzzy matching to find relevant conversations from recent hours using adjustable similarity thresholds.

Instructions

Fuzzy search for messages containing the search_term within the last N hours.
Returns messages that match the search term with a similarity score.

Args:
    search_term: The text to search for in messages.
    hours: How many hours back to search (default 24). Must be positive.
    threshold: Similarity threshold for matching (0.0 to 1.0, default 0.6). Lower is more lenient.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
search_termYes
hoursNo
thresholdNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool returns messages with similarity scores, which is useful, but lacks critical details like whether this is a read-only operation, potential rate limits, authentication requirements, pagination behavior, or what happens if no matches are found. The description provides basic functionality but misses important operational context.

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?

The description is efficiently structured with a clear purpose statement followed by a parameter breakdown. Every sentence adds value: the first defines the tool's function, and the parameter explanations provide necessary context without redundancy. It's appropriately sized for a 3-parameter tool.

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?

Given the tool's moderate complexity (fuzzy search with scoring), no annotations, and no output schema, the description is partially complete. It covers parameters well but lacks behavioral details (e.g., read-only status, error handling) and output format clarification (e.g., structure of returned messages with scores). For a search tool with no structured output documentation, this leaves gaps.

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?

The description adds significant value beyond the input schema, which has 0% description coverage. It explains the purpose of each parameter: search_term ('text to search for in messages'), hours ('how many hours back to search'), and threshold ('similarity threshold for matching') with practical guidance like 'Lower is more lenient' and default values. This fully compensates for the schema's lack of descriptions.

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 specific action ('fuzzy search for messages'), resource ('messages'), and scope ('within the last N hours'). It distinguishes from siblings like tool_get_recent_messages (which likely retrieves without search) and tool_get_chats (which focuses on chat threads rather than message content).

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 implies usage through the time-bound search context ('within the last N hours') but doesn't explicitly state when to use this tool versus alternatives like tool_find_contact (for contacts) or tool_get_recent_messages (for unfiltered recent messages). No exclusions or prerequisites are mentioned.

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/carterlasalle/mac_messages_mcp'

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