Skip to main content
Glama

law_prepare_answer

At the explicit request of the user, repeat between 1 and 12 earlier law_ask or law_process_run calls, compare their replayControl strictly, and prepare a non-public frozen document for 24 hours. The client never supplies the machine answer: the server obtains it only by executing afresh. A divergence in any input, in the law, in a resource, in the server code, in the engine library or in the result rejects the document as a whole.

Input Schema

NameRequiredDescriptionDefault
languageNo
questionYes
assistantNo
calculationsNo
producerRunsNoRuns of registered producers with control/0.2; mutually exclusive with calculations.
documentVersionNoVersion of the immutable document; 0.1 is kept for transitional compatibility, 0.2 includes all native results and the common reader.

Output Schema

NameRequiredDescriptionDefault
expiresAtYes
previewUrlYes
contentHashYes
resultCountNo
documentHashYes
preparationIdYes
calculationCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

The description does add real behavior beyond annotations: a 24-hour non-public freeze, server-side re-execution ('The client never supplies the machine answer'), and all-or-nothing rejection on any divergence in input/law/resource/server code/engine library/result. However, this directly conflicts with the annotation title 'Prepare a public write-up', which claims public output where the description says non-public. That inconsistency undermines trust in the stated behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with no filler and the user-request trigger front-loaded, so nothing is wasted. But the sentences are dense and grammatically awkward ('compare their replayControl strictly'), forcing re-reading of the central mechanism.

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?

An output schema exists, so return values need not be described, and the description covers the verification/rejection model and the 24-hour non-public lifetime. Still missing for a nested, oneOf-constrained tool: what the produced document actually is, what documentVersion 0.1 vs 0.2 means, and the role of the assistant payload.

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 only 33%, so the description must compensate. It does explain the key semantic that replayControl is strictly compared and that client-supplied answers are never trusted, and it matches the schema's 1–12 item bound. It says nothing about question, language, assistant or documentVersion, leaving a large share of the six parameters undocumented.

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 concrete verb+resource: 'prepare a non-public frozen document for 24 hours' from 1–12 earlier law_ask or law_process_run calls. It implicitly separates itself from law_publish_answer (non-public, frozen, 24h) but never names that sibling, and the jargon 'replayControl' and the reference to law_process_run (not in the sibling list) cloud the picture.

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?

Gives one trigger condition clearly: 'At the explicit request of the user'. It does not say when NOT to use it, nor route the agent to alternatives such as law_publish_answer, law_capture_answer or law_ask for the non-verification path. Usage is implied rather than fully specified.

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.