Skip to main content
Glama

AI Source of Truth Evidence Rooms

Set or release a legal hold

set_legal_hold

Set (on: true) or release (on: false) a legal hold on a case, with a reason. Only for an owner or admin of the case's organization, or an agent acting for one. Logged. While a hold is on, nothing in the case can be erased and it cannot be closed. Scope: cases:write. REST twin: POST /api/cases/:id/legal-hold. Errors: unauthorized, insufficient_scope, not_found, forbidden, consent_required, read_only, validation_error, conflict.

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>",
      "on": "<on>",
      "reason": "<reason>"
    },
    "name": "set_legal_hold"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYes
reasonYesWhy the hold is set or released. Goes into the access log.
case_idYesThe case id (cas_...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, closed-world mutation; the description goes far beyond that by disclosing the effective consequences ('nothing in the case can be erased and it cannot be closed'), that the action is logged with the reason, the required scope (cases:write), the REST twin, and the full enumerated error set. That is exactly the behavioral context annotations cannot carry.

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?

Dense but front-loaded: verb/toggle semantics first, then authorization, then side effects, then scope, REST twin, and errors. Every clause carries operational information, and the parenthetical toggle notation is an efficient compression of the parameter contract.

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 a mutating, permission-gated tool with no output schema, the definition covers authorization, side effects, logging, scope, and failure modes. The only omission is what a successful call returns, which is a minor gap since no output schema exists to compensate.

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 67%, with the gap being the bare boolean 'on'. The description fills precisely that gap by defining on: true as setting and on: false as releasing, which is the single most important semantic an agent needs. It adds little else about case_id or reason beyond what the schema already documents.

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 verb pair and resource ('Set (on: true) or release (on: false) a legal hold on a case') and even encodes the toggle semantics inline, so an agent knows exactly what the tool does. No sibling in the catalog performs legal-hold operations, so there is no ambiguity to resolve.

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 the authorization precondition clearly: only an owner or admin of the case's organization, or an agent acting for one. That is real when-to-use context, but it stops short of naming exclusions or an alternative path (e.g., what to do if unauthorized), so it is clear context rather than full routing guidance.

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