Skip to main content
Glama

get_html_tool

Retrieve details and files for a specific HTML tool in a workspace. Use listOnly first to inspect file names and sizes before reading large tools, then read individual files as needed.

Instructions

Get details and files of a specific HTML tool. Pass listOnly=true to get file names and sizes without content — do this first for large tools, then read individual files with read_html_file.

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

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category where the tool is located
listOnlyNoIf true, return file names and sizes only (no content). Default: false.
toolNameYesName of the HTML tool
workspacePathYesAbsolute path to the workspace directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.19.0
    • addedInput schema / properties / listOnly
      Added value: +{
      +  "description": "If true, return file names and sizes only (no content). Default: false.",
      +  "type": "boolean"
      +}
  2. First observedv0.6.0

TDQS

A3.8/5.0
Behavior3/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. It does disclose one important trait — that full retrieval can produce large content, with listOnly as a mitigation — and 'get' implies a read-only operation. It says nothing about what 'details' includes, whether content is truncated, or error behavior for a missing tool or path.

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?

Two short sentences, with the core purpose front-loaded and the escalation path (listOnly, then read_html_file) following immediately. No filler or redundancy.

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 4-parameter read tool with a fully documented schema and no output schema, the description covers purpose and the critical large-payload workflow. The main remaining gap is the vague phrase 'details and files', which leaves the agent guessing at the exact return shape without an output schema to fall back on.

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 four parameters, including listOnly and category, are already documented in the schema. The description reinforces listOnly with a usage rationale but adds no new semantic detail such as path format expectations or how category interacts with toolName.

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: get details and files of a specific HTML tool. That distinguishes it from the file-level sibling read_html_file, which is named. It does not explicitly distinguish itself from list_html_tools, though 'a specific HTML tool' implies single-item retrieval.

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

Usage Guidelines4/5

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

It provides concrete workflow guidance: pass listOnly=true first for large tools, then read individual files with read_html_file. That names an alternative and the condition that selects it. It gives no guidance on when to prefer list_html_tools or get_html_tool_guide over this tool, so it falls short of full when/when-not coverage.

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