Skip to main content
Glama
Case Chronology MCP Server

Case Chronology MCP Server

by tolafad

search_documents

Search all case documents for lines containing every word of a query to locate names, amounts, or phrases. Returns matching snippets with page and line references for follow-up reading.

Instructions

Find lines containing every word of the query (literal, case-insensitive) in all documents.

Use this to locate where a name, amount or phrase appears. Returns {results: [{doc_id,
snippet, line}], total_matches, truncated}; `line` is like "L12" or "p1 L4" for PDFs. Then
use read_document to see the context.

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": {
      "query": "<query>"
    },
    "name": "search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWords to find; all must match.
max_resultsNoMaximum hits to return.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and explains key behavior: matching is literal, case-insensitive, requires every word, spans all documents, and can be truncated. It does not mention permissions or ordering, but the core search semantics and truncation signal are disclosed.

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 two tight sentences, front-loads the matching rule and scope, then gives the result shape and next step. No sentence is redundant or vague.

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?

Given high schema coverage and an output schema, the description supplies the essential search semantics, return-shape hint, truncation notice, and follow-up action. An agent has enough information to invoke it correctly and interpret the results.

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 schema already documents both parameters. The description still adds meaningful query semantics by specifying literal, case-insensitive, all-words-must-match behavior, though it does not clarify whether max_results applies per document or overall.

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 uses a specific verb and resource: find lines containing every query word in all documents. It clearly distinguishes the tool from read_document by framing it as a locator and naming read_document as the follow-up for context.

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?

It states when to use the tool, such as locating where a name, amount, or phrase appears, and explicitly directs the agent to read_document afterward. It does not discuss when not to use search versus list_documents, but the usage context is clear.

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

Deploy Server

Other Tools