Skip to main content
Glama

aida_log_bug

Log bugs discovered during development or testing. Record bug details including title, severity level, and discovery source to track issues systematically.

Instructions

当你在开发或测试中发现 bug 时调用。记录 bug 信息。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesBug 描述
severityNo严重程度:critical/high/medium/low,默认 medium
sourceNo发现来源:self-review/user-feedback/testing,默认 self-review

Implementation Reference

  • The handler function 'handleLogBug' logic which registers a bug in 'run.json'.
    function handleLogBug(args: any): any {
      const severity = args.severity || 'medium';
      const source = args.source || 'self-review';
      const { path, data } = ensureRunJson();
      const id = nextId(data.bugs, 'BUG');
      const bug: BugItem = {
        bugId: id,
        title: args.title,
        severity: severity as BugItem['severity'],
        source: source as BugItem['source'],
        status: 'open',
        files: [],
        fix: null,
        taskId: data.context.currentTaskId || null,
        reportedAt: now(),
        fixedAt: null,
      };
      data.bugs.push(bug);
      data.summary.bugCount = data.bugs.length;
      addEvent(data, 'bug_created', { bugId: id });
      addTimeline(data, 'bug', `${id}: ${args.title}`);
      save(path, data);
      return { success: true, bugId: id, message: `${id} 已记录: ${args.title} [${severity}]` };
    }
  • The tool definition for 'aida_log_bug' including input schema.
      name: 'aida_log_bug',
      description: '当你在开发或测试中发现 bug 时调用。记录 bug 信息。',
      inputSchema: {
        type: 'object',
        properties: {
          title: { type: 'string', description: 'Bug 描述' },
          severity: { type: 'string', enum: [...SEVERITY_VALUES], description: '严重程度:critical/high/medium/low,默认 medium' },
          source: { type: 'string', enum: [...BUG_SOURCE_VALUES], description: '发现来源:self-review/user-feedback/testing,默认 self-review' },
        },
        required: ['title'],
      },
    },

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/LWTlong/ai-dev-analytics'

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