Skip to main content
Glama

Bulk-replay an app's failed events

anyhook_replay_failed
Destructive

Re-send an app's failed events after the destination is fixed, oldest first: by default those received in the last 24 hours, at most 50 per call (since and limit change both; limit goes up to 100). Events held by an open circuit are included. An event replayed once is not selected again, so a second call continues with the rest. The result lists what was replayed, what was skipped and why, and more: true while failed events are still waiting. Replays count against the plan's daily replay limit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "appSlug": "<appSlug>"
    },
    "name": "anyhook_replay_failed"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost events to replay in this call, 1 to 100. Default 50.
sinceNoOnly events received after this ISO 8601 time. Default: 24 hours ago.
appSlugYesThe app whose failed events to replay.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / appSlug / description
      Previous value: -"Bulk-replay every failed event for this app."New value: +"The app whose failed events to replay."
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Most events to replay in this call, 1 to 100. Default 50.",
      +  "maximum": 100,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "Only events received after this ISO 8601 time. Default: 24 hours ago.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "API key (ahk_live_...) from anyhook_quickstart. Only needed over HTTP when no Authorization header is set; ignored over stdio.",
      -  "type": "string"
      -}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare destructive=true and openWorldHint=true; the description goes well beyond by disclosing ordering (oldest first), the default 24-hour window and page cap, that circuit-held events are included, that selection is not repeated across calls, and that replays consume the plan's daily replay quota. It also sketches the response shape (replayed, skipped with reasons, more flag). This is exactly the behavioral context the annotations cannot carry.

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?

One front-loaded paragraph that leads with the action and what precedes it, then layers pagination, circuit behavior, result shape, and quota in a sensible order. Density is high but nearly every clause carries operational meaning; only the restated defaults are redundant with the schema.

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 destructive bulk-write with no output schema, the description covers scope, ordering, paging semantics, idempotency of selection, what the result contains, and the quota cost — everything an agent needs to call it correctly and to chain a follow-up call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, and the description adds real value on top by explaining that "since and limit change both" and restating the 100 ceiling in the context of paging through failures. Defaults duplicate the schema, so it does not add meaning for every parameter.

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?

"Re-send an app's failed events" states a specific verb and resource, with scope qualifiers (bulk, app-wide, oldest first) that make it distinguishable from a single-event replay. It does not name a sibling tool explicitly, so the differentiation from anyhook_replay / anyhook_undelivered is left for the agent to infer.

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 precondition "after the destination is fixed" tells the agent when this is the right call, and the note about continuing on a second call clarifies the multi-invocation workflow. There are no explicit exclusions or named alternatives, so the agent gets clear context but no routing rules.

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.