Skip to main content
Glama

Prepare the case record download

prepare_case_record
Idempotent

Prepare the current account-authorized case record for download. This explicit command may extract exhibit metadata and persist the export. It returns preparation and polling links; the existing manifest tool also handles preparation automatically.

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": {
      "caseId": "<caseId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "prepare_case_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseIdYesPeople's Court internal case identifier or human case number exactly as list_my_cases returned it.
idempotencyKeyYesCaller-generated key that makes a same-input retry of this write safe. A key is bound to one act and is invalid for a different act.

Output Schema

NameRequiredDescriptionDefault
toolYes
factsYes
noticeYes
requestIdNo
retrievedAtYes
authoritativeYes
schemaVersionYes
partyAuthoredFieldsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the write/idempotent/non-destructive profile, so the bar is lower, yet the description still adds real context: it may extract exhibit metadata, persists the export, and returns preparation and polling links. It doesn't state permission requirements or what happens on a repeated call, which the idempotencyKey schema partly covers.

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?

Three short sentences, front-loaded with the core action and followed by side effects and the return shape. No filler, though the trailing clause about the manifest tool is slightly tangential to the tool's own operation.

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?

An output schema exists, and the description still usefully previews that preparation and polling links come back. Coverage of side effects (metadata extraction, persisted export) and the automatic-preparation alternative makes it adequate for a low-parameter write tool.

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% and both parameters (caseId, idempotencyKey) are fully documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 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?

States a specific verb and resource ('Prepare the current account-authorized case record for download') and adds scope detail about extracting exhibit metadata and persisting the export. It gestures at the boundary with get_case_record_manifest, though it never states outright which tool to pick when both could apply.

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?

'This explicit command' implies the tool is for callers who want preparation triggered manually rather than implicitly. The closing clause notes the manifest tool handles preparation automatically, hinting at an alternative, but gives no explicit rule for when this tool is required versus when the manifest path suffices.

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