Skip to main content
Glama

Tool Generate Case File

tool_generate_case_file

Generates a versioned, atomic case_file.json for independent validation, linking an optional case_id while leaving human review and external verification fields pending.

Instructions

Genera la ficha de caso versionada del Protocolo de Validación Independiente (Fase 3.2).

Materializa el esquema canónico (Apéndice B del protocolo) como case_file.json atómico, vinculado al expediente del workflow si se indica case_id. Los campos de revisión humana y verificación externa quedan pendientes hasta que la institución los complete; la ficha nunca los fabrica ni declara legalidad.

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": {
      "anomaly_dict": "<anomaly_dict>"
    },
    "name": "tool_generate_case_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
reviewNo
scenesNo
case_idNo
hypothesesNo
output_dirNo
storage_dirNo
anomaly_dictYes
verificationNo
detection_metadataNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful traits: the write is atomic, and the human-review and external-verification fields are left pending and never fabricated or asserted as legal. It does not say what happens if the target file already exists, how `output_dir` and `storage_dir` resolve, or whether errors leave partial state.

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 sentences, front-loaded with the artifact and phase, then the materialization behavior, then the critical caveat about not fabricating review fields. Dense with technical vocabulary but no filler; a slight tightening of the parenthetical citation would make it ideal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex, nine-parameter artifact-producing tool with 0% schema coverage and no annotations, yet the description leaves most parameters and the file-location behavior unexplained. The output schema is declared, so return values need not be described, but the input side and the overwrite/linking semantics are substantially under-covered for a tool of this complexity.

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 0% across nine parameters, and the description explains only two of them loosely: `case_id` (links to the workflow case file) and the review/verification fields (which remain pending). The single required parameter, `anomaly_dict`, plus `scenes`, `hypotheses`, `output_dir`, `storage_dir`, and `detection_metadata`, receive no meaning beyond their names and types.

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 artifact: it materializes the canonical schema (Appendix B) as an atomic `case_file.json` for Phase 3.2 of the Independent Validation Protocol. The resource and output are unambiguous, but it never contrasts itself with siblings such as tool_manage_case_workflow or tool_generate_enforcement_report, so an agent must infer which produces the case file versus the enforcement report.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only conditional given is internal behavior — 'vinculado al expediente del workflow si se indica `case_id`' — not when to call this tool versus alternatives. There is no statement of prerequisites for Phase 3.2, no indication of whether an anomaly detection run must precede it, and no exclusion of sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.