@ooples/token-optimizer-mcp
Version:
Intelligent context window optimization for Claude Code - store content externally via caching and compression, freeing up your context window for what matters
29 lines • 1.06 kB
TypeScript
/**
* Validates tool arguments against the appropriate Zod schema
* @param toolName - The name of the tool being invoked
* @param args - The arguments to validate
* @returns The validated and type-safe arguments
* @throws {Error} If validation fails with descriptive error message
*/
export declare function validateToolArgs<T = any>(toolName: string, args: unknown): T;
/**
* Checks if a tool has a validation schema available
* @param toolName - The name of the tool to check
* @returns true if the tool has a schema, false otherwise
*/
export declare function hasValidationSchema(toolName: string): boolean;
/**
* Gets the list of all tools with validation schemas
* @returns Array of tool names that have validation schemas
*/
export declare function getValidatedTools(): string[];
/**
* Gets validation statistics
* @returns Object containing validation coverage statistics
*/
export declare function getValidationStats(): {
totalTools: number;
validatedTools: string[];
coverage: string;
};
//# sourceMappingURL=validator.d.ts.map