Skip to main content
Glama
agilesix

VA Form Generation MCP Server

by agilesix

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
NameRequiredDescriptionDefault
agent_numberYesAgent number (1-4)
form_numberYesVA form number to customize prompt
form_pathYesPath to form directory
pdf_pathNoPath to PDF file

Implementation Reference

  • 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'],
      },
    },
  • 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');
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/agilesix/va-form-generation-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server