Skip to main content
Glama

fill

Destructive

Clears a form field and enters a specified value, automatically waiting for the element before typing; use key-by-key typing instead when JavaScript key events are needed.

Instructions

[Agent Browser] Clear and fill a form field with the given value. Clears existing content before typing. Auto-waits for element. Use 'type' instead if you need to trigger key-by-key JS events.

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": {
      "selector": "<selector>",
      "value": "<value>"
    },
    "name": "fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
selectorYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description is consistent with that by disclosing that existing content is cleared first. It adds two useful behavioral facts beyond annotations: the clear-before-type ordering and auto-wait for the element, though it says nothing about failure behavior when the selector does not match.

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?

Three short sentences, front-loaded with the action, then the destructive behavior, then the alternative. Nothing is redundant or 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?

The tool is simple, an output schema exists, and annotations cover the risk profile, so the description covers nearly everything an agent needs. The remaining gap is selector syntax, which is not addressed anywhere in the definition.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, and it only clarifies the value argument ('with the given value'). The selector parameter's expected format (CSS? role? text?) is completely undocumented, which is the main source of invocation error for this tool.

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 ('Clear and fill a form field') and immediately differentiates itself from the sibling 'type' by naming the condition that selects the other tool. An agent can distinguish fill from type without opening either schema.

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 explicitly routes the agent to 'type' when key-by-key JS events are needed, which is clear alternative-selection guidance. It stops short of when-not-to-use cases (e.g., non-form elements or contenteditable regions) and does not mention the 'clear' sibling despite overlapping behavior.

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