Skip to main content
Glama

get_library_map

Map a library's sections, page ranges, and AI summaries to see its whole structure, choose what to read, answer structural questions, or check whether a topic is covered at all.

Instructions

A compact map of what a library or volume actually contains: every section with its page range and AI summary, capped to fit in a prompt. search_library ranks passages that look like a query; only the map shows the whole shape. Use it for questions about a library: to pick what to read, to answer structural questions ("how does this build up to X", "where should I start"), and to check whether the library covers a topic at all, which a search that found nothing cannot show. Works on cloud libraries connected to the workspace too: pass the library's id, title or path as library — they are read-only and answered from Hillnote Cloud.

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

Input Schema

NameRequiredDescriptionDefault
depthNoSection levels to include (1-6, default 2 — chapters and their immediate children)
volumeNoVolume id (vol-…), folder name or title. Omit for the whole library.
libraryNoLibrary id (lib-…), folder path (documents/<Library>) or title. Omit for every library in the workspace.
maxCharsNoCap on the rendered map (200-20000, default 4000). Entries past the cap are counted and reported, never silently dropped.
workspaceYesWorkspace path/name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description does useful work: it discloses that output is capped to a prompt-sized budget, that overflow entries are counted and reported rather than dropped, and that cloud libraries are read-only and served from Hillnote Cloud. That covers the safety and truncation profile well. It does not address cost/latency of rendering a large map or ordering of returned sections, so it is good but not fully transparent for a no-annotation tool.

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?

The lead sentence front-loads what the tool returns, and the contrast with search_library comes before the use cases. It is dense but a few clauses (quoted example questions, the cloud aside) could be trimmed without losing routing value, keeping it short of a 5.

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?

Five parameters, no annotations, no output schema — the description compensates by stating what each map entry contains (section, page range, AI summary) and how truncation is surfaced. That is enough to call the tool correctly. Minor gaps remain around result ordering and how large a default 4000-char map typically is.

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 baseline is 3. The description largely restates schema facts (library accepts id/title/path; omitting it spans the workspace) and its "capped to fit in a prompt" phrasing duplicates the maxChars description. It adds only marginal meaning beyond the schema, such as framing the cap as prompt-budget management.

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?

"A compact map of what a library or volume actually contains: every section with its page range and AI summary" gives a specific verb-equivalent (return a structural map) plus the exact returned fields, and it explicitly contrasts itself with search_library ("ranks passages that look like a query; only the map shows the whole shape"). An agent can distinguish this from search_library and the outline/section siblings without opening any 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?

It names concrete use cases — picking what to read, structural questions like "where should I start", and verifying topic coverage when a search returns nothing — and states the alternative (search_library) and when that alternative is preferable. The negative case ("which a search that found nothing cannot show") is exactly the kind of when-not guidance that prevents wrong tool selection.

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