Skip to main content
Glama

French family benefits (CNAF corpus)

law_prepare_answer

À la demande explicite de l'utilisateur, répéter entre 1 et 12 appels law_ask ou law_process_run antérieurs, comparer strictement leurs replayControl, et préparer un document figé non public pour 24 heures. Le client ne fournit jamais la réponse machine : le serveur ne l'obtient qu'en exécutant à nouveau. Un écart dans une entrée, dans le droit, dans une ressource, dans le code du serveur, dans la bibliothèque du moteur ou dans le résultat rejette le document entier.

Input Schema

NameRequiredDescriptionDefault
languageNo
questionYes
assistantNo
calculationsNo
producerRunsNoExécutions de producteurs enregistrés avec control/0.2 ; mutuellement exclusives avec calculations.
documentVersionNoVersion du document immuable ; 0.1 est conservée pour la compatibilité transitoire, 0.2 inclut tous les résultats natifs et le lecteur commun.

Output Schema

NameRequiredDescriptionDefault
expiresAtYes
previewUrlYes
contentHashYes
resultCountNo
documentHashYes
preparationIdYes
calculationCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the core mechanism: the client never supplies the answer, the server re-executes, and any discrepancy in input/law/resource/server code/engine library/result rejects the entire document. The 24-hour non-public frozen-document lifetime is also new information. This is genuinely useful behavioral context for a readOnlyHint=false tool.

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 dense sentences, front-loaded with the triggering action and with the rejection rule last. Every sentence carries substantive meaning for a tool with this much machinery, though the prose is heavy and could be split for scanability.

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-value detail is not required, and the description covers the replay/compare/freeze workflow well. Still incomplete on parameter usage (documentVersion choice, calculations vs producerRuns) which matters for correct invocation of this nested, oneOf-constrained schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% across 6 parameters, so the description must compensate, yet it only indirectly maps to the schema ('1 à 12 appels' matches the maxItems=12 arrays and it names replayControl). It does not explain question, language, assistant, documentVersion, or the oneOf exclusivity between calculations and producerRuns.

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 compound action: replay 1–12 prior law_ask/law_process_run calls, strictly compare their replayControl, and produce a frozen non-public document for 24h. The verb+resource+scope are identifiable and it names the input source tools, though the density and French phrasing make it somewhat harder to parse than a crisp one-liner.

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?

It gives one gating condition ('à la demande explicite de l'utilisateur') which is useful context, and references law_ask/law_process_run as the runs to replay. However it never contrasts itself with siblings like law_publish_answer, law_capture_answer or law_ask, so an agent must infer when this is the right tool over those.

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.