Skip to main content
Glama

monitor_emit

Emit custom events with payloads to registered monitors, enabling workflow tracking and webhook or OpenTelemetry notifications.

Instructions

Emit a custom event to registered monitors

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": {
      "type": "<type>",
      "payload": "<payload>"
    },
    "name": "monitor_emit"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesCustom event type (will be prefixed with "custom.")
payloadYesEvent payload
metadataNoAdditional metadata

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it discloses very little: it implies a broadcast side effect but says nothing about what happens when no monitors are registered, whether delivery is synchronous or queued, whether the call can fail, or whether an event is persisted for later retrieval. The "custom." prefix behavior is a useful detail, but it lives in the schema rather than the description.

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?

A single front-loaded sentence with no filler, which is structurally sound. It is arguably too terse given the tool's side-effecting nature, but that gap is better captured under completeness than conciseness.

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 side-effecting event emitter with no annotations and no output schema, one sentence is inadequate: the agent cannot tell whether the call succeeds silently, returns delivery info, or errors when no monitors exist. It also leaves the nested payload object entirely to the schema.

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%, so the schema already documents all three parameters, including the "custom." prefix rule and the free-form payload. The description adds no additional meaning about payload shape, size limits, or metadata handling, 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?

"Emit a custom event to registered monitors" gives a specific verb (emit), resource (custom event) and target (registered monitors), which is enough to separate it from the read-oriented monitor_get_events sibling. It stops short of explicitly naming an alternative, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites (e.g., must monitors be registered first via monitor_register?), and no mention of when to prefer this over monitor_get_events or related siblings. The only hint of context is the phrase "to registered monitors," which is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.