Skip to main content
Glama

AI Source of Truth Evidence Rooms

Search a case

search_case
Read-only

Search the text taken from a case's files (text files and PDF text layers, and on Team and Enterprise OCR of images and scans and transcription of audio and video where this server has them set up). Each hit names the version and gives short snippets; not_searchable lists versions with no text yet and why. Logged with a keyed hash of the query (an HMAC under a key derived from the case key), never the query itself. Refused when your access is redacted only. Scope: cases:read. REST twin: GET /api/cases/:id/search. Errors: unauthorized, insufficient_scope, not_found, forbidden, consent_required, validation_error, payment_required.

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": {
      "case_id": "<case_id>",
      "q": "<q>"
    },
    "name": "search_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesThe words to find, matched as typed, ignoring case.
case_idYesThe case id (cas_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses the return shape (each hit names a version and gives short snippets), the not_searchable list and why versions appear there, the logging policy stating that a keyed HMAC of the query is recorded rather than the query itself, the refusal condition, the required scope, and a full error set. None of this is inferable from structured fields, and nothing contradicts the annotations.

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 front-loaded, with the searchable-content scope first, followed by result shape, then operational caveats, and it wastes no whole sentences. It is dense and the error enumeration is compact rather than prose, though the parenthetical corpus description is slightly run-on.

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?

No output schema exists, yet the description explains hits, snippet behavior, and the not_searchable structure; it also covers scope, errors, and privacy behavior. For a two-parameter read tool, this is sufficient for an agent to call it correctly and interpret the response.

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 the meanings of q and case_id are already documented in the schema. The description adds context about what the text corpus is and that the query is logged rather than stored verbatim, but it adds no matching syntax, format, or bounds beyond the schema, so the baseline of 3 applies.

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?

It states a specific verb and resource: searching the text extracted from a case's files, including text files, PDF text layers, OCR and transcriptions, and it makes the scope of that content explicit. The separation from adjacent tools is implicit, since get_case and list_items do not search text, but the description never names an alternative, so it does not quite reach a 5.

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 when to use the tool (finding words inside a case's extracted text) and gives one concrete usage condition: the request is refused when access is redacted only. However, it never says when to choose this tool over inspecting a case or listing items, and it gives no exclusions, so the guidance remains implied.

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