Skip to main content
Glama

AI SENSE Free Public Tools

Simulate a failure

simulate_failure
Read-only

Get a chosen failure on purpose, to test how an agent or client handles it: an HTTP status from 200 to 504, an HTML error page (html), an empty body (empty) or JSON labelled as text (wrongtype), after an optional delay of up to 10 seconds. The result reports the status, content type, headers and body the REST endpoint sent, and is an error result for statuses of 400 and above. No API key, no account and no sign up.

Input Schema

NameRequiredDescriptionDefault
outcomeYesThe HTTP status to answer with, 200 to 504, or html for an HTML error page, empty for an empty body, or wrongtype for JSON labelled as text.
delay_msNoWait this many milliseconds before answering, 0 to 10000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / delay_ms / description
      Added value: +"Wait this many milliseconds before answering, 0 to 10000."
    • addedInput schema / properties / outcome / description
      Added value: +"The HTTP status to answer with, 200 to 504, or html for an HTML error page, empty for an empty body, or wrongtype for JSON labelled as text."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses that no API key or account is required, that a delay of up to 10 seconds is applied before answering, exactly what the result reports (status, content type, headers, body), and that statuses of 400 and above are returned as error results. That last point is the key behavioral detail an agent needs, since a deliberately injected failure will surface as a tool error rather than a normal response. Nothing here contradicts readOnlyHint=true, because the tool injects simulated responses rather than mutating state.

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?

Effectively one dense sentence plus two short follow-ups, with the purpose front-loaded and the result format immediately after. The closing 'No API key, no account and no sign up' is slightly promotional but does convey real auth requirements, so it earns its place. The middle clause listing outcome categories is somewhat redundant with the enum.

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

Completeness5/5

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

For a two-parameter fault-injection tool with no output schema, the description covers the purpose, the delay semantics, the shape of the reported result, and the crucial fact that >=400 statuses come back as errors. An agent has everything needed to call this correctly and interpret the response.

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% and the enum parameter already documents every outcome value, so the baseline of 3 applies. The description restates the outcome categories (HTTP status range, html, empty, wrongtype) and the delay bound without adding syntax or edge-case detail beyond the schema. It confirms rather than extends the parameter documentation.

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?

The description opens with a specific verb and resource ('Get a chosen failure on purpose, to test how an agent or client handles it') and then enumerates the exact failure modes available. It is immediately distinguishable from anything else in the sibling list, none of which involve fault injection.

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?

The context for using it is explicit: to test how an agent or client handles failures. There are no competing siblings to redirect to, so the lack of explicit alternatives is a minor gap rather than a real ambiguity. It does not state when not to use it, which keeps it just short of a 5.

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.