get_graph_ids
Retrieve all stored graph IDs to access and manage visualizations within the Graphistry MCP server for GPU-accelerated network analytics.
Instructions
Get a list of all stored graph IDs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Handler function for get_graph_ids tool. Decorated with @mcp.tool() for registration. Returns list of graph IDs from the global graph_cache.@mcp.tool() async def get_graph_ids() -> List[str]: """Get a list of all stored graph IDs.""" return list(graph_cache.keys())
- src/graphistry_mcp_server/server.py:171-171 (registration)The @mcp.tool() decorator registers the get_graph_ids function as an MCP tool.@mcp.tool()
- Global cache dictionary used by get_graph_ids to store and retrieve graph IDs.graph_cache: Dict[str, Any] = {}