Skip to main content
Glama

Run an app's code on a stored event

anyhook_code_test
Destructive

Run the saved handler now and return its logs, return value and duration: on a stored event (the latest when event_id is omitted) or on a body you give. Counts as a run. Nothing is delivered, but whatever the code itself sends does happen.

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_code_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRun on this JSON body instead of a stored event.
appSlugYes
event_idNoRun on this stored event. Omit for the app's latest event.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / body / additionalProperties
      Added value: +{}
    • changedInput schema / properties / body / description
      Previous value: -"Run on this body instead of a stored event."New value: +"Run on this JSON body instead of a stored event."
    • addedInput schema / properties / body / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / body / type
      Added value: +"object"
  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. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description adds genuinely new context by explaining that the invocation counts as a run (metering implication) and that although nothing is delivered, any outbound calls the code itself makes will actually happen. That side-effect disclosure is exactly the kind of context annotations cannot convey; it stops short of mentioning auth requirements or concurrency/rate limits.

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?

Front-loaded with the action and return payload, followed by two short sentences covering the run-counting and side-effect caveats. The colon-and-parenthetical construction in the first sentence is slightly dense but every clause carries information.

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 three-parameter execution tool with no output schema, the description covers what comes back (logs, return value, duration), the input alternatives, billing/run implications, and the surprising side-effect behavior. Remaining gaps (auth scope, whether runs are persisted) are minor given the annotation coverage.

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?

With 67% schema coverage, the description earns credit for restating the two key semantics: event_id omitted means the app's latest event, and body substitutes for a stored event. The 'instead of' phrasing adds precedence meaning beyond the schema's per-property descriptions, though appSlug remains unelaborated.

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 and resource: 'Run the saved handler now and return its logs, return value and duration', and clarifies the two execution targets (stored event vs. supplied body). It implicitly separates itself from delivery-oriented siblings with 'Nothing is delivered', though it never names an alternative tool.

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?

It gives the conditions for use (on a stored event, or on a body you give) and the default behavior when event_id is omitted, but there is no explicit 'use this instead of X' routing or prerequisites. The contrast with replay-type operations is only implied by the 'nothing is delivered' remark.

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.