Skip to main content
Glama

list_instances

View all active Claude instances to monitor AI assistant communication and manage IPC connections.

Instructions

List all active Claude instances

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_instances' that sends a 'list' action request to the MessageBroker via BrokerClient and returns the JSON-formatted response.
    elif name == "list_instances": response = BrokerClient.send_request({"action": "list"}) return [TextContent(type="text", text=json.dumps(response, indent=2))]
  • Backend handler for the 'list' action in MessageBroker._process_request() that constructs and returns the list of active instances with their last_seen timestamps from the self.instances dictionary.
    elif action == "list": instances = [ {"id": id, "last_seen": ts.isoformat()} for id, ts in self.instances.items() ] return {"status": "ok", "instances": instances}
  • Registration of the 'list_instances' tool in the MCP server's list_tools() function, including its description and empty input schema (no parameters required).
    Tool( name="list_instances", description="List all active Claude instances", inputSchema={ "type": "object", "properties": {} } ),

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/jdez427/claude-ipc-mcp'

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