Skip to main content
Glama

get_library_section

Reads a library section's paged body, page breaks, optional neighbors, children, figures, and a citation for exact content retrieval from local or cloud libraries.

Instructions

Read one library section: its body (paged with offset/maxChars), page breaks, neighbours/children/figures on request, and a citation to paste (citation.markdown). Section ids are unique per workspace, so library/volume are only needed to narrow a title lookup. 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>",
      "section": "<section>"
    },
    "name": "get_library_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoBody character offset for paging (use bodyRange.end from the previous call while hasMore)
volumeNoVolume id/folder/title — narrows a title lookup
includeNoParts to return (default ["body", "neighbors", "pages"])
libraryNoLibrary id/path/title — narrows a title lookup
sectionYesSection id (s-…), section file path (documents/<Library>/<Volume>/sections/<file>.md) or exact title
maxCharsNoMax body characters per call (default 6000; 0 = metadata only)
workspaceYesWorkspace path/name
inlinePageMarkersNoInsert [p. N] markers into the body at page breaks

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.19.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does address it: cloud-library access is declared read-only and sourced from Hillnote Cloud, and paging semantics (offset from bodyRange.end while hasMore) are disclosed. It stops short of describing error behavior, permission requirements, or what an unknown section id returns.

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 resource and its returnable parts, then moves to the id-vs-title rule and the cloud caveat. Three sentences with little waste, though the parenthetical asides make it denser than it needs to be.

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 an 8-parameter read tool with no output schema, it covers the essentials: paging loop, defaults, narrowing rules, and a named return field (citation.markdown). Minor gaps remain around what `pages` and `figures` contain and how hasMore is surfaced, but nothing blocks a correct call.

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 already 100%, so the baseline is 3, but the description adds real meaning on top: it clarifies that `library`/`volume` are narrowing hints rather than disambiguators, and that `library` accepts an id, title or path. `offset`/`maxChars`/`inlinePageMarkers` semantics live in the schema, which is acceptable at this coverage.

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?

States a specific verb and resource ('Read one library section') and enumerates exactly what comes back: body, page breaks, neighbours/children/figures, and a paste-ready citation. That content-level framing implicitly separates it from map/outline-level siblings, but no sibling is named, so the distinction is inferred rather than stated.

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 concrete guidance: section ids are workspace-unique so `library`/`volume` are only for title lookups, and the include parts are opt-in with stated defaults. It explains the paging loop (offset/maxChars) and covers the cloud-library case, but never explicitly says when to choose this over get_library_outline or search_library.

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