Skip to main content
Glama
Mailbuttons MCP Server

Mailbuttons MCP Server

Official
by mailbuttons

Extract a verification code

mailbuttons_extract_code
Read-onlyIdempotent

Extract a 4–8 digit one-time or verification code from recent messages in a scoped inbox. Reads only allowlisted senders and returns the code or not_found.

Instructions

Extract a one-time / verification code (a 4–8 digit number) from recent mail in a scoped inbox. GOVERNED: codes are only ever read from senders ALLOWLISTED in the mailbox policy — mail from any other sender is ignored, never scanned. Returns {status:"found", code, from, message_id} or {status:"not_found"}. Read-only; requires the read capability.

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": {
      "inbox_id": "<inbox_id>"
    },
    "name": "mailbuttons_extract_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoOptional sender filter (the expected code sender).
inbox_idYesInbox (mailbox) id. Must be in scope for the token.
max_age_minutesNoIgnore messages older than this many minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the governed allowlist policy, that non-allowlisted mail is never scanned, the required `read` capability, and the exact return shapes for found and not_found. This is consistent with readOnlyHint/idempotentHint and discloses the auth and privacy behavior an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose, then the governance constraint, then the return contract. No filler; the uppercase GOVERNED marker usefully flags the constraint.

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?

Covers the essentials including return values despite having no output schema. It does not address edge cases such as multiple candidate codes or how ambiguity is resolved, which would be helpful for a code-extraction tool, but nothing critical to invoking it correctly is missing.

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 coverage is 100%, so the schema already documents inbox_id, from, and max_age_minutes. The description implicitly ties 'recent mail' to the age filter but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Extract a one-time / verification code') plus the qualifying shape ('a 4–8 digit number') and scope ('recent mail in a scoped inbox'). An agent can immediately distinguish this from general reads like mailbuttons_get_message.

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?

Clear about the conditions under which it works: only senders allowlisted in the mailbox policy, other mail ignored. It does not explicitly route to an alternative (e.g., use get_message to read a full message body when no code is found), so it falls short of naming when-not-to-use options.

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