import type { MCPAnalyticsOptions } from '../types'; import { type AnalyticsInjectableJsonSchema } from './analytics-parameters'; import { type LoggerFn } from './logger'; export interface ContextInjectableTool { inputSchema?: AnalyticsInjectableJsonSchema; name?: string; [key: string]: unknown; } export declare function isContextEnabled(context: MCPAnalyticsOptions['context']): boolean; export declare function getContextDescription(context: MCPAnalyticsOptions['context']): string | undefined; /** * Adds a context parameter to a tool's JSON Schema. * This function is called AFTER the MCP SDK has converted Zod schemas to JSON Schema, * so we only need to handle JSON Schema format. * * Skips injection (with warning) for: * - Tools that already have a 'context' parameter * - Complex schemas (oneOf/allOf/anyOf/$ref) that can't safely have properties added * - Schemas with additionalProperties: false */ export declare function addContextParameterToTool(tool: TTool, contextDescriptionOverride?: string, logger?: LoggerFn): TTool; export declare function addContextParameterToTools(tools: TTool[], contextDescriptionOverride?: string, logger?: LoggerFn): TTool[]; //# sourceMappingURL=context-parameters.d.ts.map