get_graph_ids
Retrieve all stored graph IDs to access and manage network data for visualization and analysis.
Instructions
Get a list of all stored graph IDs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_graph_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The @mcp.tool() decorated async function get_graph_ids() that returns the list of keys from the global graph_cache dictionary. This is the core handler logic for the tool and also serves as its registration via the decorator.
@mcp.tool() async def get_graph_ids() -> List[str]: """Get a list of all stored graph IDs.""" return list(graph_cache.keys())