Skip to main content
Glama

list_departments

Fetch a paginated list of departments to browse organizational structure and page through results with cursor-based pagination.

Instructions

List all departments (paginated)

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (1-100)
startingAfterNoCursor for pagination (endingCursor from previous response)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses that results are paginated, which is useful, and 'List' implies a read-only operation, but it does not state scoping, permissions, or what the paginated response contains.

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 a single, front-loaded phrase with no wasted words. It states the resource and the pagination trait efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with fully documented parameters, the description is minimally adequate. However, with no annotations and no output schema, it could do more to explain scope, return shape, and when to use this instead of get_department.

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%, so the schema already documents both limit and startingAfter completely. The description adds only the word 'paginated,' which does not add meaning beyond the schema's pagination parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'List all departments.' The word 'all' implies a collection-level operation, which helps distinguish it from the singular sibling get_department, but the description never explicitly names or differentiates against that alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus get_department or any other sibling. The description states what the tool does but does not provide context, prerequisites, or exclusions for selecting it.

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