Skip to main content
Glama

Grant mailbox access

grant_mailbox_access

Add one of your mailboxes (mailbox_id from list_mailboxes) to this app's own mail access, with read and/or draft, without reconnecting the app: the mailbox_* tools reach it at once. Only mailboxes you own and that are active; at most what this app's access already allows, and never sending without approval (a person grants that in the dashboard). This app must already have mail access (consented once). Other apps and agent keys are not touched. Audited.

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": {
      "mailbox_id": "<mailbox_id>"
    },
    "name": "grant_mailbox_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopesNoread and/or draft
mailbox_idYesMailbox id from list_mailboxes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only tell the agent this is a non-readOnly, non-destructive, non-open-world write. The description goes well beyond: the grant is additive and takes effect immediately for mailbox_* tools without reconnecting, sending is never granted without explicit human approval in the dashboard, and other apps and agent keys are unaffected. Audit logging is also disclosed.

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?

The verb, resource and immediate effect are front-loaded, and every following clause adds a real constraint (ownership, active status, consent prerequisite, approval for sending, audit). It is dense with semicolon-separated fragments, which slightly reduces readability, but there is no filler.

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

Completeness5/5

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

For a 2-parameter mutation tool with no output schema, the description covers the prerequisites, the effect on downstream mailbox_* tools, the scope ceiling, the exclusion of other apps/keys, and auditability. An agent has everything needed to decide whether to call it and what to expect.

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% and both parameters are documented there, including the read/draft enum and the mailbox_id provenance. The description reinforces that mailbox_id comes from list_mailboxes and that scopes are 'read and/or draft', but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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?

Specific verb+resource: it adds a named mailbox to 'this app's own mail access' with read/draft scopes, and states the immediate effect on the mailbox_* tool family. It is clearly distinguishable from siblings like revoke_mailbox_access (inverse), list_mailboxes (source of the id) and create_mailbox_agent_key (explicitly excluded).

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

Usage Guidelines4/5

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

Prerequisites and boundaries are stated: only mailboxes you own and that are active, only up to what the app's existing access allows, and the app must already have consented mail access. It also points to list_mailboxes for obtaining mailbox_id. However, it never explicitly names revoke_mailbox_access as the way to undo this or states when not to use it in favor of that sibling.

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.