Skip to main content
Glama

Cooper Email

Agent identity token

cooper_identity_token

Use this when a third-party service should confirm which Cooper inbox this agent controls, without an email round trip. Requires auth and message_send. Inputs: inbox_id (required unless this key is limited to one inbox; inbox id, username, or email), audience (required; an https origin or an absolute URI, at most 255 characters), ttl_seconds (optional integer, default 300, minimum 60, maximum 3600), nonce (optional string, at most 128 characters). Returns {token, token_type:"agent_identity+jwt", expires_at, issuer, jwks_uri, claims}. The token is a credential. iss is https://cooperemail.com. sub is the inbox id. email is the inbox address. cooper.owner_verified is a boolean. The token has no account id, no plan, no API key, and no owner email or name. Another inbox is HTTP 404 inbox_not_found. A suspended account is HTTP 403 account_suspended. Minting is limited to 60 per hour per inbox, then HTTP 429. When identity signing is not configured the route is HTTP 503 identity_unavailable. Same as POST /api/v1/inboxes/{id}/identity-token.

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": {
      "audience": "<audience>"
    },
    "name": "cooper_identity_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceNoOptional string copied into the token. At most 128 characters.
audienceYeshttps origin or absolute URI the token is for, at most 255 characters. The service must send the same string when it verifies.
inbox_idNoInbox id (inb_…), username, or email. Omit it when this key is limited to one inbox. Another inbox is 404 inbox_not_found.
ttl_secondsNoLifetime in seconds. Default 300. Minimum 60. Maximum 3600.

Output Schema

NameRequiredDescriptionDefault
tokenNoCompact JWT. It is a credential for the audience.
claimsNoClaims inside the token. iss, sub, email, email_verified, aud, iat, nbf, exp, jti, optional nonce, and cooper. No account id and no owner email or name.
issuerNoAlways https://cooperemail.com.
jwks_uriNoHTTPS URL of the public JSON Web Key Set.
expires_atNoISO-8601 time the token expires.
token_typeNoAlways agent_identity+jwt.

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?

Beyond the annotations it discloses rate limits (60 per hour per inbox, then HTTP 429), failure modes with status codes (404 inbox_not_found, 403 account_suspended, 503 identity_unavailable), and that the returned token is itself a credential. It also lists exactly which claims are and are not present, which is exactly the kind of privacy/behavior context annotations cannot carry. Nothing here contradicts readOnlyHint=false or destructiveHint=false.

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?

It is front-loaded with the triggering condition and prerequisites, then grouped into inputs, return shape, claims, and error/limit behavior. Dense but well ordered; the sentence enumerating what the token does not contain is slightly padded, though it does carry a privacy guarantee an agent may care about.

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 credential-minting tool with four parameters, prerequisites, quota, error taxonomy, and claim semantics are all covered, which is more than enough for correct invocation. An output schema exists, yet the description still sketches the return shape, leaving no material gap.

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%, so the schema already carries the per-parameter text; the description adds real meaning on top by reconciling that inbox_id is required unless the key is limited to one inbox (the schema's required list only names audience) and by noting the 404 case for another inbox. The remaining added value is mostly restatement of defaults and bounds, hence a 4 rather than 5.

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 opening sentence states a specific action (mint a credential that lets a third-party service confirm which Cooper inbox this agent controls) and frames the alternative it replaces (an email round trip). It closes by mapping to the concrete REST route POST /api/v1/inboxes/{id}/identity-token, so there is no ambiguity about what the tool produces.

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 a clear triggering condition ("when a third-party service should confirm which Cooper inbox this agent controls") plus prerequisites (requires auth and message_send). It does not name any sibling alternative or state when not to use it, which keeps it 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.