Skip to main content
Glama

Create event definition

create_event_definition

Document a custom event so teammates know what it means. Returns the definition. Errors: event_definition_exists, invalid_event_name, reserved_event_name. Next: track_event to send it, or create_sync_rule.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe event name, such as "plan_upgraded".
propertiesNoDocumentation of the properties: [{"name": "plan", "type": "string"}]. Not enforced.
descriptionNoWhat the event means.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare this is non-read-only, non-destructive, and non-idempotent, so the safety bar is lower. The description adds real value with the enumerated error codes (event_definition_exists, invalid_event_name, reserved_event_name) and the note that it returns the definition, which is useful since no output schema exists. It does not explain whether creation is recoverable or what happens to existing definitions on name collision.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with purpose, then return, then errors, then next steps. No filler; every clause carries actionable information.

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?

For a three-parameter create tool the description covers purpose, error modes, and sequencing, and annotations cover the safety profile. It is thin on the shape of the returned definition (no output schema) and on collision/idempotency behavior, but nothing critical for correct invocation 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% and the schema documents all three fields, including that properties are documentation-only and "not enforced." The description adds no parameter-level meaning beyond what the schema already states, so the baseline 3 applies.

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?

States a specific verb and resource ("Document a custom event") plus the intent (so teammates know what it means), and names track_event, which makes the distinction between defining and sending an event explicit.

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?

The "Next: track_event to send it, or create_sync_rule" clause gives clear follow-on routing, which effectively tells the agent when this tool is the right precursor. It stops short of explicit exclusions (e.g., use list_event_definitions before creating, or what to do when a definition already exists), but the context is clear.

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.