Skip to main content
Glama
geoffwhittington

SD Elements MCP Server

list_projects

Retrieve and manage all projects in SD Elements with customizable options like pagination, included fields, and expanded details for efficient project tracking and integration.

Instructions

List all projects in SD Elements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expandNoFields to expand (comma-separated)
includeNoAdditional fields to include (comma-separated)
page_sizeNoNumber of results per page (optional)

Implementation Reference

  • The core handler function for the 'list_projects' tool. Decorated with @mcp.tool() which also serves as registration. Fetches projects via API client and returns JSON.
    @mcp.tool()
    async def list_projects(ctx: Context, page_size: Optional[int] = None, include: Optional[str] = None, expand: Optional[str] = None) -> str:
        """List all projects in SD Elements"""
        global api_client
        if api_client is None:
            api_client = init_api_client()
        params = build_params({"page_size": page_size, "include": include, "expand": expand})
        result = api_client.list_projects(params)
        return json.dumps(result, indent=2)
  • Import statement in tools/__init__.py that loads and registers the projects tools via their decorators.
    from .projects import *
  • Import in server.py that triggers loading of all tools, including list_projects.
    from . import tools  # noqa: F401
  • Helper function build_params used in list_projects to construct API parameters from tool inputs.
    def build_params(args: Dict[str, Any]) -> Dict[str, Any]:
        """Helper function for building params"""
        params = {}
        if "page_size" in args and args["page_size"] is not None:
            params["page_size"] = args["page_size"]
        if "include" in args and args["include"] is not None:
            params["include"] = args["include"]
        if "expand" in args and args["expand"] is not None:
            params["expand"] = args["expand"]
        return params
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a list operation but doesn't mention pagination behavior (implied by 'page_size' parameter), rate limits, authentication requirements, or what happens when no projects exist. The description is minimal and lacks crucial operational context.

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, efficient sentence with zero wasted words. It's appropriately sized for a simple list operation and front-loads the core purpose immediately.

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 list operation with 3 parameters and no output schema, the description is insufficient. It doesn't explain what the output looks like (e.g., project objects with fields), how pagination works with 'page_size', or what 'expand' and 'include' parameters actually affect. With no annotations and no output schema, more context is needed.

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 all three parameters with descriptions. The tool description adds no additional parameter information beyond what's in the schema. This meets the baseline expectation when schema coverage is complete.

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 target resource ('all projects in SD Elements'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from sibling tools like 'list_applications' or 'list_business_units' beyond the resource type, missing explicit differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives like 'get_project' (for single project details) or 'create_project' (for creating new projects). There's no mention of prerequisites, context, or exclusions for usage.

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