Skip to main content
Glama
theYahia

@theyahia/casebook-mcp

by theYahia

@theyahia/casebook-mcp

MCP server for Casebook/Pravo.ru -- Russian legal case search, court documents, participant lookup, judge statistics, and hearing schedules.

Tools

Tool

Description

search_cases

Search cases by query, INN, court, dates, type

get_case

Get case details and participants

get_case_events

Get hearing schedule and decisions

search_participants

Search participants by name or INN

get_participant_cases

Get all cases for a participant

get_judge_stats

Get judge case statistics

get_court_info

Get court information

get_document

Get court document by ID

Related MCP server: law-search-mcp

Install

Claude Desktop / Cline / Cursor

{
  "mcpServers": {
    "casebook": {
      "command": "npx",
      "args": ["-y", "@theyahia/casebook-mcp"],
      "env": { "CASEBOOK_TOKEN": "<YOUR_TOKEN>" }
    }
  }
}

Environment Variables

Variable

Required

Description

CASEBOOK_TOKEN

Yes

API token from Casebook

Demo Prompts

  • "Search for bankruptcy cases involving INN 7707083893"

  • "Get details for case A40-12345/2026"

  • "Show hearing schedule for case A40-12345/2026"

  • "Find all cases where Sberbank is a participant"

  • "Get case statistics for judge Ivanov"

  • "Show court info for the Moscow Arbitration Court"

  • "Get document doc-789 from case A40-12345/2026"

  • "Search for contract dispute cases from 2025"

API Reference

Casebook API documentation: https://casebook.ru/

License

MIT

Available Tools

8 tools
get_caseA

Get case details, documents, and participants by case ID.

ParametersJSON Schema
NameRequiredDescriptionDefault
case_idYesCase ID

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries full burden. It states the tool retrieves data but does not explicitly confirm it is read-only or disclose any side effects. For a simple get, this is adequate but not exceptional.

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, well-structured sentence that immediately communicates the tool's purpose. No extraneous text, every word is necessary.

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?

The tool is simple with one parameter. The description lists what is returned (details, documents, participants) but does not specify the structure or format. Given no output schema, a bit more detail on the response would be useful, but it is mostly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with one parameter described as 'Case ID'. The description adds no new semantic meaning beyond the schema, merely restating that it fetches by case ID. Baseline for high coverage is 3, but the description fails to add value.

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 clearly specifies the verb 'Get' and the resources 'case details, documents, and participants'. It identifies the input ('by case ID') and distinguishes from siblings like get_document and get_case_events.

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?

The description implies usage when you have a case ID, but does not provide explicit guidance on when to use this tool versus alternatives like get_case_events or get_document. No exclusions are mentioned.

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

get_case_eventsA

Get hearing schedule and decisions for a case.

ParametersJSON Schema
NameRequiredDescriptionDefault
case_idYesCase ID

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description implies a read-only operation but does not disclose any specific behavioral traits such as required permissions, rate limits, or error conditions. The description is adequate but minimal.

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?

The description is a single sentence with no unnecessary words. It is front-loaded and efficiently conveys the core purpose.

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

Completeness3/5

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

The tool is simple with one parameter and no output schema or nested objects. The description is brief but lacks details on the return format, possible filters, or date ranges, making it somewhat incomplete.

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% for the single parameter 'case_id', which is described as 'Case ID'. The tool description does not add additional meaning beyond the schema, so 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?

The description clearly states the tool retrieves 'hearing schedule and decisions for a case', specifying the verb 'Get' and distinct resource. It differentiates from siblings like get_case (case details) and get_document (documents).

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?

No guidance on when to use this tool versus alternatives. No mention of prerequisites, exclusions, or when not to use it.

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

get_court_infoB

Get court information by court ID.

ParametersJSON Schema
NameRequiredDescriptionDefault
court_idYesCourt ID

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description bears full responsibility for revealing behavioral traits. It does not mention whether the operation is read-only, what permissions might be needed, or any side effects. The minimal description leaves critical behavioral aspects undisclosed.

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?

