Skip to main content
Glama

generate_event_handler

Event-driven communication handlers for microservices. Creates broker-connected event consumers. Use when: integrating with Kafka/RabbitMQ/Redis. Related: generate_event_bus (api-mcp, for in-process pub/sub)

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": {
      "eventName": "<eventName>",
      "broker": "<broker>"
    },
    "name": "generate_event_handler"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo
brokerYes
eventNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire burden and does not meet it. It never says where generated code lands, whether it mutates the project or only returns a snippet, what credentials or broker connections are needed, or whether the operation is reversible — all critical for a code-generating tool.

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 short, front-loaded clauses: what it does, when to use it, and the related alternative. There is no filler, though the telegraphic fragment style ('Use when:') leaves some grammatical looseness rather than a full sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a code-generation tool with zero annotation coverage, no output schema, and 0% parameter description coverage, the definition is thin. An agent cannot infer the effect of the 'action' parameter, the shape of the generated artifact, or any side effects from this text.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and three parameters exist, so the description must compensate and largely does not. Listing Kafka/RabbitMQ/Redis loosely echoes the broker enum (already in the schema), but the required eventName and the unexplained 'action' parameter get no meaning at all.

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?

The description states a concrete verb and resource: 'Creates broker-connected event consumers' for event-driven microservices. It also names the adjacent sibling generate_event_bus and scopes it as in-process pub/sub, so an agent can distinguish the two without opening either schema.

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?

'Use when: integrating with Kafka/RabbitMQ/Redis' gives an explicit trigger condition, and the 'Related: generate_event_bus' line routes the agent to the alternative for in-process pub/sub. It stops short of stating when NOT to use it or what prerequisites exist, so it is not a full 5.

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.