Skip to main content
Glama
deifos

FeedbackBasket MCP Server

by deifos

get_bug_reports

Retrieve and filter bug reports from FeedbackBasket projects by status, severity, or search terms to identify and address software issues.

Instructions

Get bug reports specifically from your FeedbackBasket projects

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoFilter by specific project ID
statusNoFilter by bug status
severityNoFilter by computed severity (based on sentiment: negative=high, neutral=medium, positive=low)
searchNoSearch bug report content for specific text
limitNoMaximum number of results to return (default: 20, max: 100)
includeNotesNoInclude internal notes in the response (default: false)

Implementation Reference

  • The main handler function getBugReports that executes the tool logic. It calls the FeedbackBasket API '/feedback/bugs' endpoint with optional filters, handles empty results, formats bug reports with severity/status emojis, includes statistics summary, and structures the markdown-formatted output.
    async getBugReports(params: {
      projectId?: string;
      status?: 'PENDING' | 'REVIEWED' | 'DONE';
      severity?: 'high' | 'medium' | 'low';
      limit?: number;
      search?: string;
      includeNotes?: boolean;
    } = {}): Promise<{ content: Array<{ type: string; text: string }> }> {
      try {
        const response = await this.api.post<BugReportsResponse>('/feedback/bugs', {
          limit: 20,
          includeNotes: false,
          ...params,
        });
    
        const bugReports = response.data.bugReports;
        if (bugReports.length === 0) {
          const filters = Object.entries(params)
            .filter(([_, value]) => value !== undefined)
            .map(([key, value]) => `${key}: ${value}`)
            .join(', ');
          
          return {
            content: [{
              type: 'text',
              text: `No bug reports found${filters ? ` with filters: ${filters}` : ''}.`
            }]
          };
        }
    
        const bugList = bugReports.map(bug => {
          const severityEmoji = bug.severity === 'high' ? '🔴' : bug.severity === 'medium' ? '🟡' : '🟢';
          const statusEmoji = bug.status === 'PENDING' ? '⏳' : bug.status === 'REVIEWED' ? '👁️' : '✅';
          
          return [
            `${severityEmoji} **${bug.severity.toUpperCase()} SEVERITY** ${statusEmoji} ${bug.status}`,
            `Project: ${bug.project.name}`,
            `Bug: ${bug.content.length > 150 ? bug.content.substring(0, 150) + '...' : bug.content}`,
            bug.email ? `Reported by: ${bug.email}` : '',
            bug.notes && params.includeNotes ? `Notes: ${bug.notes}` : '',
            `Reported: ${new Date(bug.createdAt).toLocaleDateString()}`,
            ''
          ].filter(Boolean).join('\n');
        }).join('\n');
    
        const stats = response.data.stats;
        const statsText = [
          `## Bug Statistics`,
          `Total Bugs: ${stats.totalBugs}`,
          `🔴 High: ${stats.bySeverity.high} | 🟡 Medium: ${stats.bySeverity.medium} | 🟢 Low: ${stats.bySeverity.low}`,
          `⏳ Pending: ${stats.byStatus.pending} | 👁️ Reviewed: ${stats.byStatus.reviewed} | ✅ Done: ${stats.byStatus.done}`,
          ''
        ].join('\n');
    
        const summary = [
          `# Bug Reports (${bugReports.length} of ${response.data.pagination.totalCount})\n`,
          statsText,
          bugList,
          response.data.pagination.hasMore ? `\n*Showing first ${bugReports.length} results. Use offset parameter to get more.*` : '',
          `\n*API Key: ${response.data.apiKeyInfo.name}*`
        ].join('\n');
    
        return {
          content: [{
            type: 'text',
            text: summary
          }]
        };
      } catch (error) {
        throw this.handleError('Failed to fetch bug reports', error);
      }
    }
  • Input schema definition for the get_bug_reports tool, specifying optional parameters for filtering bug reports including projectId, status, severity, search, limit (1-100), and includeNotes.
    {
      name: 'get_bug_reports',
      description: 'Get bug reports specifically from your FeedbackBasket projects',
      inputSchema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'Filter by specific project ID',
          },
          status: {
            type: 'string',
            enum: ['PENDING', 'REVIEWED', 'DONE'],
            description: 'Filter by bug status',
          },
          severity: {
            type: 'string',
            enum: ['high', 'medium', 'low'],
            description: 'Filter by computed severity (based on sentiment: negative=high, neutral=medium, positive=low)',
          },
          search: {
            type: 'string',
            description: 'Search bug report content for specific text',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of results to return (default: 20, max: 100)',
            minimum: 1,
            maximum: 100,
          },
          includeNotes: {
            type: 'boolean',
            description: 'Include internal notes in the response (default: false)',
          },
        },
        additionalProperties: false,
      },
    },
  • src/index.ts:200-202 (registration)
    Tool registration/dispatch in the CallToolRequest handler switch statement, which calls the client.getBugReports method with parsed arguments.
    case 'get_bug_reports':
      return await client.getBugReports(args || {});
  • TypeScript interface defining the structure of the API response for bug reports, used for type safety in the handler.
    export interface BugReportsResponse {
      bugReports: BugReport[];
      stats: {
        totalBugs: number;
        bySeverity: {
          high: number;
          medium: number;
          low: number;
        };
        byStatus: {
          pending: number;
          reviewed: number;
          done: number;
        };
      };
      pagination: {
        totalCount: number;
        limit: number;
        offset: number;
        hasMore: boolean;
        nextOffset: number | null;
      };
      filters: {
        projectId?: string;
        status?: string;
        severity?: string;
        search?: string;
      };
      apiKeyInfo: {
        name: string;
        usageCount: number;
      };
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Get bug reports', implying a read operation, but lacks details on permissions, rate limits, pagination, or response format. This is a significant gap for a tool with multiple parameters and no output schema, making it inadequate for informed use.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and appropriately sized, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of 6 parameters, no annotations, and no output schema, the description is incomplete. It fails to address behavioral aspects like response format, error handling, or usage constraints, leaving gaps that could hinder an agent's ability to invoke the tool correctly in a broader context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, providing clear details for all 6 parameters, including enums and defaults. The description adds no additional parameter semantics beyond the schema, so it meets the baseline score of 3, as the schema adequately handles the parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('bug reports specifically from your FeedbackBasket projects'), making the purpose evident. However, it doesn't explicitly differentiate from sibling tools like 'get_feedback' or 'search_feedback', which likely operate on similar data, so it falls short of a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as 'get_feedback' or 'search_feedback'. It mentions 'specifically from your FeedbackBasket projects', but this doesn't clarify distinctions in usage context or exclusions, leaving the agent with minimal direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/deifos/feedbackbasket-mcp'

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