Skip to main content
Glama

List accounts

list_accounts
Read-only

Lists available mail accounts with IDs, permissions, sending limits, and unsupported actions; call first to obtain account IDs required by other tools.

Instructions

The mail accounts you may use: id, address and what you may do there (read, write, drafts, send, share). Call it first: other tools take the account id. It reads only. Where you may send, sending names the limits, one entry per grant: to whom, how many a day and how many are left. A send passes when one of them allows it. warning marks an account where you may read mail and send it anywhere. unsupported names what an account cannot do, such as folders on a mailbox without them: tools for that fail there.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.0
    • addedOutput schema / $defs
      Added value: +{
      +  "Account": {
      +    "description": "An account, what the caller may do there, and what it lacks.",
      +    "properties": {
      +      "attention": {
      +        "title": "Attention",
      +        "type": "string"
      +      },
      +      "can": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Can",
      +        "type": "array"
      +      },
      +      "email": {
      +        "title": "Email",
      +        "type": "string"
      +      },
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "last_sync": {
      +        "title": "Last Sync",
      +        "type": "string"
      +      },
      +      "marks_written": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Marks Written",
      +        "type": "array"
      +      },
      +      "name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Name"
      +      },
      +      "sending": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Sending",
      +        "type": "array"
      +      },
      +      "status": {
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "unsupported": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Unsupported",
      +        "type": "array"
      +      },
      +      "warning": {
      +        "title": "Warning",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "email",
      +      "name",
      +      "can"
      +    ],
      +    "title": "Account",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / result / items / $ref
      Added value: +"#/$defs/Account"
    • removedOutput schema / properties / result / items / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / result / items / type
      Removed value: -"object"
  2. First observed

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 'It reads only' largely restates structured data. Beyond that, the description adds real interpretive context: `sending` lists per-grant limits (recipients, daily cap, remaining), `warning` flags accounts with unrestricted send, and `unsupported` explains why certain tools fail on an account. That field semantics is genuinely additive.

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 dense and front-loads the key instruction ('Call it first'), with each subsequent sentence covering a distinct field. Some phrasing is elliptical ('to whom, how many a day and how many are left') and 'It reads only' duplicates the annotation, marginally reducing economy.

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?

An output schema exists, and the description goes further by explaining how to interpret `sending`, `warning`, and `unsupported` rather than merely restating fields. For a zero-parameter, read-only discovery tool, an agent has everything needed to call it and use the result correctly.

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?

The tool takes zero parameters, so the baseline is 4 and there is no parameter ambiguity to resolve. The description uses the space instead to explain the shape and meaning of the return fields, which is the relevant semantic work for a no-arg discovery tool.

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?

The description names the resource concretely ('The mail accounts you may use') and enumerates exactly what each entry carries: id, address, and per-account permissions (read, write, drafts, send, share). It is clearly distinguishable from siblings like list_drafts or list_folders. It stops short of a clean verb-first statement of purpose, opening instead with a noun phrase.

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?

Explicit sequencing guidance: 'Call it first: other tools take the account id,' which tells the agent both when to use it and why it precedes the rest of the toolchain. It also states that a send succeeds only if one grant allows it, giving the caller the decision rule rather than leaving it to inference.

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