Skip to main content
Glama

type_text

Destructive

Replace a text field's contents by ref or visible label, optionally pressing Enter to submit. Use it to fill forms and search boxes, requiring confirmation for risky submissions.

Instructions

Replace the contents of a text field with text. Pick the field by ref or its visible label.

submit=True presses Enter afterwards. Outside search boxes that can send or submit something, so it needs confirmed=true after the user approved it.

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": {
      "session_id": "<session_id>",
      "text": "<text>"
    },
    "name": "type_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
textYes
labelNo
submitNo
confirmedNo
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description goes further by stating exactly what is overwritten (existing field contents) and that submit presses Enter, which can send/submit things outside search boxes. It also discloses the `confirmed=true` safety gate requiring prior user approval, adding real context beyond the annotations.

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?

Short and front-loaded, with the core action first and the risky `submit` behavior second. The final sentence is grammatically broken ('Outside search boxes that can send or submit something, so it needs...') and takes a moment to parse, which costs it a point.

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 destructive, open-world, six-parameter tool with no schema descriptions and no output schema, the description covers the essential behavior and the safety precondition. It stops short of stating what happens if neither `ref` nor `label` is provided or what error results from omitting `confirmed`, but those are secondary.

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 0%, so the description must carry the load, and it explains five of six parameters: `text` (the replacement content), `ref` and `label` as alternative field selectors, `submit` (presses Enter), and `confirmed` (approval gate). Only `session_id` is left unexplained, and the precedence when both `ref` and `label` are supplied is not clarified.

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 opens with a specific verb+resource: 'Replace the contents of a text field with `text`,' which immediately separates it from siblings like read_text, click, and press_key. It does not explicitly name an alternative tool, but the action and target are unambiguous.

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 gives concrete selection guidance ('Pick the field by `ref` or its visible `label`') and a clear conditional workflow for `submit` and `confirmed` tied to user approval. The only gap is that it never names a sibling alternative for cases where typing is not the right action.

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