Skip to main content
Glama

mail_browse

Read-only

Browse Nextcloud Mail accounts, mailboxes, and messages; filter messages by sender, subject, tags, or date and page through results.

Instructions

List the mail accounts of this user, the mailboxes of one, or the messages of one.

Envelopes newest first; the full text of one is a fetch("mail:") away. Percent-encode a filter value with a space or colon (subject:Rechnung%20Mai). truncated: page cut; preview_truncated: preview cut.

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": "mail_browse"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoWhat to list; mailboxes needs account_id, messages mailbox_idaccounts
limitNoMaximum entries
cursorNoNext page handle from a truncated answer; only level=messages
filterNoOnly level=messages: space-separated type:value; types is/not/from/subject/tags/start/end; start/end in Unix seconds
account_idNoAccount id from level=accounts
mailbox_idNoMailbox id from level=mailboxes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: result ordering (newest first), the meaning of the `truncated` and `preview_truncated` flags, and the need to percent-encode filter values — all of which affect how an agent interprets and continues from a response. It does not describe error behavior for missing ids, keeping it below a 5.

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?

Three tight sentences, front-loaded with the listing modes before the ordering and encoding details; nothing is redundant. The final clause is telegraphic ('truncated: page cut; preview_truncated: preview cut'), which is efficient but slightly clipped in style.

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?

With no output schema, the description carries the burden of explaining return semantics, and it does so via ordering and the two truncation flags plus the cursor continuation hint. Combined with the fully documented schema and read-only annotations, an agent has what it needs to call this correctly; only failure modes are unaddressed.

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 description coverage is 100%, so the schema already documents all six parameters and the baseline is 3. The description adds meaning beyond the schema by specifying that filter values containing a space or colon must be percent-encoded, with a concrete example (`subject:Rechnung%20Mai`), which is a genuine operational detail absent from the schema.

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 and resource and enumerates the three listing modes (accounts, mailboxes, messages), which maps directly onto the level enum. It also names the sibling `fetch` as the way to get full message text, so an agent can distinguish browsing envelopes from fetching a body without opening another schema.

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: browse yields envelopes newest first, and full text requires `fetch("mail:<id>")`, which is an explicit alternative and routing rule. It stops short of saying when to prefer this over `search` or `unified_search` for finding mail, leaving that inference to the agent.

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