Skip to main content
Glama

web_set_attr

Set a single HTML attribute on a specified node in the working copy, using file ID, node ID, name, value, and expected revision to avoid stale edits.

Instructions

Set one HTML attribute in the working copy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesAttribute name.
valueYesAttribute value.
file_idYesHTML file id.
node_idYesNode id.
expected_revYesRevision returned by your most recent read. Stale revisions refuse; read again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says 'working copy' but does not disclose mutation side effects, permission requirements, reversibility, or what happens to the file revision beyond what the schema already states.

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?

The description is a single short sentence with no wasted words. The action and scope are front-loaded, making it easy to parse quickly.

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?

For a five-parameter mutation tool with no annotations and no output schema, the description is too sparse. It should at least clarify working-copy semantics, the revision-check behavior, or how this differs from other web editing tools in the set.

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 five parameters are already documented in the input schema. The description adds only the notion of setting one attribute and does not contribute additional meaning beyond the schema's name/value/file_id/node_id/expected_rev descriptions.

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 states a specific verb and resource: 'Set one HTML attribute in the working copy.' It is clear what the tool does, but it does not distinguish itself from close siblings like web_set_text or web_css_set, which also mutate content in the same working copy.

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 description gives no explicit when-to-use or when-not-to-use guidance. It does not name alternatives or conditions for choosing this attribute-setting tool over related editing tools such as web_set_text.

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