UNPKG

mcp-ai-agent-guidelines

Version:

A comprehensive Model Context Protocol server providing professional tools, resources, and prompts for implementing AI agent best practices

149 lines 5.42 kB
// Tool schemas for flow-based prompting tools export const promptChainingBuilderSchema = { name: "prompt-chaining-builder", description: "Build multi-step prompt chains with output passing, dependencies, and error handling for complex sequential workflows", inputSchema: { type: "object", properties: { chainName: { type: "string", description: "Name of the prompt chain", }, description: { type: "string", description: "Description of what the chain accomplishes", }, steps: { type: "array", items: { type: "object", properties: { name: { type: "string" }, description: { type: "string" }, prompt: { type: "string" }, outputKey: { type: "string" }, dependencies: { type: "array", items: { type: "string" }, }, errorHandling: { type: "string", enum: ["skip", "retry", "abort"], }, }, required: ["name", "prompt"], }, description: "Array of chain steps", }, context: { type: "string", description: "Global context for the chain", }, globalVariables: { type: "object", description: "Global variables accessible to all steps", }, includeMetadata: { type: "boolean", description: "Include metadata section", }, includeReferences: { type: "boolean", description: "Include reference links", }, includeVisualization: { type: "boolean", description: "Include Mermaid flow visualization", }, executionStrategy: { type: "string", enum: ["sequential", "parallel-where-possible"], description: "How to execute the chain", }, }, required: ["chainName", "steps"], }, }; export const promptFlowBuilderSchema = { name: "prompt-flow-builder", description: "Build declarative prompt flows with conditional branching, loops, parallel execution, and dynamic orchestration", inputSchema: { type: "object", properties: { flowName: { type: "string", description: "Name of the prompt flow", }, description: { type: "string", description: "Description of the flow purpose", }, nodes: { type: "array", items: { type: "object", properties: { id: { type: "string" }, type: { type: "string", enum: [ "prompt", "condition", "loop", "parallel", "merge", "transform", ], }, name: { type: "string" }, description: { type: "string" }, config: { type: "object" }, }, required: ["id", "type", "name"], }, description: "Flow nodes (processing units)", }, edges: { type: "array", items: { type: "object", properties: { from: { type: "string" }, to: { type: "string" }, condition: { type: "string" }, label: { type: "string" }, }, required: ["from", "to"], }, description: "Flow edges (connections between nodes)", }, entryPoint: { type: "string", description: "ID of the starting node", }, variables: { type: "object", description: "Flow-level variables", }, includeMetadata: { type: "boolean", description: "Include metadata section", }, includeReferences: { type: "boolean", description: "Include reference links", }, includeExecutionGuide: { type: "boolean", description: "Include execution guide", }, outputFormat: { type: "string", enum: ["markdown", "mermaid", "both"], description: "Output format preference", }, }, required: ["flowName", "nodes"], }, }; //# sourceMappingURL=flow-tool-schemas.js.map