Skip to main content
Glama

List event handlers

list-event-handlers
Read-onlyIdempotent

List event handler rules with optional filters.

WHEN TO USE:

  • To see all handlers for a specific event type (e.g., 'invoice_issued')

  • To find handlers awaiting approval (approved=false)

  • To audit the active rule set before adding a new handler

  • To check which event types currently have an active handler set

PARAMETERS:

  • event_type (optional): Filter by event type (e.g., 'invoice_issued', 'bank_transaction')

  • is_active (optional, default true): Include inactive handlers by passing false

  • origin (optional): 'hub' | 'tenant'

  • approved (optional): true = only approved; false = only unapproved AI suggestions

  • limit (optional, default 50, max 1000)

  • offset (optional, default 0)

RETURNS: List of EventHandlerResponse objects ordered by priority descending then name.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-event-handlers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
originNo
approvedNo
is_activeNo
event_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive semantics, so the description only needs additive context — and it delivers: default result cap of 50 with a 1000 ceiling, and the non-obvious fact that is_active defaults to true so inactive rules are hidden unless requested. The result ordering (priority descending, then name) is also disclosed. It omits total-count/pagination behavior, which keeps it at 4.

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?

Header-delimited sections with the purpose front-loaded, and the bullets are scannable. The PARAMETERS block largely restates schema-level facts (defaults, max) and the WHEN/RETURNS headers add some overhead, but nothing is truly wasted.

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 read-only listing tool with six optional filters and no output schema, the definition covers triggers, every filter's meaning, defaults, and return ordering. It does not explain pagination practice (whether to page via offset until exhausted) or what happens with an unrecognized event_type, which is the only remaining gap.

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 description coverage is 0%, so the description must carry all parameter meaning, and it documents every one of the six with examples ('invoice_issued', 'bank_transaction'), enum values for origin, and semantic distinctions for approved (true = approved only, false = unapproved AI suggestions). The is_active phrasing, 'Include inactive handlers by passing false', is slightly ambiguous since false actually restricts results to inactive rules rather than adding them to an unfiltered set.

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 sentence gives a specific verb and resource (list event handler rules) plus scope (optional filters). The WHEN TO USE bullets make the read-only enumeration purpose unmistakable relative to creation/update siblings such as create-event-handler.

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?

Four concrete usage scenarios are listed, including auditing the rule set before adding a handler, which implicitly routes agents away from get-event-handler for browsing. It stops short of explicitly naming an alternative tool or stating when not to use it, so it falls just below the top mark.

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.