The description is a single, clear sentence that is front-loaded and contains no superfluous words. It efficiently communicates the tool's purpose without any waste.

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

Completeness3/5

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

For a simple tool with one required parameter and no output schema, the description is minimally adequate. However, it could benefit from mentioning what specific court information is returned (e.g., name, address, location) to enhance completeness.

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%, with the 'court_id' parameter having a basic description ('Court ID'). The tool description adds no further meaning beyond what the schema already provides, warranting the baseline score of 3.

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 clearly states the action ('Get'), the resource ('court information'), and the means ('by court ID'). It unambiguously distinguishes from sibling tools that focus on cases, documents, or judges.

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?

No guidance is provided on when to use this tool versus alternatives, nor any exclusions or prerequisites. The description only defines the tool's basic function without contextualizing its role among siblings like search_cases or get_case.

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

get_documentC

Get a court document by document ID.

ParametersJSON Schema
NameRequiredDescriptionDefault
document_idYesDocument ID

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries full responsibility. It only indicates a read operation ('Get') but fails to describe what the returned document contains, any size limits, or whether it is a metadata summary or full content.

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?

The description is a single sentence with no fluff. It is front-loaded and gets to the point quickly.

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

Completeness3/5

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

For a simple retrieval tool with one parameter and no output schema, the description is adequate but minimal. It does not specify the nature of the returned document (e.g., text, file, metadata), leaving some ambiguity for an AI agent.

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% with one parameter. The description adds the phrase 'by document ID' but does not explain formatting, expected values, or provide any additional semantics beyond the schema's own description.

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 clearly states the action (Get) and resource (court document) with the criterion (by document ID). It is specific but doesn't differentiate from sibling tools like get_case or get_case_events, which also retrieve by ID.

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?

No guidance on when to use this tool versus alternatives. There is no mention of prerequisites, exclusions, or specific contexts where this tool is appropriate.

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

get_judge_statsC

Get case statistics for a judge by name.

ParametersJSON Schema
NameRequiredDescriptionDefault
judge_nameYesJudge name to look up

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It only vaguely states 'case statistics' without specifying what statistics are returned, nor does it mention error handling, name matching rules, or data sensitivity. This is insufficient.

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?

The description is a single, concise sentence that immediately conveys the main purpose. It is front-loaded, though it could benefit from additional information about return values without losing conciseness.

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?

Given the tool's focus on statistics and the absence of an output schema, the description is incomplete. It fails to clarify what types of statistics are provided, how to handle multiple judges with the same name, or any aggregation details. Sibling tools like search_cases might be needed for context.

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% with a clear parameter description. The tool description adds 'by name' which reinforces the parameter's role but does not add substantial new meaning beyond what the schema provides.

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 clearly states the action (Get) and resource (case statistics for a judge). It is not a tautology and provides a specific purpose. However, it does not differentiate from sibling tools like get_case or search_cases.

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?

No guidance on when to use this tool versus alternatives. The description does not mention prerequisites, when not to use it, or suggest alternative tools for different needs.

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

get_participant_casesC

Get all cases for a participant by ID.

ParametersJSON Schema
NameRequiredDescriptionDefault
participant_idYesParticipant ID from search results

TDQS

C2.9/5.0
Behavior2/5

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

No annotations provided, so the description carries full burden. It only states the basic action, lacking details on side effects (none assumed), authorization, rate limits, or behavior on missing data. Minimal disclosure.

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?

Single sentence of 8 words with no fluff. Front-loaded with purpose. Could be slightly more informative without becoming verbose.

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?

