Skip to main content
Glama

MailmanAPI

Approve from prepaid balance

approve_mail
DestructiveIdempotent

Spend prepaid funds: Spend from prepaid balance only when the creating key's owner enabled Send without human approval and set a monthly cap. Pass id and the exact approval_hash from send_mail. Otherwise share approval_url.

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": {
      "approval_hash": "<approval_hash>",
      "id": "<id>"
    },
    "name": "approve_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
approval_hashYes

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
fromYes
modeYes
pagesYes
proofYes
quoteYes
routeYes
stateYes
objectYes
statusYes
optionsYes
paymentYes
productYes
serviceYes
approvalYes
mail_urlYes
timelineYes
next_stepYes
share_urlYes
cancelableYes
created_atYes
record_urlYes
reprint_ofNo
updated_atYes
drafted_viaYes
preview_urlYes
receipt_urlYes
to_as_givenYes
total_centsYes
approval_urlYes
cancel_untilYes
approval_hashYes
address_statusYes
cancel_summaryYes
payment_noticeNo
document_sha256Yes
payment_refusedNo
replacement_urlNo
tracking_numberYes
possible_duplicateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and openWorldHint=true, and the description adds genuinely new context: this actually consumes prepaid funds and is gated on account-level configuration. It stops short of saying what happens when the cap is exceeded or the hash mismatches, or that funds are irreversibly spent.

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 tight sentences with the spend action and the precondition front-loaded before the parameter instructions. No redundant restatement of the title or the schema.

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?

Output schema exists, so return values need not be explained, and both parameters plus the account precondition are addressed. Remaining gaps are error/limit behavior when the monthly cap is hit, which matters for a destructive, money-spending call.

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 0%, so the description must carry the load, and it does: it identifies both parameters and, critically, tells the agent that approval_hash must come from send_mail and be passed exactly. It adds no detail on the id prefix or the failure mode of a mismatched hash, which the regex pattern only partially covers.

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 verb and resource ("Spend prepaid funds: Spend from prepaid balance") and implicitly separates this path from the human-approval path handled via approval_url. The name/title pairing ('approve_mail' vs. spending money) is reconciled by the description, so an agent can identify what this does, though the framing is slightly indirect.

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

Usage Guidelines5/5

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

Gives an explicit gate: only use when the creating key's owner enabled Send without human approval and set a monthly cap. It also states the fallback when that condition fails ('Otherwise share approval_url'), so both the use-case and the non-use-case are covered.

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.

Resources