failures-mcp
v0.3.1Failures — deterministic MCP for AI-built software.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_principles
List Failures engineering principles and dimensions. Optionally filter by id.
| Parameter | Type | Description |
|---|---|---|
filter | string |
review_architecture
Review a system architecture for failure modes. Provide system description, components (list of {name,description,dependencies} or strings), optional flows and dependencies. Returns severity-ranked findings with required controls and tests.
| Parameter | Type | Description |
|---|---|---|
system * | string | |
components | array | |
dependencies | array | |
flows | array |
analyze_component
Analyze a single component (database, queue, api, payment, auth, cache, worker, storage) for failure modes.
| Parameter | Type | Description |
|---|---|---|
component_type * | string | |
description * | string | |
dependencies | array |
generate_failure_cases
Generate concrete failure scenarios for a system. Prioritizes ambiguous and partial failures. Optional focus: atomicity, idempotency, timeout, concurrency, etc.
| Parameter | Type | Description |
|---|---|---|
system * | string | |
components | array | |
focus | string |
review_code
Review source code for failure-related risks (idempotency, transactions, timeouts, race conditions, retry safety, resource exhaustion). Provide code and language.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
language | string |
generate_failure_tests
Generate failure-oriented tests for a system/component.
| Parameter | Type | Description |
|---|---|---|
system * | string | |
component | string | |
language | string |
check_idempotency
Check whether an operation/code is safe to execute more than once.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
operation | string |
check_retry_safety
Determine whether retrying an operation can produce duplicate side effects or inconsistent state.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
operation | string |
check_transaction_safety
Analyze database/state transitions for partial commits, crashes, rollback behavior, lost updates.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
operation | string |
review_plan
Review an implementation plan (ordered steps) for failure ordering, idempotency, and transaction gaps. Use before coding to catch flawed ordering.
| Parameter | Type | Description |
|---|---|---|
feature * | string | |
context | string | |
plan | array |
check_invariant
Check if declared invariants can be violated under failures. Provide invariants and architecture/plan/code context. Returns counter-scenarios.
| Parameter | Type | Description |
|---|---|---|
invariants * | array | |
architecture | string | |
code | string | |
context | string | |
plan | array |
review_code_semantic
Semantic review — deterministic checks plus low-confidence heuristic for hard cases (ack ordering, lock scope, memory dedup). Deterministic findings are authoritative (0.68-0.96); semantic are 0.58-0.65 and require human review. No LLM by default.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
language | string |
list_failures
List known failure scenarios from the knowledge base.
| Parameter | Type | Description |
|---|---|---|
filter | string |