Skip to main content
Glama

send_key

Deliver control or navigation keys—such as Enter, Escape, Ctrl-C, Tab, or arrow keys—to a target agent tab to manage interactive CLI sessions.

Instructions

Send a control or navigation key (enter, escape, ctrl-c, ctrl-d, tab, up, down) to a target agent tab.

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": {
      "target": "<target>",
      "key": "<key>"
    },
    "name": "send_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey to send to the tab.
targetYesTarget agent tabId or label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing beyond the action itself. It does not say whether the key is delivered immediately or queued, what happens if the target tab is missing or busy, whether the call blocks for a reply, or whether the keystroke has irreversible side effects on a live agent.

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?

A single front-loaded sentence with zero filler; the key list is the only elaboration and it directly supports correct invocation.

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 simple two-parameter tool with complete schema coverage and no output schema, the definition covers what the tool does. However, with no annotations at all, it leaves the agent without any sense of side effects, blocking behavior, or failure modes when sending input to a live tab.

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 100%: both 'key' (with an enum of the seven allowed values) and 'target' (tabId or label) are documented in the schema. The description merely restates example keys already present in the enum, adding no new meaning such as whether 'target' accepts a label that must be unique or how ambiguity is resolved.

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 uses a specific verb (send) and resource (control or navigation key) and enumerates the supported keys, so an agent can immediately distinguish it from send_message, which sends text rather than keystrokes. It stops short of explicitly contrasting with that sibling, keeping it below a 5.

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 is implied rather than stated: the reader infers this is for driving a terminal-style agent tab with control/navigation keys. There are no explicit when-to-use or when-not-to-use conditions, and no pointing to alternatives such as send_message for literal text.

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