Skip to main content
Glama

Emit an event

emit_event

Emit an event into the mesh (fans out to matching triggers). Lets a tool or agent chain work by raising a new event.

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>"
    },
    "name": "emit_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
typeYes
subjectNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavior beyond that: the event is broadcast to matching triggers rather than handled directly. It does not say whether dispatch is synchronous, whether trigger failures surface to the caller, or whether unmatched events are dropped, which matters for a fan-out side-effecting call.

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?

Two short sentences, with the core action stated first and the effect second; nothing is padded. The opening clause largely restates the title, which is the only wasted fragment.

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

Completeness3/5

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

An output schema exists, so return values do not need explaining, and the parameter set is small. However, for an event-emission tool the set of valid event types and the expected payload convention are the key unknowns, and the description supplies neither, leaving an agent without enough to construct a correct call.

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% for three parameters (type, data, subject), so the description is the only place that could explain them, and it does not mention any of them. An agent gets no hint about what values `type` accepts or what shape `data` should carry beyond a free-form object.

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 an event into the mesh" gives a specific verb and resource, and the parenthetical "fans out to matching triggers" describes the observable effect, which separates it from trigger-management siblings like create_trigger. Sibling differentiation is implied by the fan-out effect rather than stated explicitly, so it stops short of a 5.

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?

"Lets a tool or agent chain work by raising a new event" gives a usable context for when to call it (orchestration/chaining). There is no when-not guidance, no prerequisites, and no pointer to create_trigger for the case where the caller actually wants to define a trigger instead of firing one.

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.

Resources