Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as misakanet. If you published it, claim ownership there.

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 or PR; there are deliberately no update or delete tools for them. Returns: object {submitted: true, lesson_id: string, status: 'pending_review', quality_score: number, issue_url: string, dedup_key: string}; a repeat of the SAME content returns {submitted: false, duplicate: true, lesson_id, issue_url, dedup_key} instead of filing a second issue; a refused submission returns {submitted: false, error}. Timeouts and retries: the outbound call to GitHub has an 8 s deadline, so a submission can time out AFTER its issue was created. The response therefore carries dedup_key (8 chars, derived from title+problem+root_cause+fix), and re-sending identical text is idempotent — you get the original issue back instead of a duplicate. To check its review status without re-submitting, call misakanet_me_inbox(dedup_key=): it reports pending / converted and names the lesson once a maintainer merges it. The key is kept for 7 days; past that a resubmission files a new issue. 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

NameRequiredDescriptionDefault
fixYesHow to fix it (required).
tagsNoComma-separated tags.
titleYesShort descriptive title.
domainYesDomain: devops, python, network, feishu, rag, fanuc, mcp, etc.
sourceNoSource: codex, claude-code, cursor, dsh, curl, cindy, etc.
problemYesWhat failed (required).
root_causeYesWhy it failed (required).
contributorNoOptional: contributor identity (GitHub username, agent name, or email). Included in lesson frontmatter for attribution.
verificationNoHow to confirm the fix works.

Output Schema

NameRequiredDescriptionDefault
errorNo
statusNo
lesson_idNo
submittedNo
quality_scoreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / source / description
      Previous value: -"Source: codex, claude-code, cursor, etc."New value: +"Source: codex, claude-code, cursor, dsh, curl, cindy, etc."
  2. Changed1 schema field changed
    • addedInput schema / properties / contributor
      Added value: +{
      +  "description": "Optional: contributor identity (GitHub username, agent name, or email). Included in lesson frontmatter for attribution.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "type": "string"
      +    },
      +    "lesson_id": {
      +      "type": "string"
      +    },
      +    "quality_score": {
      +      "type": "number"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "submitted": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and the description adds substantial context beyond them: Bearer auth requirement, gate/lint/review pipeline, git-versioned artifact, immutability after merge, an 8 s outbound GitHub deadline that can time out after the issue exists, and duplicate-collapsing via a 7-day dedup_key. That is rich disclosure, but the 7-day idempotency window sits in tension with idempotentHint=false, and the description neither acknowledges nor reconciles the mismatch explicitly, keeping it below the top of the scale.

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

Conciseness4/5

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

Front-loaded bracketed classification, then purpose, then alternatives, then returns, then failure/retry semantics, then an example — a sensible ordering with no filler sentences. It is on the long side and the 'Returns:' block restates much of what the declared output schema already conveys, which costs a point.

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

Completeness5/5

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

For a 9-parameter mutation with auth, dedup, async review and timeout edge cases, the description covers what an agent needs: who can call it, what it produces, what happens on duplicate or refusal, how to poll status, and what happens after 7 days. Nothing operationally relevant is left for the agent to guess.

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

Parameters4/5

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

Schema coverage is already 100%, so the schema carries the field-by-field burden and baseline would be 3. The description goes beyond that by tying the required parameters to the workflow (they feed the dedup_key derivation) and by supplying a concrete filled-in example call, which clarifies expected brevity of values.

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

Purpose5/5

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

States a specific verb and resource ('Submit a complete, structured failure lesson') and enumerates the payload fields (title/domain/problem/root_cause/fix) so the agent knows exactly what this tool expects. It immediately distinguishes itself from the sibling open-report path by labeling itself the 'validated author' route vs. misakanet_submit_intake.

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

Usage Guidelines5/5

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

Explicit routing rules: use this when you have a complete structured lesson and a Bearer token; use misakanet_submit_intake when you only have a partial failure description and no auth. It also names misakanet_me_inbox(dedup_key=<key>) as the way to check review status without re-submitting, and states there are deliberately no update/delete tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources