getEnabledTools
Identify available alternatives when a requested tool is unavailable. Returns information about which tools are enabled in the full and minimal tool sets.
Instructions
IMPORTANT: Run this tool first when a requested tool is unavailable. Returns information about which tools are enabled in the full and minimal tool sets, helping you identify available alternatives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getEnabledTools.ts:20-64 (handler)Handler function that returns information about enabled tools across full, minimal, and excluded sets, along with server context info.
export async function handler( _args: z.infer<typeof parameters>, extra: { client: PostmanAPIClient; headers?: IsomorphicHeaders; serverContext?: ServerContext } ): Promise<CallToolResult> { try { return { content: [ { type: 'text', text: JSON.stringify( { serverInfo: extra.serverContext ? { serverType: extra.serverContext.serverType, currentServerTools: extra.serverContext.availableTools, currentServerToolCount: extra.serverContext.availableTools.length, } : { serverType: 'unknown', note: 'Server context not available', }, enabledTools: { full: Array.from(enabledResources.full), minimal: Array.from(enabledResources.minimal), excludedFromGeneration: Array.from(enabledResources.excludedFromGeneration), }, stats: { totalFull: enabledResources.full.length, totalMinimal: enabledResources.minimal.length, totalExcludedFromGeneration: enabledResources.excludedFromGeneration.length, }, }, null, 2 ), }, ], }; } catch (e: unknown) { if (e instanceof McpError) { throw e; } throw asMcpError(e); } } - src/tools/getEnabledTools.ts:11-11 (schema)Input schema: no parameters required (empty Zod object).
export const parameters = z.object({}); - src/tools/getEnabledTools.ts:6-7 (registration)Tool registration constants: method name and description exported as module-level exports.
export const method = 'getEnabledTools'; - src/enabledResources.ts:254-261 (registration)Enabled resources configuration that includes 'getEnabledTools' in the full, minimal, and excludedFromGeneration sets.
export const enabledResources = { full, minimal, code, excludedFromGeneration, subtools, templated, };