Skip to main content
Glama

Search shared mailbox

search_shared_mailbox
Read-onlyIdempotent

Searches the firm's configured shared mailbox with Gmail syntax. Returns mailbox messages. The address comes from firm configuration. Read-only. Sign-in required.

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_shared_mailbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGmail search syntax, e.g. "from:jane@x.com newer_than:7d" or "subject:deposition".
max_resultsNoMax messages, newest first, 1-25. Defaults to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds genuinely non-structured context: the mailbox address is not a parameter but comes from firm configuration, and sign-in is required. It does not discuss rate limits, empty-result behavior, or result truncation beyond max_results.

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?

Four short sentences, front-loaded with the action and scope before the configuration and auth notes. "Returns mailbox messages" is close to redundant given the tool name and could be trimmed, but nothing else is wasted.

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-parameter, non-destructive search with no output schema, the definition covers what it searches, where the mailbox address comes from, that results are messages, and the auth requirement. The main residual gap is guidance on following up with get_shared_mailbox_thread or get_shared_mailbox_attachment, which the description never mentions.

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 query and max_results are already fully documented, including Gmail syntax examples and the 1-25 range with a default of 10. The description's mention of Gmail syntax merely echoes the schema and adds no new meaning. Baseline 3 applies.

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?

States a specific verb and resource: "Searches the firm's configured shared mailbox with Gmail syntax" and confirms it "Returns mailbox messages." The qualifier "firm's configured shared mailbox" distinguishes it from personal-mailbox siblings like search_my_email and search_outlook_email, though it never names those alternatives explicitly.

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 the usage context (a single firm-configured mailbox, read-only, sign-in required) but gives no explicit when-to-use or when-not-to-use rule relative to search_my_email, search_outlook_email, or get_shared_mailbox_thread. The agent must infer selection from the "shared mailbox" framing alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources