Skip to main content
Glama

edit_html_tool

Create, update, or delete files in an existing HTML tool, and optionally change its entry point or description.

Instructions

Edit files in an existing HTML tool

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": {
      "workspacePath": "<workspacePath>",
      "toolName": "<toolName>",
      "operations": "<operations>"
    },
    "name": "edit_html_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category where the tool is located
toolNameYesName of the HTML tool to edit
operationsYesArray of file operations to perform
workspacePathYesAbsolute path to the workspace directory
updateMetadataNoOptional metadata updates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about the destructive capability implied by the 'delete' action, overwriting file contents, or metadata mutation. An agent cannot tell from the description whether existing files are replaced or preserved, or what permissions the operation requires.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but it is under-specified rather than concise. Brevity here comes at the cost of information an agent needs to invoke a multi-operation mutation tool correctly.

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?

This is a high-complexity tool: five parameters, a nested operations array with three action types, no output schema, and no annotations. A seven-word description leaves out destructive semantics, batch behavior, entry-point handling, and selection guidance, which is inadequate for this level of complexity.

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%, covering workspacePath, toolName, operations (with action/filename/content/isEntryPoint), category, and updateMetadata, so the baseline of 3 applies. The description adds no meaning beyond the schema — notably it never explains that 'operations' is a batch applied atomically or how create/update/delete interplay.

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?

The description gives a verb and resource ('Edit files in an existing HTML tool'), which is more than a tautology, but it drastically understates the tool's scope: the schema shows it can create, update, and delete files and rewrite metadata, not merely 'edit' them. It also does not distinguish this tool from siblings like write_html_file or replace_in_html_file, which operate on similar resources.

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?

There is no guidance on when to use this tool rather than write_html_file, replace_in_html_file, read_html_file, or add_html_tool. An agent must infer from sibling names alone that this is the batch/multi-file editing path, which is exactly what the description should have stated.

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