Skip to main content
Glama
paramount-engineering

Roku Dev Studio MCP Server

Console Monitor: BrightScript Findings

console_monitor_findings
Read-onlyIdempotent

Analyze the BrightScript debug console buffer to detect coding issues and crashes, returning categorized findings with causes, fixes, and stack traces.

Instructions

Analyze the in-memory BrightScript debug console (port 8085) buffer and return the recognized BrightScript ISSUES and CRASHES — the same data the Console Monitor UI shows. Returns { connected, scannedLines, totalCaptured, totalIssues, issueTypeCount, byCategory, findings, crashes }, where each finding is { id, title, category, severity, meaning, cause, fix, docsUrl?, count, lines } and lines is that issue's unique console lines with per-line count and (when present) file/line. crashes are Micro Debugger dumps (uncaught runtime errors): each is { message, code?, file?, line?, backtrace[], count, exited?, app?, raw } where backtrace is the stack ({ depth, func, file?, line? }, innermost first) and exited marks a fatal EXIT_BRIGHTSCRIPT_CRASH. Only Roku/BrightScript-emitted diagnostics (BRIGHTSCRIPT: ERROR:/WARNING:, rendezvous, FormatJSON, roUrlEvent, …) are recognized — NOT arbitrary app log output. Data only accumulates while the console is connected: if connected is false call telnet_connect first. Read-only — it analyzes the buffer Dev Studio already holds and never touches the device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceNoOptional target device (IP or serial). Omit to use the focused tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly and idempotent, and the description strengthens this by adding 'never touches the device' and 'analyzes the buffer Dev Studio already holds'. It also discloses the connection-dependent accumulation behavior and the recognition filter, which are operational traits not present in annotations.

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?

The description is long but densely informative, front-loading the core analysis action and then providing a complete return contract. Because there is no output schema, the detailed field documentation is necessary rather than redundant; every sentence adds operational value.

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

Completeness5/5

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

Despite having no output schema, the description fully documents the return shape for both findings and crashes, including nested fields and semantics. It covers the connected=false edge case and the recognition limitations, leaving no critical operational gap for an agent to call the tool correctly.

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% for the only parameter (optional device, omit for focused tab), so the schema fully documents parameters. The description does not add parameter-level meaning, so the baseline of 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?

The description opens with a specific verb and resource: 'Analyze the in-memory BrightScript debug console (port 8085) buffer and return the recognized BrightScript ISSUES and CRASHES'. It also delimits scope by stating it returns the same data the Console Monitor UI shows and excludes arbitrary app log output, which separates it from log-oriented sibling tools like get_telnet_log.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit precondition and action: 'if connected is false call telnet_connect first', plus a clear exclusion ('NOT arbitrary app log output'). This tells an agent exactly when the tool is appropriate and what to do when the prerequisite is not met.

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