get_agent_prompt
Retrieve specialized prompts for VA form auditing agents to validate and fix scaffolded forms according to VA.gov content standards.
Instructions
Get the specialized prompt for a specific agent (1-4)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_number | Yes | Agent number (1-4) | |
| form_number | Yes | VA form number to customize prompt | |
| form_path | Yes | Path to form directory | |
| pdf_path | No | Path to PDF file |
Implementation Reference
- index.js:337-356 (handler)Handler implementation for the get_agent_prompt tool, which retrieves a base agent prompt and replaces template placeholders with form-specific details.
case 'get_agent_prompt': { const { agent_number, form_number, form_path, pdf_path } = args; const basePrompt = await loadAgentPrompt(agent_number); // Customize prompt with form-specific info const customizedPrompt = basePrompt .replace(/\[FORM-NUMBER\]/g, form_number) .replace(/\[FORM-PATH\]/g, form_path) .replace(/\[PDF-PATH\]/g, pdf_path || '[PDF not specified]'); return { content: [ { type: 'text', text: customizedPrompt, }, ], }; } - index.js:71-96 (registration)Registration and schema definition for the get_agent_prompt tool.
name: 'get_agent_prompt', description: 'Get the specialized prompt for a specific agent (1-4)', inputSchema: { type: 'object', properties: { agent_number: { type: 'number', description: 'Agent number (1-4)', enum: [1, 2, 3, 4], }, form_number: { type: 'string', description: 'VA form number to customize prompt', }, form_path: { type: 'string', description: 'Path to form directory', }, pdf_path: { type: 'string', description: 'Path to PDF file', }, }, required: ['agent_number', 'form_number', 'form_path'], }, }, - index.js:39-42 (helper)Helper function that reads the base agent prompt file from the templates directory.
async function loadAgentPrompt(agentNumber) { const promptPath = path.join(__dirname, 'templates', `agent-${agentNumber}-prompt.md`); return await fs.readFile(promptPath, 'utf-8'); }