refresh_topology
Update Azure infrastructure topology maps by re-querying Azure Resource Graph, ARM, and Network Watcher APIs to reflect current resource states and relationships.
Instructions
Refresh the topology cache by re-querying Azure
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:559-574 (handler)Handler function for the refresh_topology tool. Invalidates the cache and rebuilds the topology graph from Azure resources, returning a success message with node and edge counts.case 'refresh_topology': { topologyCache = null; cacheTimestamp = 0; const topology = await buildTopology(); return { content: [ { type: 'text', text: `Topology refreshed successfully.\n\n` + `Resources: ${topology.nodes.length}\n` + `Connections: ${topology.edges.length}`, }, ], }; }
- src/server.ts:418-425 (registration)Tool registration in the ListToolsRequestHandler, defining the tool's name, description, and input schema (no parameters required).{ name: 'refresh_topology', description: 'Refresh the topology cache by re-querying Azure', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:421-424 (schema)Input schema definition for the refresh_topology tool, specifying an empty object (no input parameters).inputSchema: { type: 'object', properties: {}, },