Skip to main content
Glama

search_email

Search a configured email account using a query and account ID to find matching messages, with an optional result limit.

Instructions

Search a configured email account; local services do not need a separate grant.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
agent_idNo
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.4/5.0
Behavior2/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 discloses one useful auth fact (local services need no separate grant), but says nothing about read-only semantics, whether results are full messages or summaries, result caps, or pagination behavior.

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

Conciseness3/5

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

It is short and front-loaded, which is good, but the second clause is cryptic and reads like an internal auth note whose relevance to the caller is unclear. Every sentence should earn its place, and this one is ambiguous rather than efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters, no output schema, and no annotations, the definition needs to do much more work. It leaves query syntax, result shape, and agent scoping unexplained, so an agent would have to guess at invocation time.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters. The description only loosely implies account_id ("configured email account") and query ("search"); limit and agent_id are entirely undocumented in both schema and description, including what agent_id scopes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb and resource ("Search a configured email account"), so the basic operation is identifiable. However, it does not distinguish this from sibling tools like search_messages or get_email_message, and it does not say what is being searched (messages, attachments, contacts).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus search_messages, get_message, or list_conversations. The only conditional statement is an auth note ("local services do not need a separate grant"), which does not help select between tools.

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