Skip to main content
Glama
geoffwhittington

SD Elements MCP Server

list_users

Retrieve a list of all users in the SD Elements platform, with options to filter by active status and control results per page for efficient user management.

Instructions

List all users in SD Elements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activeNoFilter by active users only
page_sizeNoNumber of results per page (optional)

Implementation Reference

  • The handler function for the 'list_users' tool. It is decorated with @mcp.tool() for automatic registration and schema inference from signature and docstring. Implements listing users via API with optional filters.
    @mcp.tool()
    async def list_users(ctx: Context, page_size: Optional[int] = None, active: Optional[bool] = None) -> str:
        """List all users"""
        global api_client
        if api_client is None:
            api_client = init_api_client()
        params = {}
        if page_size is not None:
            params["page_size"] = page_size
        if active is not None:
            params["is_active"] = active
        result = api_client.list_users(params)
        return json.dumps(result, indent=2)
  • Import of users module in tools/__init__.py, which loads and registers the list_users tool when the tools package is imported.
    from .users import *
  • Import of tools package in server.py, triggering the import chain that registers all tools including list_users.
    from . import tools  # noqa: F401
Behavior2/5

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

With no annotations, the description carries full burden but only states the action without behavioral details. It doesn't disclose if this requires authentication, has rate limits, returns paginated results, or affects system state, leaving critical operational context unclear.

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, direct sentence with zero wasted words, clearly front-loading the core purpose. It's appropriately sized for a simple list operation, making it easy to parse quickly.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description is insufficient. It lacks details on return format, error handling, authentication needs, or how it fits into the broader user management context, leaving gaps in operational understanding.

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 parameters ('active' and 'page_size'). The description adds no additional parameter context beyond what the schema provides, meeting the baseline for high coverage but not enhancing understanding.

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 clearly states the action ('List') and resource ('all users in SD Elements'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'get_user' or specify scope beyond 'all users,' missing full sibling distinction.

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?

No guidance is provided on when to use this tool versus alternatives like 'get_user' or 'list_projects.' The description lacks context about user management workflows or prerequisites, offering only basic functional intent without usage scenarios.

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

Related 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/geoffwhittington/sde-mcp'

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