Skip to main content
Glama

Cooper Email

Get mailbox encryption

cooper_get_mailbox_encryption
Read-onlyIdempotent

Use this to see whether this account encrypts new message bodies and whether the owner has locked the agent out. Read-only; requires auth. Inputs: inbox_id (omit when this key is limited to one inbox; it only checks that the inbox is yours). Returns {object:"inbox_encryption", enabled, key_configured, locked, locked_at}. enabled true means new bodies and attachment bytes are sealed with a per-account key. Existing plaintext still reads. locked true means read and send return HTTP 403 account_locked until the owner unlocks. The owner turns the lock with POST /api/v1/owner/agents/{inbox}/lock. Enabling encryption is POST /api/v1/inboxes/{id}/encryption {"enabled":true}. Without COOPER_INBOX_ENCRYPTION_KEY that call is HTTP 503 encryption_unavailable. The default flag is on. This result has no message body.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cooper_get_mailbox_encryption"
  }
}

Input Schema

NameRequiredDescriptionDefault
inbox_idNoInbox id, username, or email. Omit it when this key is limited to one inbox.

Output Schema

NameRequiredDescriptionDefault
lockedNoTrue when the owner has locked the agent out of read and send.
objectNoinbox_encryption.
enabledNoTrue after this account turned encryption on.
locked_atNoISO-8601 time of the lock, or null.
key_configuredNoTrue when the operator key is set. No key material is returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: locked=true implies read and send return HTTP 403 account_locked until the owner unlocks, existing plaintext remains readable, and enabling encryption fails with HTTP 503 encryption_unavailable without COOPER_INBOX_ENCRYPTION_KEY. Those are exactly the runtime consequences an agent needs and cannot get from the annotation block.

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 critical facts (what it reports, read-only, auth required, return shape) are front-loaded, and the remaining sentences are dense with behavior. It is on the long side because it embeds REST endpoint paths and error codes, which are helpful but slightly beyond a minimal tool description.

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?

Auth requirement, omission rule, return shape, field meanings, lock consequences, and error conditions are all covered, plus a note that no message body is returned. Even though an output schema exists, nothing an agent needs to interpret or act on the result is missing.

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

Parameters4/5

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

Schema coverage is already 100% for the single inbox_id parameter, so the baseline is 3; the description earns a bump by clarifying that the parameter is an authorization check rather than a filter ('it only checks that the inbox is yours') and by repeating when omission is valid.

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 opens with a specific verb-plus-resource statement: 'see whether this account encrypts new message bodies and whether the owner has locked the agent out.' It scopes the tool to a status read, which cleanly separates it from the write-side siblings and the POST endpoints it names later.

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?

It gives clear context for when to call this (checking encryption state and lock state) and points to the enabling call (POST /api/v1/inboxes/{id}/encryption) and the lock endpoint as the actions to take instead. It stops short of explicit 'do not use this when...' exclusions or naming a sibling tool alternative, so it falls just short of a 5.

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.