Skip to main content
Glama
Aethis-ai

aethis-mcp

Official
by Aethis-ai

aethis_explain_failure

Read-only

Diagnose why a ruleset returns an unexpected outcome for test inputs during rule authoring. Get criteria DSL metadata and a targeted fix hint when a test fails.

Instructions

Diagnose why a ruleset produced an unexpected outcome for specific test inputs. Use during rule authoring when a test fails — returns the diagnosis, criteria with DSL metadata (waivable, review_required), and a targeted hint for fixing the rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_nameNoName of the failing test case (included in the diagnosis for context)
ruleset_idYesThe ID of the rule ruleset to diagnose
field_valuesYesThe test input values that produced the unexpected outcome
expected_outcomeYesThe outcome you expected from this input

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real value beyond that by disclosing the return payload — diagnosis, criteria with DSL metadata (waivable, review_required), and a fix hint — which is important since no output schema exists.

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?

Two sentences, front-loaded with the purpose before the usage and return details; every clause carries information. The return-value clause is slightly list-heavy but earns its place given there is no output schema.

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 read-only diagnostic tool with full schema coverage, the description supplies the missing piece — what the diagnosis returns — which compensates for the absent output schema. Only the differentiation from aethis_explain is left unaddressed.

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 100%, so all four parameters (ruleset_id, field_values, expected_outcome, test_name) are already documented in the schema. The description adds no format or syntax detail beyond it, so the baseline 3 applies.

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+resource ('Diagnose why a ruleset produced an unexpected outcome') and scopes it to test inputs, which is clear. It does not explicitly distinguish itself from the sibling aethis_explain, so an agent must infer the boundary between 'explain' and 'explain_failure'.

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

Usage Guidelines4/5

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

Gives a clear triggering context — 'Use during rule authoring when a test fails' — which tells the agent when this tool is appropriate. It stops short of naming an alternative (e.g. aethis_explain) or stating exclusions, so it is context without routing.

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