Skip to main content
Glama

attach_tool_sheet

Connect a data sheet to an existing HTML tool so it can persist records instead of losing them in the tool sandbox. Creates a new sheet with defined columns or links an existing one, updating the tool's metadata.

Instructions

Connect a Sheet to an EXISTING HTML tool so it can persist records with await hillnote.sheet(name) — e.g. when moving a tool off localStorage, which does not persist in the tool sandbox. With sheet.columns, creates a new sheet at documents/Tools/ owned by the tool; with only sheet.name, connects an existing sheet found by its name or folder name (the user approves access once, in the app). Updates the tool's tool.meta.json (every other field kept; an entry with the same name is replaced). Additive — never deletes sheets or rows. Returns the sheet path and its column ids — key rows by column id. For a new tool, pass sheets to add_html_tool instead.

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

Input Schema

NameRequiredDescriptionDefault
sheetYesThe sheet to attach: { name, columns? } — with columns it is created, without it an existing sheet is connected
categoryNoOptional category where the tool is located
toolNameNoThe tool's folder name under resources/html/ (category folders are searched when category is omitted)
toolPathNoAlternative to toolName: the tool folder or its entry file, relative to the workspace root (e.g. "resources/html/expense-tracker")
workspacePathYesAbsolute path to the workspace directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.3/5.0
Behavior4/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 well: it discloses the mutation target (tool.meta.json), that every other field is kept and same-name entries are replaced, that the operation is 'Additive — never deletes sheets or rows', that the user must approve access once in the app, and what is returned. It stops short of describing failure modes, e.g. what happens when a named sheet cannot be found or when the tool path is ambiguous.

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?

Front-loaded with the core action and the most important alternative in the first two sentences, with detail trailing afterward. It is dense with parentheticals but nearly every clause carries actionable information; minor trimming of the schema-echoing 'with sheet.columns... with only sheet.name...' would tighten it.

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 two-mode mutation tool with no annotations and no output schema, the description covers the mutation scope, the non-destructive guarantee, the approval requirement, the return payload, and the sibling alternative. Remaining gaps are edge-case behavior (missing sheet, duplicate name collisions, category resolution) rather than anything an agent needs to invoke it correctly.

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 the nested sheet/columns/primary semantics are already documented in the schema, and the description largely restates the create-vs-connect branch. The one piece of added meaning is 'Returns the sheet path and its column ids — key rows by column id', which is about output rather than the parameters themselves.

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 ('Connect a Sheet to an EXISTING HTML tool') plus the exact runtime consequence ('so it can persist records with await hillnote.sheet(name)'). It also distinguishes itself from the sibling that handles the other case: 'For a new tool, pass sheets to add_html_tool instead.'

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

Usage Guidelines5/5

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

Gives an explicit triggering scenario ('when moving a tool off localStorage, which does not persist in the tool sandbox') and an explicit exclusion routing to another tool ('For a new tool, pass sheets to add_html_tool instead'). It also branches on parameter shape: 'with sheet.columns, creates a new sheet... with only sheet.name, connects an existing sheet'.

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