list_available_contexts
View all loaded context categories and their descriptions to understand available persistent tool settings across chat sessions.
Instructions
List all loaded context categories and their descriptions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/index.ts:251-260 (handler)The 'list_available_contexts' tool handler retrieves context information from the engine, transforms it into a summary (including tool_category, description, priority, and applies_to), and returns it as a JSON-formatted string.
case 'list_available_contexts': { const contexts = engine.getContexts(); const list = Array.from(contexts.values()).map((c) => ({ tool_category: c.tool_category, description: c.description, priority: c.metadata.priority ?? 'medium', applies_to: c.metadata.applies_to_tools, })); return { content: [{ type: 'text', text: JSON.stringify(list, null, 2) }] }; } - src/server/index.ts:94-101 (registration)The tool 'list_available_contexts' is defined and registered in the MCP server's listTools response.
{ name: 'list_available_contexts', description: 'List all loaded context categories and their descriptions', inputSchema: { type: 'object' as const, properties: {}, }, },