Skip to main content
Glama

briefcheck_check_citations

Verify path:line and path:start-end citations in Markdown PR reviews or GitHub PR comments to catch hallucinated line numbers before review output is trusted.

Instructions

Deterministically verify every path:line, path:start-end, path:line:col, and path#Lline diff citation in any free-form Markdown PR review (or existing GitHub PR comments when pr_comments is true).

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": "briefcheck_check_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
prNoGitHub PR reference (`owner/repo#123` or full PR URL).
diffNoRaw unified diff text.
authorNoOptional GitHub login filter when `pr_comments` is true (e.g. `coderabbitai[bot]`).
stagedNoWhen true, read staged git changes (`git diff --cached`).
git_baseNoLocal git base ref (e.g. `origin/main`) to diff against `git_head`.
git_headNoLocal git head ref when using `git_base` (defaults to `HEAD`).
repo_dirNoOptional local repository path for `git_base` or `staged`.
revisionNoOptional reviewed commit SHA override.
test_logNoOptional test log text to verify commit revision alignment.
pr_commentsNoWhen true with `pr`, fetch and audit existing comments/reviews on that PR.
review_textNoMarkdown review text whose citations should be verified.
strict_warningsNoFail when any warning is emitted.
require_citationsNoFail when zero diff citations are found in the review text.
strict_log_revisionNoTreat mismatched test-log revisions as errors instead of warnings.
allow_external_filesNoDowngrade citations to files absent from the diff from error to warning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Deterministically verify' implies a repeatable, read-only check, but the description never states that the tool has no side effects, never describes the result shape (no output schema exists), and never explains how warnings/errors surface even though parameters like `strict_warnings` and `require_citations` imply a diagnostics model.

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

Conciseness5/5

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

A single front-loaded sentence with zero filler; the verb, resource, accepted citation formats, and the one mode switch are all packed in without padding.

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

Completeness2/5

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

For a tool with 15 optional parameters, four distinct input sources, no annotations, and no output schema, the description is far too thin. Knowing how to invoke it correctly requires reconstructing the input-mode matrix and the failure/warning behavior entirely from parameter names.

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 all 15 parameters are already documented in the schema; the baseline of 3 applies. The description references only `pr_comments` and otherwise adds no meaning beyond the schema, leaving the relationships between mutually exclusive inputs (diff vs staged vs pr vs git_base/git_head) for the agent to infer.

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

Purpose4/5

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

The description names a specific verb ('verify'), a specific resource (diff citations in a free-form Markdown PR review), and enumerates the exact citation syntaxes accepted (`path:line`, `path:start-end`, `path:line:col`, `path#Lline`). It does not distinguish itself from siblings such as briefcheck_verify_report, which an agent could plausibly confuse with this tool.

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

Usage Guidelines2/5

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

The only usage hint is the parenthetical mode switch 'when `pr_comments` is true'. There is no guidance on when to choose this over briefcheck_annotate_diff, briefcheck_pack_review, or briefcheck_verify_report, and no guidance on which of the mutually exclusive input modes (diff text, staged, git_base/git_head, or pr) an agent should select in a given situation.

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