Skip to main content
Glama
KevinBuettner

docent-terminal-mcp

shell_integrate

Adds shell integration to a bash or zsh prompt for exact command boundaries and exit statuses during run in remote or fallback sessions.

Instructions

Add shell integration to the bash now waiting at the prompt: exact command boundaries and exit statuses for run there.

Sessions started without a command have it already, and so does any bash started inside them. A shell that could not inherit it -- one reached through ssh or su - -- falls back to prompt matching, with no exit statuses; call this at its prompt, typically right after run ssh host came back at the remote prompt. Types one short line that reads the integration file: this server's own on this host; on another host the copy the user installed there with docent-terminal-mcp install HOST (without it the reply says so; docent-terminal-mcp ssh HOST needs none). For bash and zsh, and only at a prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNotype even over someone else's unsubmitted line, and without checking that the cursor is at a shell prompt
sessionYesthe session's name (from session_create or session_list)
timeout_sNoseconds to wait for the integrated prompt to appear

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that it 'types one short line that reads the integration file', distinguishes the server's own file from a user-installed copy on another host, and warns when the reply will say the file is missing. It does not state permission requirements or what happens on partial failure, but the operational behavior is unusually well disclosed.

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?

Front-loaded with the core action, then conditions; every sentence carries real information. It is dense and slightly meandering with parentheticals, but no sentence is filler.

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?

An output schema exists so return values need not be described, and the description covers prerequisites, host/file selection, and shell constraints thoroughly. Minor gaps around failure modes and permissions remain, but nothing essential for correct invocation is missing.

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 `force`, `session`, and `timeout_s`. The prose explains the prompt-context around `force` and the host/file distinction relevant to invocation, but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

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: 'Add shell integration to the bash now waiting at the prompt', and clarifies what it enables ('exact command boundaries and exit statuses for `run`'). An agent can tell what the tool does, but it never explicitly differentiates itself from siblings like `run`, `expect`, or `guide` by name.

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?

Explicitly covers when it is NOT needed ('Sessions started without a `command` have it already'), when it IS needed (ssh/`su -` fallback to prompt matching), and where to call it ('call this at its prompt, typically right after `run ssh host`'). Names the prerequisite installer command and the alternative that needs no setup.

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