Skip to main content
Glama

edit_html_tool

Create, update, or delete files in an existing HTML tool and change its description or entry point. Use it to maintain tool content while managed metadata files remain untouched.

Instructions

Edit files in an existing HTML tool (create/update/delete files, change the description or entry point). tool.meta.json and tool.settings.json are managed and cannot be edited here. To give an existing tool a Sheet for its records, use attach_tool_sheet.

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

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose a real constraint that the schema cannot express, namely that tool.meta.json and tool.settings.json are managed and off-limits. It does not state whether 'delete' or 'update' are irreversible, whether content updates fully overwrite existing files, or what happens if an operation in the batch fails.

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?

Three short sentences, front-loaded with the capability statement, followed by the constraint and the sibling hand-off. No redundant restatement of the tool name or filler; the parenthetical operation list is the only slightly dense element.

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

Completeness3/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 nested operation objects, no annotations, and no output schema, the description covers the key constraint and one alternative but leaves return behavior and failure/atomicity semantics unstated. Adequate to invoke correctly, not adequate to predict what the call will do to existing files.

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 every parameter and nested field is already documented in the schema, setting the baseline at 3. The description adds no format, length, or ordering detail beyond what the schema states, so it neither compensates nor detracts.

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?

Names a specific verb and resource ('Edit files in an existing HTML tool') and parenthetically enumerates the operations covered, including metadata/entry-point changes. An agent can distinguish it from add_html_tool (creation) and from read-only siblings, though it never names the closely overlapping write_html_file / replace_in_html_file.

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?

Gives one explicit routing rule ('To give an existing tool a Sheet for its records, use attach_tool_sheet') and one exclusion (tool.meta.json and tool.settings.json cannot be edited here). It offers no guidance on when to use this batched operations tool versus the single-file write/replace siblings, which is the most likely selection ambiguity.

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