Skip to main content
Glama

agentic_review_execute

Execute automated code review by analyzing GitHub issues for static analysis, security scanning, and quality assessment to identify potential improvements in target files.

Instructions

ReviewAgent実行 - 静的解析・セキュリティスキャン・品質判定

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_numberYesGitHub Issue番号
target_filesNoレビュー対象ファイルパス

Implementation Reference

  • The handler function that implements the core logic of 'agentic_review_execute' by executing a GitHub Actions workflow for the ReviewAgent.
      private async handleReviewExecute(args: {
        issue_number: number;
        target_files?: string[];
      }) {
        try {
          const filesParam = args.target_files ? ` -f files="${args.target_files.join(',')}"` : '';
          await execAsync(
            `gh workflow run agentic-system.yml -f agent=review -f issue_number=${args.issue_number}${filesParam}`,
            { cwd: process.env.GITHUB_REPOSITORY_PATH || process.cwd() }
          );
    
          return {
            content: [
              {
                type: 'text',
                text: `## 👥 ReviewAgent起動
    
    **Issue**: #${args.issue_number}
    ${args.target_files ? `**対象ファイル**: ${args.target_files.join(', ')}` : '**対象**: すべてのファイル'}
    
    ✅ GitHub Actionsワークフローを起動しました
    
    レビュー結果は Issue #${args.issue_number} で確認できます`
              }
            ]
          };
        } catch (error) {
          return {
            content: [
              {
                type: 'text',
                text: `❌ エラー: ${error instanceof Error ? error.message : 'Unknown error'}`
              }
            ]
          };
        }
      }
  • Input schema defining the parameters for the agentic_review_execute tool.
    inputSchema: {
      type: 'object',
      properties: {
        issue_number: {
          type: 'number',
          description: 'GitHub Issue番号'
        },
        target_files: {
          type: 'array',
          items: { type: 'string' },
          description: 'レビュー対象ファイルパス'
        }
      },
      required: ['issue_number']
    }
  • server.ts:67-85 (registration)
    Registration of the tool in the TOOLS array used for tool discovery via ListToolsRequest.
    {
      name: 'agentic_review_execute',
      description: 'ReviewAgent実行 - 静的解析・セキュリティスキャン・品質判定',
      inputSchema: {
        type: 'object',
        properties: {
          issue_number: {
            type: 'number',
            description: 'GitHub Issue番号'
          },
          target_files: {
            type: 'array',
            items: { type: 'string' },
            description: 'レビュー対象ファイルパス'
          }
        },
        required: ['issue_number']
      }
    },
  • server.ts:229-230 (registration)
    Switch case in the CallToolRequestSchema handler that dispatches to the specific tool handler.
    case 'agentic_review_execute':
      return await this.handleReviewExecute(args as any);

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/ShunsukeHayashi/agentic-mcp-server'

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