Skip to main content
Glama
OpenSIPS

OpenSIPS MCP Server

Official
by OpenSIPS

cc_list_agents

List all call center agents and their current state to monitor agent availability and call center performance.

Instructions

List all call center agents and their current state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler function for the cc_list_agents tool. It is decorated with @mcp.tool() and @require_permission('mi.read'), and executes the 'cc_list_agents' MI command via the MI client.
    @mcp.tool()
    @require_permission("mi.read")
    async def cc_list_agents(ctx: Context) -> dict[str, Any]:
        """List all call center agents and their current state."""
        app = ctx.request_context.lifespan_context
        result = await app.mi_client.execute("cc_list_agents")
        return result
  • cc_list_agents is also used indirectly inside cc_status() which aggregates call center status (queue, agents, flows) into a single response.
    @mcp.tool()
    @require_permission("mi.read")
    async def cc_status(ctx: Context) -> dict[str, Any]:
        """Get a combined call center status: queue, agents, and flows.
    
        Returns all three datasets in a single response for a complete
        overview of the call center state.
        """
        app = ctx.request_context.lifespan_context
        queue = await app.mi_client.execute("cc_list_queue")
        agents = await app.mi_client.execute("cc_list_agents")
        flows = await app.mi_client.execute("cc_list_flows")
        return {
            "queue": queue,
            "agents": agents,
            "flows": flows,
        }
  • Registration of cc_list_agents in the MI_COMMANDS registry. Defines its module ('call_center'), description, default permission ('mi.read'), and category ('call_center').
    _r("cc_list_agents", "call_center", "List call center agents", category="call_center")
  • The call_center_tools module is imported in server.py to trigger the @mcp.tool() decorator and register cc_list_agents (and all other call center tools) with the FastMCP server instance.
    from opensips_mcp.tools import call_center_tools as _cc_tools  # noqa: E402, F401
Behavior3/5

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

No annotations provided. The description implies a read-only operation, but does not explicitly state no side effects, data volume, or other behavioral traits. Minimal disclosure beyond the action.

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?

One short, front-loaded sentence with no wasted words. Every word is meaningful and carries the purpose.

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?

Given no parameters and an output schema (not required in description), the description is fully adequate for a straightforward list tool. No additional context needed.

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?

Zero parameters; schema coverage is 100% trivially. The description adds no parameter information because none exist. Baseline 4 for zero parameters.

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 'List' and the resource 'all call center agents' with their 'current state'. This distinguishes it from sibling tools like cc_agent_login (login) and cc_list_queue (queues).

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 on when to use this tool vs alternatives. No exclusions or prerequisites mentioned. The description only states what it does, not when or when not to use it.

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/OpenSIPS/opensips-mcp-server'

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