Skip to main content
Glama

Lessons from merged fixes

yof_lessons
Read-onlyIdempotent

List short lessons from Patch fixes that were merged: what was fixed, in which pull request, whether yof's next check confirmed it, and how to avoid it next time. Use it before writing similar code so the same problem does not come back; use yof_patch_status for pull requests still open. Reads stored data only (up to 50 merged pull requests, most recently opened first); a fix that yof's re-scan did not confirm is never reported as fixed. Returns lessons (repository, pull_request, merged, rule, note, avoid_next_time); an empty list means no Patch fix has been merged yet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yof_lessons"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idNoOne app's id, from yof_apps. Default: every app.

Output Schema

NameRequiredDescriptionDefault
errorNoOnly on a failed call (isError true): what went wrong.
lessonsNoMerged Patch fixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / app_id / description
      Previous value: -"One app's id (from yof_apps)."New value: +"One app's id, from yof_apps. Default: every app."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "description": "Only on a failed call (isError true): what went wrong.",
      +      "type": "string"
      +    },
      +    "lessons": {
      +      "description": "Merged Patch fixes.",
      +      "items": {
      +        "properties": {
      +          "avoid_next_time": {
      +            "description": "One sentence on avoiding it.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "merged": {
      +            "description": "ISO time.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "note": {
      +            "description": "What was fixed and whether the next check confirmed it.",
      +            "type": "string"
      +          },
      +          "pull_request": {
      +            "description": "Pull request number.",
      +            "type": "integer"
      +          },
      +          "repository": {
      +            "description": "owner/name on GitHub.",
      +            "type": "string"
      +          },
      +          "rule": {
      +            "description": "Rule id.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, but the description adds information annotations cannot: it reads stored data only, is capped at 50 merged pull requests ordered by most recently opened, and guarantees that a fix not confirmed by yof's re-scan is never reported as fixed. That last clause is a meaningful trust semantic an agent could otherwise get wrong.

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?

Three sentences, front-loaded with purpose, then usage, then behavior — a sensible order with no filler. The trailing enumeration of return fields is partly redundant because an output schema exists, which is the only thing keeping this from a top score.

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 one-parameter read tool with full schema coverage, rich annotations, and an output schema, nothing needed for correct invocation is missing: scope, cap, ordering, empty-result meaning, and the confirmation guarantee are all covered.

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?

There is a single optional parameter and schema description coverage is 100%, with the app_id pattern, provenance ('from yof_apps') and the 'Default: every app' behavior all documented in the schema. The description adds nothing about scoping beyond what the schema already says, so the baseline 3 applies.

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?

The description opens with a specific verb and resource — 'List short lessons from Patch fixes that were merged' — and immediately enumerates the dimensions returned (what was fixed, which PR, confirmation status, how to avoid). That is enough for an agent to distinguish it from yof_patch_status without opening either schema.

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?

It gives an explicit trigger ('Use it before writing similar code so the same problem does not come back') and names the alternative for a different condition ('use yof_patch_status for pull requests still open'). The when-to-use and the routing rule are both stated, not implied.

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.