Skip to main content
Glama

record_understanding

Records verified understanding of specified code lines in the shared ledger after a quiz, explanation, review, or pairing, with the earned score.

Instructions

Record in the shared ledger (.grokmap/ledger.jsonl) that a person showed they understand these lines.

When to use: only after the person actually answered a quiz from quiz_brief, explained the change back to you,
reviewed it, or paired on it, with the score they earned. Never record understanding because you or they wrote
the code, and never round scores up. This is the only tool that writes: it appends to the ledger and changes
nothing else. Lines edited later count as not understood again.

Returns {"recorded", "who", "score", "counts_as" (understood, or skimmed for low scores and reviews),
"files", "lines", "ledger" (its path), "reminder"}.

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": {
      "paths": "<paths>",
      "score": "<score>"
    },
    "name": "record_understanding"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoNoPerson who answered. Defaults to git user.email. Only set it when the user says who is answering.
noteNoOptional short note stored with the record.
repoNoPath inside the git repository. Defaults to the server's working directory.
pathsYesPaths exactly as quiz_brief returned them, e.g. 'src/a.py:10-40,55-60'.
scoreYesMean of the grades, 0 to 1.
methodNoquiz: answered questions. explain: explained the change back. review: only skimmed (counts as half).quiz

Output Schema

NameRequiredDescriptionDefault
whoYes
filesYes
linesYes
scoreYes
ledgerYesLedger file that was appended to.
recordedYesFiles recorded.
reminderYes
counts_asYesunderstood, or skimmed for low scores and reviews.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "counts_as": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "understood, or skimmed for low scores and reviews.",
      +      "title": "Counts As"
      +    },
      +    "files": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Files",
      +      "type": "array"
      +    },
      +    "ledger": {
      +      "description": "Ledger file that was appended to.",
      +      "title": "Ledger",
      +      "type": "string"
      +    },
      +    "lines": {
      +      "title": "Lines",
      +      "type": "integer"
      +    },
      +    "recorded": {
      +      "description": "Files recorded.",
      +      "title": "Recorded",
      +      "type": "integer"
      +    },
      +    "reminder": {
      +      "title": "Reminder",
      +      "type": "string"
      +    },
      +    "score": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Score"
      +    },
      +    "who": {
      +      "title": "Who",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "recorded",
      +    "who",
      +    "score",
      +    "counts_as",
      +    "lines",
      +    "files",
      +    "ledger",
      +    "reminder"
      +  ],
      +  "title": "RecordResult",
      +  "type": "object"
      +}
  2. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses the key write semantics: the tool only appends to the ledger and changes nothing else, and later edits invalidate the record. It leaves one annotation-relevant behavior unexplained — idempotentHint is false, so repeated calls would create duplicate entries, but the description never warns against re-recording.

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?

Well front-loaded: purpose, then when-to-use, then write semantics, then returns. The enumerated return-field list is largely redundant because an output schema exists, which costs some conciseness but does not obscure anything.

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

Completeness4/5

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

For a 6-parameter mutation tool this covers preconditions, write scope, invalidation rules, and return shape adequately. It could say more about behavior on repeated or conflicting records, but nothing essential for a correct first call is missing.

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?

Schema coverage is 100%, so the parameters are already documented; the description mainly reinforces the score semantics ('the score they earned', no rounding) and explains that low scores or reviews map to 'skimmed' in counts_as. That adds some meaning but stays at the baseline for a fully documented schema.

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 ('Record in the shared ledger ... that a person showed they understand these lines') plus the exact storage location (.grokmap/ledger.jsonl). It is clearly distinguishable from quiz_brief, who_understands, and comprehension_risk because it is the writing side of the comprehension loop.

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?

Gives explicit preconditions (only after a quiz from quiz_brief, an explain-back, a review, or pairing) and explicit exclusions ('never record understanding because you or they wrote the code, and never round scores up'). The agent is told both when and when not to call it.

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