Skip to main content
Glama

Replay an event

anyhook_replay
Destructive

Re-send a stored event to its destinations. Replays sit outside the monthly event quota but within a daily replay limit per plan and the monthly compute allowance (anyhook_usage), and replaying an event that was held for quota bills it as a new event. The destination does run its handler again: a receiver that is not idempotent will process the event twice while debugging.

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": {
      "id": "<id>"
    },
    "name": "anyhook_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEvent ID to replay. Replay does not consume event quota; it is charged to the compute allowance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. 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"
      -}
  3. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Event ID to replay. Replay does not consume event quota."New value: +"Event ID to replay. Replay does not consume event quota; it is charged to the compute allowance."
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes beyond the annotations (destructiveHint=true, idempotentHint=false, openWorldHint=true) by disclosing the concrete consequence: the destination re-runs its handler, so a non-idempotent receiver processes the event twice. It also adds billing behavior not captured by any structured field - replays fall outside the event quota but inside a daily replay limit and monthly compute allowance, and held-for-quota events are billed as new events.

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?

Three front-loaded sentences that move from action to billing to side-effect warning, each carrying real information. The quota wording is slightly dense and partially duplicates the schema's parameter note, but nothing is padding.

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?

Covers the mutation's cost and side effects thoroughly for a one-parameter action tool. With no output schema, an indication of what a replay returns (e.g. per-destination status or failure handling) would round it out, but the essentials for a correct call are present.

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 single `id` parameter is already documented in detail, including the quota nuance. The description adds no new information about the parameter, so the baseline of 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?

"Re-send a stored event to its destinations" states a specific verb (re-send) and resource (stored event) with the target (destinations) named. It does not, however, distinguish itself from the sibling anyhook_replay_failed, which reads as a related replay operation, so the agent must infer the boundary.

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?

Usage is only implied through the final clause about non-idempotent receivers "while debugging," which hints at a debugging use case. There is no explicit statement of when to pick this over anyhook_replay_failed or anyhook_events, and no prerequisites or exclusions are given.

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.