Skip to main content
Glama

tool_type_text

Post text to a window's text control without activating or restoring its window. MUTATING (soft): serialized across agent sessions. No physical input is injected.

Instructions

Post text to a window's text control without activating or restoring its window. MUTATING (soft): serialized across agent sessions. No physical input is injected. On PostMessage failure, stops at the first rejected character and returns how many were queued in typed. A partial post may already have edited the target. Inspect it before retrying. effect_verified reports whether readback confirmed the requested insertion. Some applications require their window to be active to process text.

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

Input Schema

NameRequiredDescriptionDefault
hwndNo
textNo
titleNo
delay_msNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so well. It discloses mutating behavior, serialization across agent sessions, no physical input injection, failure semantics at the first rejected character, partial-edit risk before retrying, readback verification via effect_verified, and an application activation caveat.

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 purpose is front-loaded, and the remaining sentences are dense with useful operational detail rather than filler. The structure moves logically from action to mutation semantics, failure behavior, verification, and caveat.

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?

The behavior, failure handling, and verification notes are unusually complete for a mutating UI automation tool, and the output schema can carry return details. However, the description leaves all four input parameters undocumented, which is a significant completeness gap for invocation.

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

Parameters1/5

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

The input schema has four parameters with 0% description coverage, and the description does not explain hwnd, text, title, or delay_ms. It mentions only broad concepts like posting text to a window's text control, which does not compensate for the missing parameter meanings.

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 gives a specific verb and resource: posting text to a window's text control. It also distinguishes the mechanism from alternatives by stating it does not activate or restore the window and injects no physical input, which separates it from sibling tools like send_keys or click_at.

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?

It clearly establishes the relevant context: use this to post text without activating the window, and warns that some applications require an active window to process text. It does not explicitly name alternative tools or give a full when-not-to-use rule, so it stops short of a 5.

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