Skip to main content
Glama

add_tool_to_doc

Insert an HTML tool link into a specific document at a chosen position, with optional display name and category, using workspace and document paths.

Instructions

Insert an HTML tool reference into a document

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>",
      "documentPath": "<documentPath>",
      "toolName": "<toolName>"
    },
    "name": "add_tool_to_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoOptional category where the tool is located
positionNoWhere to insert the tool reference: "end" (default), "beginning", or "after:<text>"
toolNameYesName of the HTML tool to insert
displayNameNoDisplay name for the tool link (defaults to toolName)
documentPathYesPath to the document file (relative to workspace)
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 provided, so the description carries the full behavioral burden. "Insert" implies a mutation, but it does not say whether the document is modified in place, what happens on duplicate insertion, whether the position defaults are honored, or whether any permissions are needed.

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 filler, which is appropriate for a short definition. Its brevity is efficient rather than padded, though it leaves too little room for the mutation context.

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 six-parameter mutation tool with no annotations and no output schema, so the description should explain the side effect on the document and any preconditions. It provides none of that, leaving an agent to guess at the consequences of a write operation.

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 six parameters — including the position enum-like values and displayName default — are already documented in the schema. The description adds no extra meaning about path formats, category behavior, or how "after:<text>" matching works, so the baseline of 3 applies.

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 uses a specific verb ("Insert") on a specific resource ("HTML tool reference") with a stated target ("a document"), so an agent knows this adds a reference rather than creating the tool itself, implicitly distinguishing it from add_html_tool. It stops short of naming that sibling or stating what kind of document/format is involved.

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 when-to-use guidance, no mention of prerequisites (e.g., that the document and tool must already exist), and no pointer to alternatives such as add_html_tool for creating a tool versus referencing one. The agent must infer the calling context entirely.

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