Skip to main content
Glama

Similar opinions (keyword overlap)

find_similar_opinions
Read-onlyIdempotent

Given one opinion id, returns other opinions whose wording overlaps it, ranked by keyword match (BM25 more-like-this). Keyword overlap only: not a finding that the neighbors address the same issue, reach the same result or remain good law, and not complete. The seed opinion and its own case are excluded. 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. Responses carry body_as_of, body_pending (state, exact count, read_at) and body_note, which say when the stored opinion text is older than the case records while a refresh is written; a count that could not be read makes an empty result inconclusive. A cold index may answer 503 briefly; the server retries once. Every response carries a "note" stating that response’s source and coverage limits.

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

Input Schema

NameRequiredDescriptionDefault
idYesseed OPINION id (from a search_case_names/search_opinion_text/search_by_concept result opinion_id)
limitNomax results, 1-20 (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the read-only/idempotent annotations: discloses that the seed opinion and its own case are excluded, that collection coverage ends 2026-09-30 (with exact record count) so thin recent results reflect collection bounds rather than absence of authority, and that body_as_of/body_pending/body_note plus a per-response 'note' describe staleness of stored text. Also flags a cold-index 503 with a single server retry, which is exactly the operational context annotations cannot carry.

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 one-line purpose, then ordered caveats (exclusion, scope limits, coverage end, staleness fields, 503 behavior). Dense but nearly every clause carries operational meaning; it could be tightened by merging the body_* and 'note' sentences.

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?

With no output schema, the description still explains the response envelope (body_as_of, body_pending state/count/read_at, body_note, per-response note) and interprets failure/thinness modes (503 cold index, unreadable count making empty results inconclusive). That is enough for an agent to call and interpret results correctly.

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%, so the baseline is 3; both id and limit are already documented in the schema, including the source tools for opinion_id and the 1-20 bound. The description adds only marginal meaning (that the seed is excluded from results), and says nothing further about how limit affects ranking or truncation.

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+resource with scope: 'Given one opinion id, returns other opinions whose wording overlaps it, ranked by keyword match (BM25 more-like-this).' This clearly separates it from the search_* siblings (which take query text, not a seed id) and from citation-graph/negative-history tools by naming the relatedness mechanism explicitly.

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?

Implies the usage condition well (you already hold an opinion_id and want keyword-similar neighbors) and supplies a strong negative guideline: results are keyword overlap only, not evidence of same issue, same result, or good law. It does not explicitly route the agent to a named alternative such as get_citation_graph or search_by_concept for substantive relatedness, so it stops short of a full when/when-not-with-alternatives statement.

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