@withpica/mcp-server
Version:
MCP Server for withPICA — enables AI assistants to interact with your withPICA music catalog
14 lines • 806 B
TypeScript
import type { ToolResult } from "./index.js";
/** The closed list of section names the schema declares, or null if none. */
export declare function declaredSectionNames(inputSchema: unknown): string[] | null;
/**
* Returns a VALIDATION_ERROR result naming the unknown section(s) and the
* valid ones, or `null` when the call may proceed (no `sections` sent, the
* tool declares no closed list, or every name is known).
*
* A bare string (`sections: "basic"`) is checked as a one-element list rather
* than coerced, so a typo there is refused too; other non-array shapes are
* left to the executor.
*/
export declare function rejectUnknownSections(toolName: string, inputSchema: unknown, args: Record<string, unknown> | undefined): ToolResult | null;
//# sourceMappingURL=section-validation.d.ts.map