Skip to main content
Glama

Get Available Linked Accounts

get_available_linked_accounts
Read-only

List the sub-accounts the organization has cost data for, as { accountId, accountName } pairs — the mapping you need to resolve an account id to its friendly name (and vice-versa). DEFAULTS TO the linked AWS accounts; scope with a non-AWS connection's integration_id to get that provider's sub-accounts instead (Azure subscriptions, GCP projects, Snowflake accounts, Anthropic/OpenAI workspaces/projects). IMPORTANT: the cost tools filter by account NAME, not the id — pass the accountName from this list as the account_id argument to query_costs / get_weekly_cost_slices / investigate_anomaly (passing the numeric id yields no match). limit caps the list. Use response_format="concise" (default) for the id/name pair, "detailed" for any extra fields. Read-only. Example: {} returns every linked AWS account with its id and name.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax items to return in the list (default: no cap beyond the truncation guard).
integration_idNoScope to one or more provider connections (integration id). Omit for all connections.
response_formatNoconcise = key fields only (default, lower token cost); detailed = the full parsed payload.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description's "Read-only" merely restates that. It does add genuinely non-structured behavior: the implicit default scope of AWS-only accounts, the cross-tool constraint that downstream cost tools match on name rather than id, and the fact that `limit` is subject to a truncation guard. Return format is covered, but nothing on rate limits or ordering.

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?

Well front-loaded — the return shape and the id/name resolution purpose land in the first clause, and the critical name-vs-id warning is bolded mid-definition rather than buried. It is dense to the point of being a run-on in places, and the closing "Example: {} returns every linked AWS account" partially duplicates the earlier DEFAULTS TO statement.

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 three-parameter, zero-required read tool with no output schema, the definition covers everything an agent needs: what comes back, what the default scope is, how to widen it, how to cap it, and the trap that makes its output usable by the cost tools. Nothing material is left unstated.

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 100%, so the baseline is 3; the description earns above that by explaining what `integration_id` actually selects (Azure subscriptions, GCP projects, Snowflake accounts, Anthropic/OpenAI workspaces) rather than just naming it. It also clarifies the practical effect of `limit` ("caps the list") and why you'd pick each `response_format` value, adding meaning the enum alone doesn't convey.

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 specific verb and resource ("List the sub-accounts the organization has cost data for") and pins the return shape as { accountId, accountName } pairs. It goes further by naming the actual job it serves — resolving an id to a friendly name — which separates it from sibling listing tools like get_available_services or get_available_tag_keys.

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 explicit when-to-use: call this before the cost tools to get the `accountName` to pass as `account_id`, and spells out the failure mode if you don't ("passing the numeric id yields no match"). It also states the default scope (linked AWS accounts) and the exact lever (`integration_id`) plus named examples for switching providers, so no inference is needed.

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