Skip to main content
Glama

value

Read-onlyIdempotent

Reads the current content of an input, textarea, or select element to verify form state or capture user input; use text() for non-input elements.

Instructions

[Agent Browser] Get the current value of an input, textarea, or select element. Use to verify form state or read user input. Returns data.value. For non-input elements, use text() instead.

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

Input Schema

NameRequiredDescriptionDefault
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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered without prose. The description adds the element-type constraint and the shape of the return ('Returns data.value'), but says nothing about behavior on missing elements, disabled inputs, or multiple matches.

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 core action, then usage, then the sibling redirect. No filler or restatement of the name.

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 one-parameter read-only getter with an output schema and full annotations, little more is required; the mention of the return field is redundant with the output schema. The only real gap is selector syntax, which is arguably covered by the schema's own field typing rather than prose.

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?

The single required parameter has 0% schema description coverage, so the description carries the burden, yet it never explains selector syntax (CSS vs XPath vs Playwright-style) or how matching resolves. It only implies the selector should point at an input/textarea/select, which is partial compensation for an undocumented required parameter.

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 names a specific verb and resource ('Get the current value of an input, textarea, or select element') and explicitly scopes it against a sibling by saying to use text() for non-input elements. An agent can distinguish this from text/attr without reading any schema.

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

Usage Guidelines5/5

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

It gives both a positive use case ('verify form state or read user input') and an explicit exclusion with a named alternative ('For non-input elements, use text() instead'). That is the when-to-use plus when-not-to-use pair the rubric rewards.

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