export interface ToolCall { function_name: string; parameters: Record; metadata?: Record; } export interface ToolResult { data: unknown; error?: string; metadata?: Record; } export interface Tool { name: string; description: string; parameters: { type: 'object'; properties: Record; required: string[]; }; } export interface ToolValidationError { code: string; message: string; field?: string; } export type ValidationResult = { valid: boolean; errors?: ToolValidationError[]; }; export interface MCPServer { url: string; tools?: Tool[]; } export interface MCPServerConfig { [serverName: string]: MCPServer; }