Skip to main content
Glama

send_scene_event

Dispatches a named event with a JSON payload to a running wallpaper's event handler without reloading, so MCP clients can trigger live scene updates.

Instructions

Dispatches a live named event with JSON payload to ctx.onEvent((name, payload) => ...) in the currently running wallpaper without reloading.

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": "send_scene_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesEvent name (e.g. 'preset', 'weather', 'params').
payloadNoArbitrary JSON object passed to the scene.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load; it does disclose the key traits that this is a live, non-reloading dispatch into an existing handler. It does not say what happens when no scene is running, whether the handler must already be registered, whether the call is fire-and-forget, or what any failure looks like.

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?

A single dense sentence with the action front-loaded and the important constraint ("without reloading") at the end. No filler or repetition.

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 two-parameter tool with full schema coverage and no output schema, the definition covers the mechanics but leaves the outcome opaque: no indication of return value, delivery confirmation, or behavior when the target scene is absent. That gap matters because there is no output schema to fill it.

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 both `name` and `payload` are already documented, and the baseline is 3. The description only reinforces the handler signature `(name, payload)`; it adds no new constraints such as name conventions beyond what the schema's example list provides.

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 pairs a specific verb ("Dispatches") with a specific resource ("a live named event with JSON payload") and names the exact receiving API, `ctx.onEvent((name, payload) => ...)`. The phrase "without reloading" implicitly separates it from a scene-reloading sibling, though no sibling is named outright.

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?

Usage is only implied: "in the currently running wallpaper" hints at the precondition that a live scene must exist, and "without reloading" hints at when to prefer this over re-setting the scene. There is no explicit when-to-use/when-not statement or named alternative.

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