Skip to main content
Glama

add_tool_view

Adds an HTML tool as a custom view tab on a database or sheet so it renders live filtered rows with read/write access; use it after building a card layout or chart.

Instructions

Show an HTML tool as a Custom view tab of a database or sheet: the tool renders that data's live rows (await hillnote.data() -> rows() follows the view's filters/search/sort; add/update/remove write back). Use after building a tool for a specific database/sheet (a card layout, an HTML chart…). Pass exactly one of database or sheet. Appends { type: "tool", toolPath } to its views and makes it the open view; the user approves the tool's access to the data once, in the app.

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

Input Schema

NameRequiredDescriptionDefault
sheetNoName (or folder name) of the sheet to add the view to
categoryNoOptional category where the tool is located
databaseNoName (or folder name) of the database to add the view to
toolNameNoThe tool's folder name under resources/html/
toolPathNoAlternative to toolName: the tool folder or its entry file, relative to the workspace root
viewNameNoTab name (default: the tool's name)
workspacePathYesAbsolute path to the workspace directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the mutation (appends { type: "tool", toolPath } to views), the side effect of making it the open view, and an auth requirement (user approves data access once in the app). It also explains runtime behavior, that rows follow the view's filters/search/sort and that add/update/remove write back.

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?

Dense but front-loaded: purpose first, then when to use, then the exclusivity constraint, then side effects. Every sentence carries information, though the parenthetical hillnote.data() detail packs multiple concepts into one long sentence and could be split for readability.

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 7-parameter mutation tool with no annotations and no output schema, the description covers effect, side effects, auth, and live-data behavior well. It does not cover failure modes (e.g., what happens with an invalid toolPath or a duplicate view), which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning beyond the schema: the mutual-exclusivity rule for database vs sheet is not expressed in the schema (both are optional there), and it clarifies that the tool must already be built. The toolName/toolPath alternation and viewName default are left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Show an HTML tool as a Custom view tab of a database or sheet,' then immediately clarifies what that means (live rows bound to the tool). This is clearly distinguishable from siblings like add_html_tool or add_tool_to_doc, which do different things with tools.

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?

Gives an explicit prerequisite ('Use after building a tool for a specific database/sheet') and a hard constraint ('Pass exactly one of database or sheet'), which is real usage guidance. It does not explicitly name alternatives or a when-not-to-use case, keeping it just short of a 5.

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