No output schema and no description of return format. The tool returns a list but does not specify fields, pagination, or empty state. For a list-returning tool, the description is underinformative.

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% and the parameter description is present ('Participant ID from search results'). The tool description adds no further semantics beyond reinforcing 'by ID'. Baseline score of 3 is appropriate.

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 clearly states the verb 'Get' and resource 'cases for a participant' with the qualifier 'all' and by 'ID'. It distinguishes from sibling tools like get_case (single case) and search_cases (search).

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 description implies use when you have a participant ID, but does not explicitly state when to use this tool vs alternatives like search_cases or get_case. No when-not or alternative tools mentioned.

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

search_casesA

Search court cases by query, participant INN, court, dates, or case type.

ParametersJSON Schema
NameRequiredDescriptionDefault
courtNoCourt name or ID
queryNoText search query
date_toNoEnd date (YYYY-MM-DD)
case_typeNoCase type filter
date_fromNoStart date (YYYY-MM-DD)
participant_innNoINN of a case participant

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does not mention any side effects, rate limits, authentication requirements, or limitations. The tool is assumed to be a read operation, but this is not stated.

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?

The description is a single, concise sentence that front-loads the essential purpose. No wasted words.

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

Completeness3/5

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

For a search tool with 6 optional parameters and no output schema, the description is minimal. It does not explain return format, pagination, or ordering. While adequate for a basic search, it lacks completeness given the complexity and sibling tools.

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 baseline is 3. The description enumerates parameter categories (query, participant INN, court, dates, case type) but adds no additional semantics beyond what the schema already provides. Each parameter's description in the schema is sufficient.

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 'Search court cases by query, participant INN, court, dates, or case type' clearly states the action (search) and the resource (court cases), distinguishing it from siblings like get_case (single case retrieval) and search_participants (people search).

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?

The description lists search criteria but provides no explicit guidance on when to use this tool versus alternatives (e.g., get_case for a known case ID, search_participants for participants). The usage context is implied but not clearly stated.

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

search_participantsB

Search case participants by name or INN.

ParametersJSON Schema
NameRequiredDescriptionDefault
name_or_innYesParticipant name or INN

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It only states the search function, omitting details like idempotency, pagination, result format, or error handling (e.g., behavior when no results found).

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?

The description is very concise at two sentences with no wasted words. However, it could be slightly more informative without harming conciseness.

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

Completeness3/5

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

For a simple search tool with one parameter and no output schema, the description is minimally adequate but lacks details on output behavior (e.g., what fields are returned) or edge cases.

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% with a description for the single parameter. The description adds no additional meaning beyond what the schema provides; it simply restates the parameter's purpose.

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 clearly states the verb ('Search') and resource ('case participants') along with the specific search criteria ('by name or INN'). It distinguishes from sibling tools like search_cases and get_participant_cases.

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?

No guidance is provided on when to use this tool versus alternatives such as get_participant_cases. There are no exclusions or context for appropriate usage.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 8 tool updatesv1.0.1
    • First observedget_case
    • First observedget_case_events
    • First observedget_court_info
    • First observedget_document
    • First observedget_judge_stats
    • First observedget_participant_cases
    • First observedsearch_cases
    • First observedsearch_participants

TDQS

A3.6/5.0
Disambiguation5/5

Each tool targets a distinct resource or aspect (case details, events, court info, documents, judge stats, participant cases, search). No overlap; all clearly differentiated by resource and query type.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern with verbs 'get' or 'search'. No mixing of styles or irregular naming.

Tool Count5/5

8 tools cover the core query operations for a court case system. The count is well-scoped without being excessive or insufficient.

Completeness4/5

Covers major query needs: cases, events, documents, courts, judges, participants. Minor gaps like listing all courts or judges are absent but not critical for typical read-only use.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables searching and retrieving Korean Supreme Court precedents from the law.go.kr Open API, with support for keyword search and detailed judgment text.
    2
    -
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI assistants to search and retrieve data about Russian companies, entrepreneurs, and individuals via the Checko.ru API, including financial reports, legal cases, and bankruptcy information.
    12
    13
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/casebook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server