Skip to main content
Glama

Cooper Email

Inbox security check

cooper_security_check
Read-onlyIdempotent

Use this before an agent inbox sends mail. Read-only; requires auth and inbox_read. Input: inbox_id (optional; inbox id, username, or email). Omit inbox_id when the key is limited to one inbox and Cooper grades that inbox. An account-wide key must pass inbox_id. Another inbox is HTTP 404 inbox_not_found. A missing key is HTTP 401. Returns {inbox_id, address, checked_at, summary:{pass, warn, fail, info, total}, checks:[{id, title, status, detail, fix?}]}. status is pass, warn, fail, or info. info means Cooper does not store that control. The ten checks are key scope, inbound screening, allowed senders, send limits, webhook signing, human approval, send caps and idempotency, domain reputation, tenant isolation, and the event log. The result lists key id and prefix and webhook ids. It does not return key material or a webhook signing value.

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

Input Schema

NameRequiredDescriptionDefault
inbox_idNoInbox id (inb_…), username, or email. Omit it when this key is limited to one inbox. Another inbox is 404 inbox_not_found.

Output Schema

NameRequiredDescriptionDefault
checksNoThe ten checks, in a fixed order. status is pass, warn, fail, or info.
addressNoEmail address of that inbox.
summaryNoHow many checks are pass, warn, fail, and info. total is 10.
inbox_idNoInbox that was graded.
checked_atNoISO-8601 time of this check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations: declares the required auth scope (inbox_read), the 401/404 failure semantics, the meaning of each status value including info (control not stored), and the deliberate exclusion of key material and webhook signing values from the response. Annotations already cover read-only/idempotent/closed-world, so this added disclosure earns high credit.

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?

Front-loaded with the trigger and the read-only/auth facts, and nearly every sentence carries operational detail. However, the middle section is a dense run-on covering return shape, status values, the ten check names, and exclusions, which could be split or trimmed given an output schema already exists.

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?

Complete for the complexity: auth requirements, key-scope rules, error codes, status semantics, the audited controls, and explicit statements about what is not returned. Even beyond the existing output schema, an agent has everything needed to call it and interpret failures.

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 100% and the schema text already explains the omit-when-single-inbox rule and the 404 case, so much of the description repeats it. It does add the new constraint that an account-wide key must pass inbox_id, which is genuine meaning beyond the schema.

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 action and resource: a read-only security check that grades an agent inbox before it sends mail, and enumerates the ten controls it audits. An agent can tell it is not cooper_get_inbox (settings retrieval) nor cooper_update_inbox, though the description never names those siblings explicitly.

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?

"Use this before an agent inbox sends mail" gives a clear triggering condition, and the description explains the key-scope rule for when inbox_id may be omitted. It stops short of exclusions or naming an alternative tool for adjacent needs, so no explicit when-not guidance.

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.