Skip to main content
Glama

Get event handler

get-event-handler
Read-onlyIdempotent

Fetch a single event handler rule by id.

WHEN TO USE:

  • To inspect what a specific handler books before an event commits through it

  • To verify whether a handler is active or approved

  • To check the transaction_template DSL for a handler

PARAMETERS:

  • id (required): EventHandler id (hdl_ prefixed ULID)

RETURNS: EventHandlerResponse with match criteria, transaction_template, priority, is_active, origin, and AI provenance fields.

RELATED TOOLS:

  • list-event-handlers — browse handlers with filters

  • preview-event-block — dry-run to see which handler fires for an event

  • create-event-handler — define a new rule

  • update-event-handler — patch or approve a handler

NOTES:

  • An AI-suggested handler takes no part in matching until a person approves it

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": "get-event-handler"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEventHandler id (hdl_ prefixed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds non-annotation context: the approval gating rule ('an AI-suggested handler takes no part in matching until a person approves it') and the exact shape of the returned record. It does not state behavior on a missing id (not found vs error), which keeps it from a 5.

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 one-line purpose followed by labeled sections, so an agent can scan to the relevant part. The header scaffolding is somewhat heavy for a one-parameter read tool, but no sentence is genuinely wasted.

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?

There is no output schema, and the RETURNS section compensates by enumerating the meaningful response fields (match criteria, transaction_template, priority, is_active, origin, AI provenance). Combined with the usage and gating notes, nothing needed to call this tool correctly is missing.

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 coverage is 100% for the single parameter, and the description largely restates it, adding only the 'ULID' format detail beyond the schema's 'hdl_ prefixed'. Baseline 3 applies when the schema already carries the parameter meaning.

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 opening line states a specific verb and resource with scope: 'Fetch a single event handler rule by id.' It is immediately distinguishable from list-event-handlers and the create/update siblings named later.

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

Usage Guidelines5/5

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

A dedicated WHEN TO USE block gives three concrete situations (inspect booking behavior, verify active/approved status, check the transaction_template DSL), and RELATED TOOLS explicitly routes browsing to list-event-handlers and dry-runs to preview-event-block.

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.