Skip to main content
Glama

list_accounts

Read-onlyIdempotent

Retrieve lightweight account summaries filtered by segment, health band, lifecycle stage, or renewal window to find an account_id for deeper analysis.

Instructions

List accounts in the portfolio as lightweight summaries (id, name, segment, ARR, renewal date, lifecycle stage), optionally filtered by segment, computed health band, lifecycle stage or renewal window. Use this to find an account_id before calling get_account or any analysis tool; use portfolio_triage instead when you need accounts ranked by urgency rather than filtered. Read-only.

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
bandNoOptional filter on computed health band: 'healthy', 'watch', 'at_risk' or 'critical', computed on the fly by the same engine as compute_health_score.
stageNoOptional filter on lifecycle stage, e.g. 'onboarding', 'adoption', 'renewal'. Omit to include all stages.
segmentNoOptional filter on account segment, e.g. 'enterprise' or 'strategic'. Omit to include all segments.
renewal_within_daysNoOptional. Only include accounts whose renewal_date falls within this many days from today.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.2.0
    • addedInput schema / properties / band / description
      Added value: +"Optional filter on computed health band: 'healthy', 'watch', 'at_risk' or 'critical', computed on the fly by the same engine as compute_health_score."
    • addedInput schema / properties / renewal_within_days / description
      Added value: +"Optional. Only include accounts whose renewal_date falls within this many days from today."
    • addedInput schema / properties / segment / description
      Added value: +"Optional filter on account segment, e.g. 'enterprise' or 'strategic'. Omit to include all segments."
    • addedInput schema / properties / stage / description
      Added value: +"Optional filter on lifecycle stage, e.g. 'onboarding', 'adoption', 'renewal'. Omit to include all stages."
  2. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the trailing 'Read-only' is largely redundant. Beyond that, the description usefully characterizes output weight ('lightweight summaries') and notes the band filter is computed on the fly by the same engine as compute_health_score, which is real behavioral context. It does not disclose pagination, result caps, or default ordering, which is the main remaining gap for a list operation.

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?

Two sentences, both front-loaded: the payload shape and filters come first, then routing guidance. Every clause carries information — returned fields, filter dimensions, predecessor use case, named alternative, and access mode — with no filler or repeated phrasing.

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 a fully documented schema and complete annotations, the description covers purpose, routing, and return shape well enough to call the tool correctly, even without an output schema. The one omission is list-mechanics: no mention of pagination, maximum results, or ordering when no filter is supplied, which matters for a zero-required-parameter listing tool.

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 each parameter (band, stage, segment, renewal_within_days) is documented in the schema with examples, omission semantics, and the computation source for band. The description only restates the same four filters in prose, adding no syntax, valid values, or interaction rules beyond the schema, so the baseline 3 applies.

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 accounts in the portfolio') and enumerates the returned summary fields (id, name, segment, ARR, renewal date, lifecycle stage), which tells an agent exactly what kind of payload to expect. It explicitly contrasts itself with portfolio_triage, so the tool is distinguishable from its nearest sibling without opening the schema.

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 an explicit positive case ('Use this to find an account_id before calling get_account or any analysis tool') and an explicit exclusion with the alternative named ('use portfolio_triage instead when you need accounts ranked by urgency rather than filtered'). Both the when and the when-not are specified rather than left to inference.

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