Skip to main content
Glama

dom_input_value

Sets the value of a DOM input element and dispatches input/change events, triggering updates for React and Vue controlled inputs during browser debugging.

Instructions

Set the value of an input element and dispatch input/change events (works with React/Vue controlled inputs).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to set as the input value
clearNoClear existing value before typing (default: false)
selectorYesCSS selector of the input element
targetIdYesTarget ID of the tab

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It goes beyond 'set value' by explicitly stating that input/change events are dispatched)Skip, a key side effect that affects controlled frameworks. This is significant additional context beyond the tool name and schema.

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?

A single, efficient sentence that leads with the core action and then adds the compatibility note. No filler words, and every part contributes to understanding the tool's purpose and usage context.

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 simple four-parameter tool with no output schema, the description covers the essential purpose and the key behavioral nuance (event dispatch, framework compatibility). It does not discuss failure behavior or element-not-found cases, but those are minor for such a targeted tool.

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 description coverage is 100%, so all four parameters (text, clear, selector, targetId) are already documented. The description adds no extra insight into parameter meanings or usage, so the baseline of 3 is appropriate.

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 states a clear verb ('set'), a specific resource ('input element'), and the critical behavior ('dispatch input/change events'). It also notes compatibility with React/Vue controlled inputs, which distinguishes this tool from dom_get_value or dom_click and clarifies its niche.

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?

The React/Vue compatibility hint implies when this tool is appropriate, but the description does not explicitly mention alternatives or state when not to use it. An agent can infer usage from the context, but there is no direct routing to or away from sibling tools.

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