Skip to main content
Glama

aws_list_accounts

Read-only

List AWS accounts available through named profiles, displaying account ID, alias, default region, and current credential status.

Instructions

List the AWS accounts (named profiles) this server can read, with account id, alias, default region and whether the credentials currently work.

Args: refresh: Re-resolve identities instead of using the cached ones.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refreshNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description adds useful behavioral context such as returning whether credentials currently work and the refresh mechanism that bypasses cached identities. No contradiction with annotations.

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?

The description is compact and front-loaded: the purpose appears in the first sentence, and the only parameter is explained in a single clear line. No filler or redundant restatement.

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?

For a read-only list tool with an optional boolean parameter and an existing output schema, the description covers what is returned, the source of data (named profiles), and the effect of refresh. Nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates for the single parameter: 'refresh: Re-resolve identities instead of using the cached ones' adds real meaning beyond the bare boolean schema type.

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 uses a specific verb, 'List', paired with a distinct resource, 'AWS accounts (named profiles)', and enumerates the returned fields (account id, alias, default region, credential validity). This makes it clearly separable from the sibling catalog/view/read/query tools even without explicit sibling naming.

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?

The context is clear: use this tool to enumerate the AWS accounts/profiles this server can read. It does not explicitly name alternatives or state when-not-to-use, so it misses the highest routing bar, but the usage context is unambiguous.

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