Skip to main content
Glama

type

Writes text into a specified browser field or focused element, replaces content unless clear is false, and can submit with Enter.

Instructions

Escribe texto en un campo o en el foco actual. Reemplaza el contenido salvo clear=false.

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

Input Schema

NameRequiredDescriptionDefault
refNoRef de snapshot, por ejemplo e42 o s0e17.
textYes
clearNo
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
submitNoPulsa Enter al final.
selectorNoSelector CSS o text=Texto visible.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 and does disclose the most important trait: existing content is replaced unless clear=false, which warns of an overwrite by default. It omits whether the tool focuses/clicks the target first, whether it waits for the element, and what happens if neither ref nor selector matches.

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?

Two short sentences with no waste, and the overwrite-default warning is placed prominently. It is not padded, though the terseness leaves behavioral gaps that a clause or two could have closed.

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 six-parameter browser-input tool with no annotations and no output schema, the description covers purpose and the clear flag but is thin on ref-vs-selector precedence, focus behavior, and failure modes, which an agent would need before invoking it reliably.

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 67%, and the description adds real meaning for the one undocumented behavioral flag by explaining that clear=false preserves content. It says nothing about choosing between ref and selector, the meaning of submit's default, or what text does when the target is already filled.

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 gives a specific verb and target: writing text into a field or the currently focused element. It is easy to separate from siblings like click or press_key, though it never names them explicitly.

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 by 'escribe texto en un campo o en el foco actual', which tells the agent it types text rather than pressing keys. There is no explicit when-not guidance, no note on whether the element must be focused first, and no mention of alternatives for key presses or selection.

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