Skip to main content
Glama

Replay Inject Client Notification

replay_inject_client_notification
Destructive

Inject client notifications into a running replay session to test app UI behavior, including key-verification variants and custom messages.

Instructions

Inject a ClientNotification into a running replay session to test the app's UI.

The key-verification variants are filled by nonce, remote_longname, security_number, verification_characters and is_sender. Each variant: docs/replay.md.

Returns {id, queued, connected}, or {error} for an unknown session.

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

Input Schema

NameRequiredDescriptionDefault
countNoHow many copies to send.
levelNoDEBUG, INFO, WARNING, ERROR or CRITICAL.WARNING
nonceNoKey-verification nonce.
messageNoReplaces firmware's wording; empty keeps it.
variantNo`low_entropy_key` (regenerated weak keys), `duplicated_public_key`, `key_verification_number_request`, `key_verification_number_inform`, `key_verification_final`, or `text`.low_entropy_key
is_senderNoWhether this side started the verification, for `key_verification_final`.
session_idYesSession id from `replay_start`.
remote_longnameNoThe remote node's long name, for the key-verification variants.
security_numberNoSecurity number, for `key_verification_number_inform`.
verification_charactersNoVerification characters, for `key_verification_final`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=false, so the description's main added context is the running-session prerequisite and the `{id, queued, connected}` or `{error}` outcome. It does not elaborate on side effects beyond UI testing, duplication behavior from `count`, or any session mutation risk beyond what annotations already signal.

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

Conciseness3/5

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

The core purpose is front-loaded and the return-value sentence is clear. However, the line "Each variant: docs/replay.md" is a dangling, unclear fragment that weakens structure and forces the reader to guess what was intended.

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?

With an output schema and full parameter descriptions, the description does not need to carry parameter or return-value detail. It provides the running-session context, but for a 10-parameter destructive injection tool it lacks clear variant-selection guidance and leaves the docs pointer malformed.

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 explains each parameter. The description groups the key-verification parameters, but that grouping largely restates schema details, and the fragment "Each variant: docs/replay.md" is incomplete rather than adding useful semantics.

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 specific verb and resource: "Inject a ClientNotification into a running replay session" and adds the purpose "to test the app's UI." It is distinguishable from generic injection siblings by naming ClientNotification, but it does not explicitly contrast with replay_inject or the other replay injectors.

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?

The phrase "to test the app's UI" and the requirement for a running replay session imply when to use the tool. However, it gives no explicit when-not guidance or alternatives among replay_inject, replay_inject_beacon, and the other injection siblings.

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