Skip to main content
Glama
richashworth

tlaplus-mcp

by richashworth

tlc_generate_trace_spec

Generate a Trace Explorer spec (SpecTE.tla) from a TLA+ counterexample trace to debug model-checking failures.

Instructions

Run TLC model-checking on a TLA+ spec with -generateSpecTE to produce a Trace Explorer spec (SpecTE.tla / SpecTE.cfg). This is useful for debugging counter-examples: it generates a standalone spec that replays the error trace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tla_fileYesAbsolute path to the .tla file
cfg_fileNoPath to the .cfg configuration file. Defaults to <tla_file>.cfg
monolithNoGenerate a monolithic SpecTE (single file). Set false for multi-file output.
extra_argsNoAdditional TLC arguments
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the key behavior (runs TLC with -generateSpecTE, produces files), but does not explain side effects, error handling, or requirements (e.g., TLC installation, output overwrite behavior). This is adequate but not thorough.

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?

The description is two sentences, front-loaded with the action, and then the purpose. Every sentence contributes value with no wasted words. Highly concise and well-structured.

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?

Given no output schema and no annotations, the description should cover return values and prerequisites. It mentions output files but not their content or structure. It does not explain failure modes or dependencies (e.g., TLC path). Sufficient for basic understanding but lacks completeness.

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%, so the baseline is 3. The description does not add extra meaning beyond the schema's parameter descriptions; it only restates the purpose of the tool. No additional value for parameter understanding.

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 clearly states the tool runs TLC with -generateSpecTE to produce a Trace Explorer spec (SpecTE.tla/cfg). It identifies the specific verb and resource, and hints at debugging counter-examples, but does not explicitly differentiate from sibling tools like tlc_check or tlc_simulate.

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?

The description mentions it is useful for debugging counter-examples, providing context for when to use it. However, it lacks explicit guidance on when not to use it or suggestions of alternative tools (e.g., tlc_check for general model-checking, tlc_simulate for simulation).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/richashworth/tlaplus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server