Skip to main content
Glama

search_users

Search for Moodle users by first name, last name, email, username, or ID number to locate a specific person before taking further actions.

Instructions

Search Moodle users by firstname, lastname, email, username, or idnumber. Use this for direct person lookup, not structured directory filtering or reports. Provide at least one standard Moodle search field. Moodle performs the filtering first; this tool does not preload the full user directory. If a directory listing plugin is installed, prefer that plugin for filter-style requests. If multiple users match, do not guess downstream actions; select the correct user ID first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoSearch by email
limitNoMaximum users to return
offsetNoPagination offset applied after Moodle returns matches
idnumberNoSearch by ID number
lastnameNoSearch by last name
usernameNoSearch by username
firstnameNoSearch by first name
Behavior4/5

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

Given no annotations exist, the description must fully disclose behavioral traits. It clarifies that filtering is server-side via Moodle, not preloaded client-side, which is important for understanding performance and accuracy. It also explains the offset pagination (in the offset parameter description). However, it doesn't state what happens on error (e.g., invalid search field, empty result), or whether the tool is read-only/idempotent (implicitly yes, but not stated). Still, with no annotations, this is strong transparency.

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?

Three sentences, each packed with value: the first states purpose and searchable fields; the second provides usage context and behavioral fact; the third gives a critical usage guideline about filtering and handling multiple matches. No wasted words. Front-loaded with the essential purpose.

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?

Given the tool has 7 parameters, no output schema, and no sibling tool that does exactly the same (only get_user for specific ID), the description covers usage, behavior, and the key parameter nuance (offset). It does not explain return format or what happens when multiple fields are provided (priority or conjunction), which could be needed for complete understanding. But for a search tool, it is largely sufficient. A 5 would require documenting the return structure or combining logic.

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 baseline is 3. The description does not repeat parameter schemas but adds value by explaining the offset behavior ('applied after Moodle returns matches') which clarifies pagination semantics that the schema alone does not. It also stresses the requirement to provide 'at least one standard Moodle search field', implying that the tool may fail or return no results if used without any filter, which is not obvious from the optional schema. One could argue for a 5, but the score stays at 4 because the added value is not exhaustive (e.g., no guidance on combining multiple 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?

The description clearly states the verb 'Search' and the resource 'Moodle users', and lists the specific search fields (firstname, lastname, email, username, idnumber). This distinctively differentiates it from siblings like list_courses, get_user (which may require a user ID), or list_course_users (which filters by course). The scope is precise.

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?

The description explicitly says 'Use this for direct person lookup, not structured directory filtering or reports.' It provides a prerequisite ('Provide at least one standard Moodle search field'), explains behavior ('Moodle performs the filtering first; this tool does not preload the full user directory'), and names an alternative ('If a directory listing plugin is installed, prefer that plugin for filter-style requests'). It also warns against premature downstream actions when multiple matches occur. This is exemplary guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/csmediapro/moodle-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server