Skip to main content
Glama

list_ems_systems

Retrieve available Event Monitoring System (EMS) configurations to obtain system IDs required for accessing flight data analytics and monitoring tools.

Instructions

List available EMS systems. Start here to get system IDs for all other tools.

Returns: EMS systems with IDs, names, and descriptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Main tool handler function decorated with @mcp.tool. Fetches EMS systems from the API endpoint and formats them for display.
    @mcp.tool
    async def list_ems_systems() -> str:
        """List available EMS systems. Start here to get system IDs for all other tools.
    
        Returns:
            EMS systems with IDs, names, and descriptions.
        """
        client = get_client()
    
        try:
            systems = await client.get("/api/v2/ems-systems")
            return _format_ems_systems(systems)
        except EMSAPIError as e:
            return f"Error listing EMS systems: {e.message}"
  • Helper function that formats the list of EMS systems into a human-readable string output.
    def _format_ems_systems(systems: list[dict[str, Any]]) -> str:
        """Format EMS systems list for display."""
        if not systems:
            return "No EMS systems found."
    
        lines = [f"Found {len(systems)} EMS system(s):"]
        for sys in systems:
            name = sys.get("name", "Unknown")
            sys_id = sys.get("id", "?")
            desc = sys.get("description", "")
            if desc:
                lines.append(f"  - {name} (ID: {sys_id}): {desc}")
            else:
                lines.append(f"  - {name} (ID: {sys_id})")
        return "\n".join(lines)
  • Pydantic schema defining the structure of an EMS system object with id, name, and optional description fields.
    class EMSSystem(BaseModel):
        """EMS system information."""
    
        id: int
        name: str
        description: str | None = None
  • Tool registration - imports list_ems_systems from discovery module and exports it in __all__ list for package-level availability.
    from ems_mcp.tools.discovery import (
        find_fields,
        get_field_info,
        get_result_id,
        list_databases,
        list_ems_systems,
        search_analytics,
    )
    from ems_mcp.tools.query import (
        query_database,
        query_flight_analytics,
    )
    
    __all__ = [
        "list_ems_systems",
        "list_databases",
        "find_fields",
        "get_field_info",
        "get_result_id",
        "search_analytics",
        "query_database",
        "query_flight_analytics",
        "get_assets",
        "ping_system",
    ]
  • Top-level package registration - exports list_ems_systems in the main package's __all__ list for external access.
    from ems_mcp.tools import (
        find_fields,
        get_assets,
        get_field_info,
        list_databases,
        list_ems_systems,
        search_analytics,
    )
    
    __version__ = "0.2.0"
    
    __all__ = [
        # Server
        "mcp",
        "run",
        "get_client",
        # Client
        "EMSClient",
        # Auth
        "TokenManager",
        # Settings
        "EMSSettings",
        "get_settings",
        # Exceptions
        "AuthenticationError",
        "EMSAPIError",
        "EMSAuthorizationError",
        "EMSNotFoundError",
        "EMSRateLimitError",
        "EMSServerError",
        # Discovery Tools
        "list_ems_systems",
        "list_databases",
        "find_fields",
        "get_field_info",
        "search_analytics",
        # Asset Tools
        "get_assets",
    ]
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a listing operation and describes the return format (IDs, names, descriptions), which is helpful. However, it doesn't address potential limitations like pagination, rate limits, authentication requirements, or error conditions that would be important for an agent to know.

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 perfectly concise with two sentences that each serve distinct purposes: the first states the tool's function and strategic importance, the second describes the return format. There's zero wasted text, and information is front-loaded appropriately.

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's simplicity (zero parameters, has output schema), the description provides adequate context about what the tool does and why to use it. The output schema will handle return value documentation, so the description doesn't need to detail response structure. However, for a tool positioned as an entry point to the system, additional guidance about prerequisites or limitations would be beneficial.

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?

The tool has zero parameters with 100% schema description coverage, so the schema already fully documents the lack of inputs. The description appropriately doesn't discuss parameters, focusing instead on the tool's purpose and output. This earns a baseline 4 for zero-parameter tools that don't waste space on parameter discussion.

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 tool's purpose with a specific verb ('List') and resource ('EMS systems'), making it immediately understandable. It distinguishes itself from siblings by focusing on EMS systems specifically, though it doesn't explicitly contrast with similar tools like 'list_databases' or 'get_assets'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('Start here to get system IDs for all other tools'), indicating it's an entry point for subsequent operations. However, it doesn't specify when not to use it or name explicit alternatives among the sibling tools.

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/mattsq/ems-mcp'

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