Skip to main content
Glama

open_library

Opens a Hillnote library or specific section so users can view its landing page or a cited passage after searching, instead of opening it as a document.

Instructions

Open a library (📚 folder of sectioned volumes) in the running Hillnote app so the user can see it: its landing page (volumes, outlines, search, Import/Reindex/Share), or one section document when section is given. Libraries are folders, not documents — use this instead of open_document for them. Accepts the same library/volume/section references as the library tools (ids, paths, titles). Use after search_library/get_library_section to show the user the passage you cited.

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": {
      "workspace": "<workspace>",
      "library": "<library>"
    },
    "name": "open_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
volumeNoOptional volume id, folder or title (used to disambiguate `section`; the landing page opens either way)
libraryYesLibrary id (lib-…), path (documents/<Library>) or title (from list_libraries)
sectionNoOptional section id (s-…), section file path or exact title — opens that section document instead of the landing page
workspaceYesWorkspace path or name
focusWindowNoBring the Hillnote window to the front (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose meaningful behavior: the target is a live running app, the effect is a UI reveal the user sees, and `focusWindow` defaults to bringing the window forward. It does not cover failure modes (unknown library/section, app not running) or what the call returns, which keeps it below a 5.

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?

Front-loaded with the core action, then the landing-page vs. section behavior, then sibling disambiguation, then the calling pattern. The parenthetical enumerations (landing page contents) are the only density cost and they give the agent a picture of the resulting UI state, so nothing is wasted.

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 five-parameter tool with no annotations and no output schema, the description covers the action, the two view modes, reference formats, and the sibling it replaces. The remaining gap is return behavior — with no output schema, the agent does not know whether it gets a confirmation, a handle, or nothing back.

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 every parameter's meaning is already documented, and the description mostly restates this ('Accepts the same library/volume/section references as the library tools (ids, paths, titles)'). The useful addition is that `volume` merely disambiguates `section` and the landing page opens either way, but the schema already says that. Baseline 3 is correct.

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 ('Open a library ... in the running Hillnote app') and immediately clarifies what the user will see (landing page vs. a single section document when `section` is given). It also explicitly distinguishes the resource from a lookalike: 'Libraries are folders, not documents — use this instead of open_document for them.' An agent can route between this and open_document without opening either schema.

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 exclusion ('use this instead of open_document') and a positive downstream workflow ('Use after search_library/get_library_section to show the user the passage you cited'). Both when-to-use and when-not-to-use are stated rather than implied.

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