Skip to main content
Glama

get_project_findings

Retrieve historical analysis findings for .NET and Java projects to detect stateful code patterns and get remediation guidance for stateless architecture migration.

Instructions

Retrieve historical analysis findings for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameYesName of the project

Implementation Reference

  • The execute function implementing the core logic of the 'get_project_findings' tool: parses input, fetches findings via API client, formats or returns error response.
    async execute(args) {
      try {
        const { projectName } = args;
    
        // Call Statelessor API
        const findings = await apiClient.getProjectFindings(projectName);
    
        if (!findings || findings.length === 0) {
          return {
            content: [
              {
                type: 'text',
                text: `No historical findings found for project: ${projectName}`,
              },
            ],
          };
        }
    
        // Format findings
        return {
          content: [
            {
              type: 'text',
              text: resultFormatter.formatHistoricalFindings(findings, projectName),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error retrieving findings: ${error.message}`,
            },
          ],
          isError: true,
        };
      }
    },
  • Tool definition object containing name, description, and input schema for validation.
    definition: {
      name: 'get_project_findings',
      description: 'Retrieve historical analysis findings for a project',
      inputSchema: {
        type: 'object',
        properties: {
          projectName: {
            type: 'string',
            description: 'Name of the project',
          },
        },
        required: ['projectName'],
      },
    },
  • mcp-server.js:61-62 (registration)
    MCP server switch case that registers and dispatches calls to the getFindingsTool handler.
    case 'get_project_findings':
      return await getFindingsTool.execute(args);
  • Supporting API client method that performs HTTP GET to retrieve project findings from the backend service.
    async getProjectFindings(projectName) {
      const requestId = this.generateRequestId();
      
      try {
        const response = await this.client.get(`/findings/${projectName}`, {
          headers: {
            'X-Request-ID': requestId,
          },
        });
    
        return response.data;
      } catch (error) {
        throw this.handleError(error, 'getProjectFindings');
      }
    }

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/aloksinghGIT/statelessor-mcp'

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