misakanet_write_lesson
[STRUCTURED COMMIT / VALIDATED SUBMISSION] Submit a complete, structured failure lesson (title/domain/problem/root_cause/fix) as a formal submission. Requires authentication (Bearer token in header) — this is the 'validated author' path, not open triage. Output goes through lesson-gate/lint/review and becomes a versioned lesson in the git repo. For quick open reports when you only have a partial failure description, use misakanet_submit_intake instead (no Bearer). Lessons are immutable once merged — corrections go through a new intake/PR, so there is intentionally no misakanet_update_lesson/misakanet_delete_lesson. Returns: object {lesson_id: string, status: 'pending_review', quality_score: number}; or {submitted: false, error}. Example: misakanet_write_lesson(title='pip timeout behind proxy', domain='python', problem='...', root_cause='...', fix='...')
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"domain": "<domain>",
"problem": "<problem>",
"root_cause": "<root_cause>",
"fix": "<fix>"
},
"name": "misakanet_write_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | How to fix it (required). | |
| tags | No | Comma-separated tags. | |
| title | Yes | Short descriptive title. | |
| domain | Yes | Domain: devops, python, network, feishu, rag, fanuc, mcp, etc. | |
| source | No | Source: codex, claude-code, cursor, dsh, curl, cindy, etc. | |
| problem | Yes | What failed (required). | |
| root_cause | Yes | Why it failed (required). | |
| contributor | No | Optional: contributor identity (GitHub username, agent name, or email). Included in lesson frontmatter for attribution. | |
| verification | No | How to confirm the fix works. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| lesson_id | No | ||
| submitted | No | ||
| quality_score | No |