Skip to main content
Glama

List local accounts

accounts_list
Read-onlyIdempotent

Lists local accounts with pagination and returns names, enabled status, password-change flags, and timestamps—not credentials—so you can review accounts and choose one for inspection.

Instructions

List local accounts

Returns paginated items with names, enabled flags, mandatory password-change flags and creation/update timestamps, never passwords or hashes. Use account_get with a returned name; limit defaults to 100, accepts 1–500, and nextCursor continues the list.

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
limitNoMaximum results per page. Results are authorization-filtered before pagination.
cursorNoOpaque cursor returned by the preceding page.

Output Schema

NameRequiredDescriptionDefault
itemsYes
nextCursorNoOpaque continuation cursor; absent at the end.
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque cursor returned by the preceding page."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum results per page. Results are authorization-filtered before pagination."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Account_depth15": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "createdAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "enabled": {
      +          "type": "boolean"
      +        },
      +        "mustChangePassword": {
      +          "type": "boolean"
      +        },
      +        "name": {
      +          "maxLength": 128,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "updatedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "enabled",
      +        "mustChangePassword",
      +        "createdAt",
      +        "updatedAt"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "items": {
      +      "items": {
      +        "$ref": "#/$defs/Account_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "nextCursor": {
      +      "description": "Opaque continuation cursor; absent at the end.",
      +      "type": "string"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "items"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real value by disclosing which fields are returned, that secrets are excluded ("never passwords or hashes"), and how pagination continues via the cursor.

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?

Front-loaded with the operation, then return contents, then the pagination mechanics in one dense sentence. Efficient overall, though the limit default/range restatement duplicates what the schema already declares.

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 an output schema present, the description needn't enumerate return shapes, and it correctly focuses on safety (no secrets), pagination, and the natural next call. The only soft spot is the cursor naming mismatch, which could momentarily confuse an agent wiring up pagination.

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 coverage is 100%, so limit's default, range, and the cursor's opaque nature are already documented in the schema. The description restates limit's default and bounds and refers to a "nextCursor" that does not match the schema's "cursor" parameter name, adding little semantic clarity beyond the structured fields.

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 local accounts") and immediately differentiates itself from the sibling read-one tool by naming account_get. An agent can tell list-vs-get apart without opening either 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 follow-up path: "Use account_get with a returned name," which is the main decision point after listing. It does not state when *not* to use this tool (e.g., a search-by-attribute alternative), but the list/get split is clearly implied.

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