Skip to main content
Glama

screen_batch

Runs multiple screenctl steps as one action with a single permission check, stopping at an expect mismatch to report the current screen.

Instructions

Run several screenctl steps, one per line (POSIX quoting), as one action with one permission check. Put expect --text '…' after steps that change the page: the batch stops there with exit 4 and prints what is on screen. Not allowed inside: select, ui.

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": {
      "steps": "<steps>"
    },
    "name": "screen_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesone command per line, e.g. "click --text Next\nexpect --text Done"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose useful behavior: one shared permission check, a hard stop with exit 4, and that screen content is printed at the stop point. It does not say what happens to remaining steps after a failure, whether output from earlier steps is returned, or what side effects the commands have.

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?

Three tight sentences with no filler. The core capability comes first, then the expect rule and stop semantics, then the exclusion list — each sentence earns its place.

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?

For a one-parameter batch runner with no output schema, the definition covers input format, control flow, and failure signaling well enough to call it correctly. The remaining gap is partial-failure reporting, which an agent would want to know but can discover from the exit behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description goes beyond it by specifying multiline POSIX-quoted input, the one-command-per-line convention, and the `expect --text '…'` idiom, all of which meaningfully shape how the string should be built.

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?

States a specific verb and resource: run several screenctl steps as one action under one permission check. That is materially different from a single-step tool, though it never names `screen` or `screen_guide` to make the boundary explicit.

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 concrete usage instructions: one command per line, place `expect --text` after steps that change the page, and lists what must not appear inside (select, ui). It stops short of saying 'use `screen` instead when you only need one step', so routing to the sibling is left implicit.

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