get_anti_patterns
Identify known bottlenecks, root causes, and fixes. Read this before patching inline to avoid common issues.
Instructions
Returns the full list of known bottlenecks, their root causes, and fixes. Read this when something looks wrong before patching inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- api/mcp.ts:603-606 (registration)Registers the 'get_anti_patterns' tool with the MCP server. No input parameters required. Returns the ANTI_PATTERNS constant.
/* 7. get_anti_patterns */ server.tool("get_anti_patterns", "Known bottlenecks and fixes.", {}, async () => { return { content: [{ type: "text" as const, text: ANTI_PATTERNS }] }; }); - api/mcp.ts:143-143 (helper)Static data constant containing the markdown table of anti-patterns (8 known bottlenecks with symptoms, root causes, and fixes). This is the data payload returned by the tool.
const ANTI_PATTERNS = `# Known Bottlenecks & Anti-Patterns\n\n| # | Symptom | Root cause | Fix |\n|---|---|---|---|\n| 1 | Reports quicklink plain text | line-tab.css not linked | Add line-tab.css link |\n| 2 | ActionBar has view-toggle on Reports | Using Type 1-7 | Reports = Type 8 |\n| 3 | Table columns uneven | Hard-coded col widths | Checkbox=32px, rest=no width |\n| 4 | Drawer body flush | style="padding:0" | Use --no-pad modifier |\n| 5 | classic-tab in drawer | Used classic-tab inside drawer | Use line-tab inside drawers |\n| 6 | Tabs switch but no change | Custom data-*-tab attributes | Use standard data-tab only |\n| 7 | Dropdown 432px in drawer | flex:1 override | Delete override, use 280px fixed |\n| 8 | table-scroll-area gone | Missing min-height:0 | Every ancestor: flex:1; min-height:0; overflow:hidden |`;