Skip to main content
Glama

Find how similar cases were decided

find_similar_cases
Read-only

Provide a nonempty claim_types, protected_classes or law_ids array, or a value for employer_name, industry or state. Given the facts of an employment situation — claim types, protected class, employer, state — analyze how similar real cases in the corpus were decided. Returns the aggregate plaintiff win rate, settlement rate, typical damages range, the topics courts discussed most in opinions plaintiffs won vs. lost, and a few representative example cases. Win and loss counts come from stored outcome labels, which include older automated labels coded by the side of the case caption, so they are worded as plaintiff and defendant. Counts are returned at three levels (nationwide, the federal courts of the state's region, and the state) with a detailed breakdown for one level: who won, award amounts, what happened at each stage, and topics. Every figure is labeled with the level it describes. A level with few opinions returns counts without a win rate. Each example says what happened and why it matched. Topic rows record what opinions discussed, not what courts found. These are educational statistics from published opinions: a historical percentage is not any one person’s probability of winning, and the results are not a prediction or legal advice. In structured stages: won and wonPct count opinions the plaintiff won in whole or in part (wonPct leaves rulings sent back out of its base), and sentBack counts rulings sent back to a lower court. wentForward and wentForwardPct include rulings sent back to a lower court and are kept for compatibility.

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

Input Schema

NameRequiredDescriptionDefault
levelNoWhich level the detailed breakdown and examples describe: "national" (default), "circuit" (federal courts of the state's region), or "state". All three levels' counts are returned either way.national
stateNoUS state name or postal abbreviation where the situation arose, e.g. "Florida" or "FL".
law_idsNoRelated law ids, federal or state, e.g. ["title-vii","adea","ada","fmla","flsa","fl-fcra","ca-feha"].
industryNoEmployer industry, e.g. "healthcare", "retail", "transportation".
claim_typesNoClaim types alleged, e.g. ["retaliation","wrongful termination","discrimination","harassment"]. The single highest-value signal.
employer_nameNoEmployer / defendant name, e.g. "Union Pacific Railroad". Used for a fuzzy match.
narrow_to_lawsNoOnly count opinions that mention one of law_ids (a federal law or its state analogue). Default false: every opinion sharing the claim type, under any law.
protected_classesNoProtected classes at issue, e.g. ["sex","race","age","disability","pregnancy","national_origin"].

Output Schema

NameRequiredDescriptionDefault
levelNoThe level (nationwide, regional or state) given in detail.
awardsNoRecorded award amounts for the detailed level.
cohortNoThe comparison group and its size.
levelsNoCounts at the nationwide, regional and state levels.
stagesNoOutcomes by procedural stage.
criteriaNoThe situation facts used for matching.
examplesNoRepresentative cases and why each matched.
_attributionNoSource and disclaimer for this result: Workers' Rights, its URL, the attribution line, and that the result is educational information, not legal advice.
topics_levelNoThe level the topic rows describe.
damages_rangeNoTypical recorded damages range, when available.
evidence_noteNoWhat these statistics do and do not establish.
outcome_statsNoWin, settlement and other outcome counts and rates.
cohort_detailsNoHow the cohort was assembled.
interpretationNoPlain-language reading of the results.
losing_factorsNoTopics most discussed in opinions the worker lost.
winning_factorsNoTopics most discussed in opinions the worker won.
total_comparableNoComparable opinions found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / description
      Added value: +"Provide a nonempty claim_types, protected_classes or law_ids array, or a value for employer_name, industry or state."
    • addedInput schema / minProperties
      Added value: +1
    • changedInput schema / properties / claim_types / description
      Previous value: -"Claim types alleged, snake_case, e.g. [\"retaliation\",\"wrongful_termination\",\"discrimination\",\"harassment\"]. The single highest-value signal."New value: +"Claim types alleged, e.g. [\"retaliation\",\"wrongful termination\",\"discrimination\",\"harassment\"]. The single highest-value signal."
    • changedInput schema / properties / state / description
      Previous value: -"Two-letter US state code the situation arose in, e.g. \"FL\", \"CA\"."New value: +"US state name or postal abbreviation where the situation arose, e.g. \"Florida\" or \"FL\"."
    • addedInput schema / properties / state / maxLength
      Added value: +40
    • removedInput schema / properties / state / pattern
      Removed value: -"^[A-Za-z]{2}$"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "_attribution": {
      +      "description": "Source and disclaimer for this result: Workers' Rights, its URL, the attribution line, and that the result is educational information, not legal advice.",
      +      "properties": {
      +        "disclaimer": {
      +          "type": "string"
      +        },
      +        "line": {
      +          "type": "string"
      +        },
      +        "source": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "awards": {
      +      "description": "Recorded award amounts for the detailed level.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "cohort": {
      +      "description": "The comparison group and its size.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "cohort_details": {
      +      "description": "How the cohort was assembled.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "criteria": {
      +      "description": "The situation facts used for matching.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "damages_range": {
      +      "description": "Typical recorded damages range, when available.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "evidence_note": {
      +      "description": "What these statistics do and do not establish.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "examples": {
      +      "description": "Representative cases and why each matched.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "interpretation": {
      +      "description": "Plain-language reading of the results.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "level": {
      +      "description": "The level (nationwide, regional or state) given in detail.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "levels": {
      +      "description": "Counts at the nationwide, regional and state levels.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "losing_factors": {
      +      "description": "Topics most discussed in opinions the worker lost.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "outcome_stats": {
      +      "description": "Win, settlement and other outcome counts and rates.",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "stages": {
      +      "description": "Outcomes by procedural stage.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "topics_level": {
      +      "description": "The level the topic rows describe.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "total_comparable": {
      +      "description": "Comparable opinions found.",
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "winning_factors": {
      +      "description": "Topics most discussed in opinions the worker won.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / law_ids / description
      Previous value: -"Related law ids, e.g. [\"title-vii\",\"adea\",\"ada\",\"fmla\",\"flsa\"]."New value: +"Related law ids, federal or state, e.g. [\"title-vii\",\"adea\",\"ada\",\"fmla\",\"flsa\",\"fl-fcra\",\"ca-feha\"]."
    • addedInput schema / properties / level
      Added value: +{
      +  "default": "national",
      +  "description": "Which level the detailed breakdown and examples describe: \"national\" (default), \"circuit\" (federal courts of the state's region), or \"state\". All three levels' counts are returned either way.",
      +  "enum": [
      +    "national",
      +    "circuit",
      +    "state"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / narrow_to_laws
      Added value: +{
      +  "default": false,
      +  "description": "Only count opinions that mention one of law_ids (a federal law or its state analogue). Default false: every opinion sharing the claim type, under any law.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  5. Changed18 schema fields changed
    • removedInput schema / properties / claim_types / default
      Removed value: -[]
    • addedInput schema / properties / claim_types / items / maxLength
      Added value: +80
    • addedInput schema / properties / claim_types / items / minLength
      Added value: +1
    • addedInput schema / properties / claim_types / maxItems
      Added value: +20
    • addedInput schema / properties / employer_name / minLength
      Added value: +1
    • changedInput schema / properties / industry / maxLength
      Previous value: -60New value: +80
    • addedInput schema / properties / industry / minLength
      Added value: +1
    • removedInput schema / properties / law_ids / default
      Removed value: -[]
    • addedInput schema / properties / law_ids / items / maxLength
      Added value: +80
    • addedInput schema / properties / law_ids / items / minLength
      Added value: +1
    • addedInput schema / properties / law_ids / maxItems
      Added value: +20
    • removedInput schema / properties / protected_classes / default
      Removed value: -[]
    • addedInput schema / properties / protected_classes / items / maxLength
      Added value: +80
    • addedInput schema / properties / protected_classes / items / minLength
      Added value: +1
    • addedInput schema / properties / protected_classes / maxItems
      Added value: +20
    • removedInput schema / properties / state / maxLength
      Removed value: -2
    • removedInput schema / properties / state / minLength
      Removed value: -2
    • addedInput schema / properties / state / pattern
      Added value: +"^[A-Za-z]{2}$"
  6. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / required
      Removed value: -[
      -  "claim_types",
      -  "protected_classes",
      -  "law_ids"
      -]
  7. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses that win/loss labels come from stored — including older automated, caption-side-coded — outcomes, that counts are returned at three levels, that a low-volume level returns counts without a win rate, and that topic rows describe discussion rather than findings. These are exactly the caveats an agent needs. It stops short of describing latency, caching, or ordering, keeping it at a strong 4.

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?

It is front-loaded with the input requirement, which is useful, but the body is a dense block of long sentences mixing return values, labeling provenance, statistical disclaimers, and stage-field definitions. With an output schema present, the won/wonPct/sentBack/wentForward exposition is partly duplicative and could be tightened.

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 an 8-parameter analytical tool with rich caveats, the description covers returns, tiering, edge cases (small-sample levels), and interpretation limits (not a prediction, not legal advice). What remains unstated — ordering of example cases or pagination — is minor given the output schema exists.

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 every parameter is already documented in the schema, including the note that claim_types is the highest-value signal. The description adds little parameter-level meaning beyond restating the nonempty-filter requirement, so baseline 3 applies.

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?

The description names a specific analytical verb and resource — "analyze how similar real cases in the corpus were decided" — and enumerates the exact outputs (win rate, settlement rate, damages range, topics, example cases). This clearly distinguishes it from retrieval-style siblings such as search_rulings and from corpus-wide stats like get_corpus_stats.

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

Usage Guidelines3/5

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

It states the input gate clearly (at least one of claim_types, protected_classes, law_ids, employer_name, industry, state) and implies the tool is for assessing an existing employment situation. However, it never says when to prefer this over search_rulings or explain_my_rights, and gives no exclusion criteria, leaving the routing decision to inference.

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