Skip to main content
Glama

List connected accounts

accounts_list
Read-onlyIdempotent

Lists the email and calendar accounts you can reach, with each one's account_id, provider, address, profile, status and capabilities. Use it first when a write needs account_id, or to see which accounts can do something (filter by capability). Example: { "capability": "mail.send" }.

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

Input Schema

NameRequiredDescriptionDefault
limitNoResults per page, 1–100 (default 20).
cursorNoThe `next_cursor` from the previous page. Omit for the first page.
statusNoOnly accounts in this state.
providerNoOnly this provider (iCloud, Yahoo and others are "imap").
capabilityNoOnly accounts that can do this, e.g. "mail.send". "calendar.free_busy" is the account's own availability; "calendar.attendee_free_busy" is looking up other people's.
profile_idNoOnly accounts in this profile (`prf_…` from profiles_list).

Output Schema

NameRequiredDescriptionDefault
itemsYes
next_cursorNoPass as `cursor` for the next page; absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / capability / enum
      Previous value: -[
      -  "mail.read",
      -  "mail.search",
      -  "mail.threads",
      -  "mail.folders",
      -  "mail.drafts",
      -  "mail.send",
      -  "mail.organize",
      -  "mail.changes",
      -  "calendar.read",
      -  "calendar.write",
      -  "calendar.respond",
      -  "calendar.propose_time",
      -  "calendar.free_busy",
      -  "calendar.attendee_free_busy",
      -  "calendar.online_meeting",
      -  "chat.read",
      -  "chat.send"
      -]New value: +[
      +  "mail.read",
      +  "mail.search",
      +  "mail.threads",
      +  "mail.folders",
      +  "mail.drafts",
      +  "mail.send",
      +  "mail.organize",
      +  "mail.changes",
      +  "calendar.read",
      +  "calendar.write",
      +  "calendar.respond",
      +  "calendar.propose_time",
      +  "calendar.free_busy",
      +  "calendar.attendee_free_busy",
      +  "calendar.online_meeting",
      +  "chat.read",
      +  "chat.send",
      +  "contacts.read",
      +  "contacts.write"
      +]
    • changedOutput schema / properties / items / items / properties / capabilities / items / description
      Previous value: -"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting, chat.read, chat.send; new values may be added."New value: +"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting, chat.read, chat.send, contacts.read, contacts.write; new values may be added."
  2. Changed2 schema fields changed
    • changedInput schema / properties / capability / enum
      Previous value: -[
      -  "mail.read",
      -  "mail.search",
      -  "mail.threads",
      -  "mail.folders",
      -  "mail.drafts",
      -  "mail.send",
      -  "mail.organize",
      -  "mail.changes",
      -  "calendar.read",
      -  "calendar.write",
      -  "calendar.respond",
      -  "calendar.propose_time",
      -  "calendar.free_busy",
      -  "calendar.attendee_free_busy",
      -  "calendar.online_meeting",
      -  "chat.read"
      -]New value: +[
      +  "mail.read",
      +  "mail.search",
      +  "mail.threads",
      +  "mail.folders",
      +  "mail.drafts",
      +  "mail.send",
      +  "mail.organize",
      +  "mail.changes",
      +  "calendar.read",
      +  "calendar.write",
      +  "calendar.respond",
      +  "calendar.propose_time",
      +  "calendar.free_busy",
      +  "calendar.attendee_free_busy",
      +  "calendar.online_meeting",
      +  "chat.read",
      +  "chat.send"
      +]
    • changedOutput schema / properties / items / items / properties / capabilities / items / description
      Previous value: -"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting, chat.read; new values may be added."New value: +"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting, chat.read, chat.send; new values may be added."
  3. Changed2 schema fields changed
    • changedInput schema / properties / capability / enum
      Previous value: -[
      -  "mail.read",
      -  "mail.search",
      -  "mail.threads",
      -  "mail.folders",
      -  "mail.drafts",
      -  "mail.send",
      -  "mail.organize",
      -  "mail.changes",
      -  "calendar.read",
      -  "calendar.write",
      -  "calendar.respond",
      -  "calendar.propose_time",
      -  "calendar.free_busy",
      -  "calendar.attendee_free_busy",
      -  "calendar.online_meeting"
      -]New value: +[
      +  "mail.read",
      +  "mail.search",
      +  "mail.threads",
      +  "mail.folders",
      +  "mail.drafts",
      +  "mail.send",
      +  "mail.organize",
      +  "mail.changes",
      +  "calendar.read",
      +  "calendar.write",
      +  "calendar.respond",
      +  "calendar.propose_time",
      +  "calendar.free_busy",
      +  "calendar.attendee_free_busy",
      +  "calendar.online_meeting",
      +  "chat.read"
      +]
    • changedOutput schema / properties / items / items / properties / capabilities / items / description
      Previous value: -"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting; new values may be added."New value: +"A capability: one of mail.read, mail.search, mail.threads, mail.folders, mail.drafts, mail.send, mail.organize, mail.changes, calendar.read, calendar.write, calendar.respond, calendar.propose_time, calendar.free_busy, calendar.attendee_free_busy, calendar.online_meeting, chat.read; new values may be added."
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is supplied structurally. Beyond that, the description discloses the result shape (the returned field set) and the semantic intent of capability filtering, which is real context an agent cannot read off the annotations.

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 short sentences, front-loaded with what is listed before the usage guidance. The trailing JSON example is mildly redundant with the schema's own example, but it is compact and does not bury the key information.

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?

Six parameters are fully documented in schema, an output schema exists so return values need no prose, and annotations cover safety and idempotency. Purpose, routing rationale and returned fields are all present, leaving nothing an agent needs before calling it.

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 description coverage is 100% and every parameter, enum value and the free_busy vs attendee_free_busy distinction is already documented in the schema. The description only restates the capability filter and repeats the schema's own 'mail.send' example, adding essentially no new meaning.

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 concrete verb+resource ('Lists the email and calendar accounts you can reach') and enumerates exactly what each row carries (account_id, provider, address, profile, status, capabilities). That field inventory makes it clearly distinct from a single-account getter or a health rollup.

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?

Gives two explicit triggering conditions: 'use it first when a write needs `account_id`' and 'to see which accounts can do something (filter by `capability`)'. It does not name a sibling alternative or an exclusion, which is what keeps it at 4 rather than 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.

Resources