Skip to main content
Glama

get_user

Read-only

Fetches a single Directus user by ID with optional field selection. Use it for read-only user lookups when the exact user ID is known.

Instructions

Fetches one Directus user by id, with optional field selection. Use get_users to search or list when the id is unknown. Read-only. Fails when the id does not exist or the token cannot read directus_users. The password hash and static token are never returned. The shorthand id me is not resolved here, so pass the actual user id.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "get_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUser ID
fieldsNoFields to return

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?

Annotations already declare readOnlyHint=true and openWorldHint=true, yet the description still adds real behavior: the two failure modes (missing id, token lacking read on directus_users) and the redaction rule (password hash and static token never returned). That redaction detail is security-relevant and cannot be inferred from structured fields.

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, front-loaded with purpose, then routing, then constraints. Every sentence carries distinct information with no repetition of the title or 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?

No output schema exists, and the description compensates by disclosing what is and is not returned plus the failure conditions. Nothing an agent needs to invoke this two-parameter read correctly is missing.

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 both parameters are already documented, but the description still adds meaning beyond the schema by warning that the shorthand id 'me' is not resolved and an actual user id must be supplied. The fields parameter is only echoed as "optional field selection," so it does not fully earn a 5.

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 ("Fetches one Directus user by id") plus scope ("with optional field selection"), and explicitly names get_users as the sibling for the unknown-id case. An agent can select this over get_users 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 Guidelines5/5

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

Explicitly says to use get_users "to search or list when the id is unknown," which gives both the when-to-use and the alternative. It also adds an exclusion for the 'me' shorthand, preventing a very plausible misuse.

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