Skip to main content
Glama

tv_espelhar

Mirror a TV screen into a PC window and control it with keyboard and mouse. Adjust bitrate and resolution to maintain responsiveness on weak Wi-Fi.

Instructions

Abre a tela da TV numa janela no PC (scrcpy), com controle por teclado/mouse. Muito mais rápido que Win + K. Parâmetros baixos de bitrate/resolução deixam fluido em Wi-Fi fraco.

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

Input Schema

NameRequiredDescriptionDefault
fpsNo
serialNoIP:porta da TV (ex.: 192.168.0.50:5555). Omita se só houver um dispositivo.
bitrate_mbpsNo
max_resolucaoNoMaior lado em px (720–1920)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden; it does disclose the mechanism (scrcpy) and that it opens a window with keyboard/mouse input, which implies control (mutation) of the remote device. It omits whether the TV must be powered/wired, whether ADB pairing is required first, whether audio is streamed, and whether the session blocks or returns immediately. These are meaningful gaps for a process-launching, input-injecting tool.

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

Conciseness4/5

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

Three short sentences, front-loaded with the core action and followed by a speed benefit and a tuning tip. Little waste, though the Win + K comparison occupies space without routing to an actual sibling tool, and the sentence order could put the Wi-Fi tuning hint last.

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 four-parameter tool with no annotations and no output schema, the definition explains what happens and how to tune quality, which is adequate. It still leaves out prerequisites (device connection/ADB, scrcpy availability), default behavior when serial is omitted beyond the schema note, and what the caller gets back. Reasonable but not complete for a long-running mirroring session.

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 50%: serial and max_resolucao are documented in the schema, while fps and bitrate_mbps are not. The description partly compensates by explaining that lower bitrate/resolution values keep things fluid on weak Wi-Fi, giving meaningful intuition about the tradeoff. It adds nothing about fps or about acceptable bitrate ranges, so the coverage gap is only half closed.

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 gives a concrete verb and resource: it opens the TV screen in a PC window via scrcpy with keyboard/mouse control. An agent can tell this is live mirroring with input, not just casting or listing. It does not differentiate against nearby siblings such as modo_projecao or tv_miracast_receber, comparing instead to an OS shortcut (Win + K).

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 context is implied rather than spelled out: use it to see and control the TV from the PC, and it is recommended over Win + K for speed. The note about lowering bitrate/resolution on weak Wi-Fi is practical tuning advice. However, it never states prerequisites (e.g. connecting first via tv_conectar or installing scrcpy via instalar_ferramentas) or when a sibling like tv_miracast_receber would be the better choice.

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