Skip to main content
Glama

fet_diagnose

Diagnose why FET timetable generation fails or struggles by combining static conflict checks with optional solver runs and log parsing, returning blockers and suggested fixes.

Instructions

Diagnose why FET timetable generation struggles or fails. Combines static conflict heuristics on a .fet / workspace document with optional fet-cl run and parsing of logs/ (errors.txt, difficult_activities.txt, result.txt). Returns Italian-friendly blockers with suggested fixes and catalog constraint types. When FET only says «Impossible», documents limits and points to max-placed / initial-order clues.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fet_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdNoExisting generation job: reuse its inputFile/outputDir/logs.
runFetNoIf true, run fet-cl (short timeLimit) then parse logs. Default false — static + existing logs only.
languageNofet-cl --language when runFet (default en_US).
inputFileNoAbsolute .fet path, or relative to data/input or examples/.
outputDirNoDirectory containing FET logs/ (absolute or under data/output).
documentIdNoWorkspace document id (fet_document_open / fet_from_assignments).
includeStaticNoRun static heuristics on the .fet (default true).
timeLimitSecondsNoTime limit when runFet=true (default 5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses that it combines static heuristics on a .fet/workspace with an optional fet-cl run, that it parses specific log files, and what it returns (blockers with suggested fixes). What's missing is the side-effect profile of running fet-cl (writes to outputDir/logs, time cost) and any permission notes.

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 purpose, then mechanism, then return values, then the special «Impossible» case. Dense but nearly every clause earns its place; slight overload in the third sentence.

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?

For an 8-parameter, no-output-schema tool, the description explains the two operating modes and the return content, which is substantial. But it leaves some behavioral questions open — what happens if neither jobId nor inputFile is provided, and whether fet-cl execution writes artifacts or consumes resources.

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 coverage is 100% with 8 well-documented parameters, so the schema already explains jobId, runFet, inputFile, etc. The description adds only a little: it clarifies that default behavior is static + existing logs, and that runFet triggers fet-cl with a time limit. That matches the baseline 3 when the schema does the heavy lifting.

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?

The description opens with a specific verb+resource: "Diagnose why FET timetable generation struggles or fails." It distinguishes itself from generation tools like fet_generate by framing itself as a post-failure diagnostic, though it never names a sibling explicitly to route against.

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?

Usage is implied rather than stated: "Diagnose why... struggles or fails" and "When FET only says «Impossible»" give the trigger context, and the runFet/static split hints at when each mode applies. However, it never names an alternative tool or states explicit preconditions (e.g., that a job or document must already exist).

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