Skip to main content
Glama

Citation-graph neighbors

get_citation_graph
Read-onlyIdempotent

Given one opinion id, lists the cases it cites (direction=authorities) or the cases that cite it (direction=cited_by). Textual reference only: an edge means one opinion’s text names the other; it is not treatment, agreement, validity or "good law", and not a Shepard’s or KeyCite result. At most 1000 references are examined; those resolving to a loaded case are shown (most-cited first), the rest are counted in out_of_corpus_count, and examined_capped=true marks a floor. depth is how often the citing text names the case, not importance. References are per opinion: same_case_opinions gives each opinion of a record its own count and most_references_on names one carrying more (Miranda v. Arizona: record 107252’s combined text 49; lead opinion 9423233, 57,482). also_carried_by names other records sharing the reporter citation, each with its own count; counts are never pooled. The reference table misses citations in the stored text: 22.7% of references on a preregistered sample had no edge (95% interval 18.9-27.0%, n=405), concentrated in some cases, so a thin cited_by list is not evidence a case is rarely cited. with_passages=true (cited_by only) adds citing_passage, the citing court’s own sentence copied verbatim, found only where the citing opinion repeats the reporter citation (first occurrence; at most 10 opinions a request), with passage_note and passage_error. Case law in this mirror ends 2026-09-30 (exact scan of all 10,174,547 case records): a thin or empty result for recent authority means the collection ends there, not that no such case exists. Every response carries a "note" and a coverage_note. The describe_sources tool returns this tool’s full coverage statement.

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": {
      "id": "<id>"
    },
    "name": "get_citation_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesseed OPINION id (from a search_case_names/search_opinion_text/search_by_concept/find_similar_opinions result opinion_id)
limitNomax in-corpus results, 1-50 (default 25)
directionNoauthorities = cases THIS opinion cites; cited_by = cases that cite THIS one (default cited_by)
with_passagesNocited_by only: also return each citing court's verbatim sentence around the citation (citing_passage). Adds passage_note, passages_scanned, passages_found, and passage_error when the pass fails or the direction does not support it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

With readOnlyHint/idempotentHint already covering safety, the description goes well beyond: a 1000-reference examination cap, out_of_corpus_count, examined_capped as a floor, depth meaning token frequency not importance, per-opinion rather than pooled counts, a 10-opinions-per-request passage limit, and the 2026-09-30 corpus boundary. It even quantifies a known recall gap (22.7%, 95% interval 18.9-27.0%, n=405) so an agent won't misread a thin cited_by list as evidence of low citation.

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

Conciseness3/5

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

The lead sentence is correctly front-loaded, but the body is a dense wall of caveats carrying statistics, a Miranda v. Arizona worked example with two id/count pairs, and a confidence interval — detail that the description itself says describe_sources holds in full. The substance is valuable but several clauses could be deferred to that tool without losing call correctness.

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?

There is no output schema, so the description must carry return-value semantics and it does: out_of_corpus_count, examined_capped, depth, same_case_opinions, also_carried_by, citing_passage with passage_note/passage_error, plus the 'note' and 'coverage_note' present on every response. For a graph-traversal tool with known recall limits, nothing an agent needs in order to interpret results is missing.

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 100%, so the baseline is 3, and the description earns an extra point by adding meaning the schema lacks: the passage pass only finds sentences where the citing opinion repeats the reporter citation, takes the first occurrence, and is bounded at 10 opinions per request. Direction and with_passages definitions largely restate the schema, and limit/id format constraints stay with the 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?

Opens with a specific verb and resource: 'Given one opinion id, lists the cases it cites ... or the cases that cite it,' and immediately binds the two modes to the direction enum values. It also carves itself away from the nearest sibling by stating it 'is not treatment, agreement, validity or "good law", and not a Shepard's or KeyCite result' — that is precisely the boundary with get_negative_history.

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

Usage Guidelines4/5

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

Usage is clearly framed: direction selects outgoing vs incoming edges, with_passages is restricted to cited_by, and describe_sources is named for the full coverage statement. It states what the tool is not (treatment/validity), which implicitly routes treatment questions elsewhere, but it never names get_negative_history as the alternative to use for that, leaving one inference step.

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