Skip to main content
Glama

add_html_tool

Create and add a new HTML tool with files, entry point, category, and description into the workspace's resources/html directory for organizing mobile-optimized interactive tools.

Instructions

Create a new HTML tool in the workspace resources/html directory

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

Input Schema

NameRequiredDescriptionDefault
filesYesArray of files to create for this tool
categoryNoOptional category for organizing tools (e.g., "games", "utilities", "visualizations")
toolNameYesName of the HTML tool (will be used as folder name)
descriptionNoBrief description of what this HTML tool does
workspacePathYesAbsolute path to the workspace directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.9/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, and it discloses only the target directory. It says nothing about what happens when toolName already exists (overwrite vs error), whether the file array is written atomically, permission requirements, or what the response contains. For a five-parameter creation tool that writes files, this is a meaningful gap.

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?

A single front-loaded sentence with no wasted words. It is efficient rather than padded, though the terseness is part of why behavioral coverage is thin.

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 file-creating tool with three required parameters, no annotations, and no output schema, so the description must explain side effects and failure modes. It does not cover duplicate names, directory creation, or return values, leaving too much for the agent to guess.

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 coverage is 100%, so every parameter (files, category, toolName, description, workspacePath, isEntryPoint) is already documented in the schema itself. The description adds only that toolName becomes a folder under resources/html, which is useful orientation but not parameter detail. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource ('Create a new HTML tool') plus the destination ('workspace resources/html directory'), so an agent knows exactly what the call produces. It does not distinguish itself from siblings like edit_html_tool, get_html_tool, or list_html_tools, so it stops short of a 5.

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 versus edit_html_tool (modify an existing tool) or add_tool_to_doc (embed one). The only implied context is that this is for net-new creation in a given workspace.

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