Skip to main content
Glama

get_users

Read-only

List Directus users with filtering, sorting, search, pagination, and field selection to control response size.

Instructions

Lists Directus users (directus_users) with filtering, sorting, field selection, search and pagination. Use get_user to fetch one user when the id is known. Returns at most 25 users unless limit says otherwise. Results are scoped to the permissions of the token, so a token without access to directus_users gets an empty list rather than an error. Directus never returns password hashes or static tokens; pass fields to keep responses small.

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

Input Schema

NameRequiredDescriptionDefault
sortNoSort fields
limitNoNumber of users to return (default: 25)
fieldsNoFields to return
filterNoFilter conditions
offsetNoNumber of users to skip
searchNoSearch query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv12.3.3

TDQS

A4.9/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses several non-obvious behaviors: a default cap of 25 results, permission-scoped results returning an empty list rather than an error, and that password hashes and static tokens are never returned. These are the failure-mode and data-shape facts an agent cannot infer from annotations or schema.

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?

Four short sentences, each carrying distinct information: capability, alternative routing, default limit, permission behavior, and field-selection advice. Purpose and routing are front-loaded and nothing is redundant with the schema.

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?

With no output schema, the description compensates by describing the response envelope (at most 25 by default, permission-filtered, sensitive fields excluded). For a 6-parameter, optional-only list tool with full schema coverage, an agent has everything needed to call it 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?

Schema coverage is 100%, so the baseline is 3 and the schema already documents each parameter. The description adds practical meaning on top ('pass fields to keep responses small', 'unless limit says otherwise') that steers real invocation choices rather than restating types.

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?

The description opens with a specific verb and resource ('Lists Directus users (directus_users)') and enumerates the supported query capabilities (filtering, sorting, field selection, search, pagination). It explicitly contrasts itself with get_user, so an agent can separate the list tool from the single-item tool without inspecting 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 Guidelines5/5

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

It gives an explicit alternative and the condition that selects it: 'Use get_user to fetch one user when the id is known.' The permission-scoping note further tells the agent what to expect when it is uncertain whether the list call is appropriate, which is the kind of when-to-use context most definitions omit.

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