Skip to main content
Glama

state-model-checker

State Machine Model Checker — Returns PASS, FAIL or INCONCLUSIVE for a finite state machine, protocol, or concurrent routine, with the shortest failing path as readable process.transition steps and a next step. Accepts a formal spec (no LLM), a plain-language workflow, or source code (translated to a spec by an LLM, with every transition quoted from the source and two independent translations compared). A pure TypeScript expli

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": "state-model-checker"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoSource code of a state machine, protocol, or concurrent routine; translated to a spec by an LLM, with each transition carrying its verbatim source span.
specNoFormal spec (zero LLM calls). {vars:{name:{type:'bool'|'int'|'enum'|'array',min,max,values,size|keys,of,init}}, processes:[{name,instances?,fairness?:'none'|'weak'|'strong',transitions:[{name,guard?,updates:[{var,at?,value}]}]}], initWhere?, terminal?, progress?, invariants:[{name,expr}], liveness:[{name,kind:'eventually'|'alwaysEventually'|'leadsTo',p,q?}]}. Expressions are JSON nodes ({var,at?}, {sym}, {param}, {op,args}, forall/exists) or infix strings such as "pc[self] == wait && !flag[1 - self]"; nothing is evaluated as code.
optionsNo
propertiesNoProperties to check, in plain language (with description or code only).
descriptionNoNatural-language workflow or protocol; translated to a spec by an LLM, with each transition quoted from the text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses the three verdict values, the counterexample format (process.transition steps plus a next step), that spec input makes zero LLM calls, and that code input is translated with verbatim source spans and two independently compared translations. It stops short of describing failure modes such as budget exhaustion producing INCONCLUSIVE, or the cost/latency profile of the LLM-backed paths.

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?

The core verdict and input modes are front-loaded, which is good, but the body is a dense run-on that stacks parenthetical clauses, and it ends in a dangling fragment ('A pure TypeScript expli') that conveys nothing. Several clauses duplicate what the parameter schema already states.

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

Completeness4/5

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

For a complex tool with five parameters, nested spec objects, and no output schema, the description covers the essential contract: accepted inputs, verdict set, counterexample shape, and next-step output. Remaining gaps (overall result structure, budget-exhaustion behavior) are moderate rather than blocking.

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 80%, so the schema already explains spec shape, option defaults, and the code/description translation behavior in detail. The description's additional meaning is limited to noting that code transitions are quoted from source and dual-translated, which reinforces but does not extend the schema's own wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb+resource: a model checker over finite state machines, protocols, and concurrent routines, returning PASS/FAIL/INCONCLUSIVE with a shortest failing path. It further names the three accepted input forms (formal spec, plain-language workflow, source code), so an agent knows exactly what the tool consumes and produces without opening the schema.

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 implies the usage modes by enumerating spec vs. description vs. code, and notes that a formal spec involves zero LLM calls, which hints a preference for spec input when available. However, it never states when to choose this tool over a sibling, when not to use it, or the tradeoffs between the three input modes beyond the LLM note.

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.

Resources