Skip to main content
Glama

list_groups

Retrieve the groups this token can add accounts to, including owned or administered groups, before calling add_account to get valid group IDs and names.

Instructions

Returns the groups this token can add accounts to: groups its team member owns or is a group admin of, and only the token's own groups if it is limited to some. Each group includes: id (UUID for add_account's group_ids) and name. Call this before add_account. Returns an empty list if there are none.

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_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
groupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does well: it discloses the authorization filter (team-member ownership or group admin), the token-restriction behavior, and the empty-list edge case. It omits operational details like pagination or rate limits, though neither is likely relevant for a zero-parameter lookup.

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 tight sentences with the scoping rule front-loaded, then the payload shape, then the call-order instruction. The first sentence is dense with nested clauses but every clause carries information; nothing is filler.

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, so return-value documentation is optional, yet the description still names the two fields that matter for downstream use. Combined with the authorization scope, the empty-list case, and the add_account sequencing, an agent has everything needed to call this 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 no parameters, so the baseline of 4 applies. The description goes slightly further by explaining that returned ids are the UUIDs to pass into add_account's group_ids, which clarifies output-to-input coupling even though no input semantics are needed.

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 ('Returns the groups this token can add accounts to') and immediately narrows scope to owned/admin groups and token-restricted groups. An agent can distinguish this from list_accounts or whoami without opening any schema.

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 an explicit workflow instruction: 'Call this before add_account', which tells the agent the sequencing dependency. It does not name a when-not condition or an alternative tool, but the authorization scoping implicitly explains why this list is smaller than a general group list.

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

Deploy Server

Other Tools