Skip to main content
Glama

webcam_stream

Destructive

Start, stop, or check a local MJPEG relay that shares one printer camera connection across viewers and reports stream status.

Instructions

Control the local live-video relay for the print monitor.

ONE connection to the printer's camera, re-served as an MJPEG stream on
this machine so every viewer shares it.  Carries an OctoPrint or
Moonraker webcam, a camera you registered by an http(s) address, and a
Bambu A1 / P1 camera.  The reply's ``capability`` says whether this
printer can be relayed and, when not, why: an X1 / P2S / H2 camera is
shown as pictures, not live video.  A refusal for a camera that is
waiting on Kiln's free camera add-on carries the same ``camera_addon``
block as ``printer_snapshot``.  ``stream`` carries the frame's age and
the measured frame rate: ``live`` is false when the picture may be
frozen.

Local-only: the relay reads the camera over your LAN and serves on
loopback, so on the hosted server it says so instead of starting.
Snapshots (``printer_snapshot``, ``monitor_print``) are unchanged.

A refused start on a printer type that has a camera check carries
``check_available: true``; ``action="check"`` then looks at what that
printer's likely camera addresses actually serve.

Args:
    printer_name: Target printer.  Omit for the default printer.
    action: One of ``"start"``, ``"stop"``, ``"status"``, or
        ``"check"``.  ``"check"`` runs only when asked: it tries each
        address this printer type's camera is known to answer on, on
        the printer's own host, with one GET each (a printer that gives
        out its camera address on request is asked for it first, as a
        start does), and replies with
        ``checks`` (what each served — a live stream, a still, a WebRTC
        page, a web page, an error, or nothing — and where the address
        comes from), a ``summary`` and a ``next_step``.  It registers
        nothing; when it finds a live stream, ``next_step`` says how to
        register that address as the printer's camera.  Local-only,
        like ``"start"``.
    port: Local port for the stream server (default 8081).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "webcam_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoLocal port for the stream server (default 8081). Default: 8081.
actionNoOne of ``"start"``, ``"stop"``, ``"status"``, or ``"check"``. ``"check"`` runs only when asked: it tries each address this printer type's camera is known to answer on, on the printer's own host, with one GET each (a printer that gives out its camera address on request is asked for it first, as a start does), and replies with ``checks`` (what each served — a live stream, a still, a WebRTC page, a web page, an error, or nothing — and where the address comes from), a ``summary`` and a ``next_step``. It registers nothing; when it finds a live stream, ``next_step`` says how to register that address as the printer's camera. Local-only, like ``"start"``. Default: "status".
printer_nameNoTarget printer. Omit for the default printer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.5.1
    • changedInput schema / properties / action / description
      Previous value: -"Default: \"status\"."New value: +"One of ``\"start\"``, ``\"stop\"``, ``\"status\"``, or ``\"check\"``.  ``\"check\"`` runs only when asked: it tries each address this printer type's camera is known to answer on, on the printer's own host, with one GET each (a printer that gives out its camera address on request is asked for it first, as a start does), and replies with ``checks`` (what each served — a live stream, a still, a WebRTC page, a web page, an error, or nothing — and where the address comes from), a ``summary`` and a ``next_step``.  It registers nothing; when it finds a live stream, ``next_step`` says how to register that address as the printer's camera.  Local-only, like ``\"start\"``. Default: \"status\"."
    • changedInput schema / properties / port / description
      Previous value: -"Default: 8081."New value: +"Local port for the stream server (default 8081). Default: 8081."
    • addedInput schema / properties / printer_name / description
      Added value: +"Target printer.  Omit for the default printer."
  2. Changed5 schema fields changedv1.5.0
    • removedInput schema / properties / action / default
      Removed value: -"status"
    • addedInput schema / properties / action / description
      Added value: +"Default: \"status\"."
    • removedInput schema / properties / port / default
      Removed value: -8081
    • addedInput schema / properties / port / description
      Added value: +"Default: 8081."
    • removedInput schema / properties / printer_name / default
      Removed value: -null
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=true; the description adds substantial context beyond that — a loopback-bound port, LAN reads of the camera, per-printer-type relaying capability with reasons for refusal, camera-addon refusal payloads, and liveness/frame-rate reporting. It does not discuss what stopping the relay or port conflicts do, which leaves some of the destructive profile unexplained.

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 purpose is front-loaded, but the body is dense and long, with internal field names (camera_addon, check_available, next_step, checks) interleaved into prose that repeats schema content. Much of it earns its place for a complex tool, yet the same material is duplicated in the Args section.

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

Completeness4/5

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

With no output schema and no annotations describing returns, the description compensates by naming the reply fields (capability, stream, checks, summary, next_step) and their meaning. It is nearly complete for a tool of this complexity, though it does not mention any interaction with printer locks or permission prerequisites.

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 printer_name, action, and port. The 'Args:' block restates the schema text nearly verbatim (the action paragraph is identical), adding no new meaning beyond the structured fields.

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?

Opens with a specific verb+resource: 'Control the local live-video relay for the print monitor,' then explains it is one shared MJPEG connection re-served on this machine. It distinguishes itself from the snapshot siblings by naming printer_snapshot and monitor_print and stating they are unchanged.

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?

Gives clear conditions: local-only (on hosted server it refuses instead of starting), action='check' runs 'only when asked', and snapshots remain the still-image path. Missing an explicit 'use this instead of printer_snapshot when the user wants live video' sentence, but the context is strong.

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

Deploy Server

Other Tools