Skip to main content
Glama

get_checklist

Retrieve validation checklists for Laravel code layers to ensure proper implementation and adherence to coding standards.

Instructions

Get code validation checklist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerNoLayer to get checklist for, or "all" for everything

Implementation Reference

  • The handler function that executes the get_checklist tool. Reads the checklist.md file and optionally filters by layer (service, controller, model, request, resource, or migration).
    async ({ layer = 'all' }) => {
      const checklistPath = path.join(DOCS_PATH, 'ai/checklist.md');
    
      if (!fs.existsSync(checklistPath)) {
        throw new Error('Checklist documentation not found');
      }
    
      let content = fs.readFileSync(checklistPath, 'utf-8');
    
      if (layer !== 'all') {
        const sections = {
          service: '1. Service Layer Checklist',
          controller: '2. Controller Checklist',
          model: '3. Model Checklist',
          request: '4. Request Validation Checklist',
          resource: '5. Resource Checklist',
          migration: '6. Migration Checklist',
        };
    
        const sectionStart = content.indexOf(sections[layer]);
        const nextSectionStart = content.indexOf('\n##', sectionStart + 1);
    
        if (sectionStart === -1) {
          throw new Error(`Layer '${layer}' checklist not found`);
        }
    
        content = content.slice(sectionStart, nextSectionStart === -1 ? content.length : nextSectionStart);
      }
    
      return {
        content: [{
          type: 'text',
          text: content,
        }],
      };
    }
  • index.js:241-248 (registration)
    Registration of the get_checklist tool with the MCP server, including its description and input schema definition.
    server.registerTool(
      'get_checklist',
      {
        description: 'Get code validation checklist',
        inputSchema: {
          layer: z.enum(['all', 'service', 'controller', 'model', 'request', 'resource', 'migration']).optional().describe('Layer to get checklist for, or "all" for everything'),
        },
      },

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/pujandan/mcp-laravel'

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