Skip to main content
Glama

fill

Sets a value in one web page element chosen by CSS selector or role/name, enabling targeted form input and browser automation.

Instructions

Fill one element; specify exactly one of css or role, with optional role name.

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

Input Schema

NameRequiredDescriptionDefault
cssNo
nameNo
roleNo
valueYes
tab_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, and it omits the behaviors that matter most for a DOM mutation: whether existing content is replaced or appended, whether it waits for the element, what happens if the element is not editable, and what error surfaces. "Fill one element" implies a single-element write but nothing more.

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?

A single tight sentence with the element-count constraint front-loaded and no redundant wording. The trailing "with optional role name" is slightly compressed but still readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but for an unannotated, 5-parameter mutation tool the description is too thin: required value and tab_id are never mentioned and no behavioral guarantees are given. An agent could invoke it but not predict what it does to existing content.

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 0%, so the description must compensate, and it does add real value by declaring that exactly one of css or role is required and that name qualifies role – a mutual-exclusion rule the schema cannot express. However it says nothing about value (the text to enter) or tab_id, both required, so two of five parameters remain unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Fill one element" gives a verb and a target, but the verb is never unpacked (typing text into a form field / editable element) and it doesn't distinguish filling from siblings like click, select, or press, which all target an element too. An agent can guess the intent but not the semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only guidance is a selector constraint ("exactly one of css or role"), which is about how to call it, not when to call it. There is no statement of when to prefer fill over click/select/press, and no preconditions such as the element being editable or already present.

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