Skip to main content
Glama

who_understands

Read-onlyIdempotent

Identify which people understand the AI-written code at a given path and who committed to it recently, so you know who to ask or assign for review.

Instructions

List the people who have shown they understand the AI-written code at a path, and who committed to it lately.

When to use: the user asks who knows this code, who should review a change, or whom to ask. For a risk rating
use comprehension_risk.

Returns {"path", "understood_by" (person -> lines they passed a quiz, explanation or review on), "ai_lines",
"unread" (AI-written lines nobody has checked), "recent_committers": [{"name", "commits"}], "note"}.
Committing code is not counted as understanding it: only recorded quizzes, explanations and reviews are.

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": {
      "path": "<path>"
    },
    "name": "who_understands"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile or folder, relative to the repo root.
repoNoPath inside the git repository. Defaults to the server's working directory.

Output Schema

NameRequiredDescriptionDefault
noteYes
pathYes
unreadYesAI-written lines nobody has checked.
ai_linesYes
understood_byYesPerson -> AI-written lines they passed a quiz, explanation or review on.
recent_committersYesMost frequent recent committers. Committing is not understanding.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Committer": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "commits": {
      +          "title": "Commits",
      +          "type": "integer"
      +        },
      +        "name": {
      +          "title": "Name",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "commits"
      +      ],
      +      "title": "Committer",
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": true,
      +  "properties": {
      +    "ai_lines": {
      +      "title": "Ai Lines",
      +      "type": "integer"
      +    },
      +    "note": {
      +      "title": "Note",
      +      "type": "string"
      +    },
      +    "path": {
      +      "title": "Path",
      +      "type": "string"
      +    },
      +    "recent_committers": {
      +      "description": "Most frequent recent committers. Committing is not understanding.",
      +      "items": {
      +        "$ref": "#/$defs/Committer"
      +      },
      +      "title": "Recent Committers",
      +      "type": "array"
      +    },
      +    "understood_by": {
      +      "additionalProperties": {
      +        "type": "integer"
      +      },
      +      "description": "Person -> AI-written lines they passed a quiz, explanation or review on.",
      +      "title": "Understood By",
      +      "type": "object"
      +    },
      +    "unread": {
      +      "description": "AI-written lines nobody has checked.",
      +      "title": "Unread",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "path",
      +    "understood_by",
      +    "ai_lines",
      +    "unread",
      +    "recent_committers",
      +    "note"
      +  ],
      +  "title": "WhoUnderstands",
      +  "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?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds genuine non-obvious semantics: that only recorded quizzes, explanations and reviews count as understanding and that committing code does not. It does not define what 'lately' means for recent_committers, which is the remaining behavioral gap.

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 with the purpose, then when-to-use, then a returns block and a caveat — a sensible structure with no filler. The enumerated return keys largely duplicate the output schema, so that sentence buys less than the rest.

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?

With an output schema and full annotation coverage, the description is close to complete: purpose, usage, alternative routing and an important semantic caveat are all present. The one omission is the time window implied by 'lately' in recent_committers.

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 description coverage is 100% and the two parameters (path, repo) are already documented in the schema with defaults and relative-path semantics. The description only refers to 'at a path' without adding format, repo-override or error behavior beyond what the schema supplies. Baseline 3 is appropriate.

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: 'List the people who have shown they understand the AI-written code at a path', plus the scope qualifier about recent commits. This is clearly distinguishable from siblings like comprehension_risk and repo_status without opening any 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?

Gives an explicit 'When to use' trigger ('the user asks who knows this code, who should review a change, or whom to ask') and names the alternative for the adjacent need ('For a risk rating use comprehension_risk'). The boundary between this tool and the sibling is unambiguous.

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