Skip to main content
Glama
GetNote MCP Server

GetNote MCP Server

by iswalle

read_note_section

Read-only

Read a specific section of a note or locate literal keywords using UTF-16 offsets and version, with limits to retrieve only the needed content.

Instructions

读取一篇笔记的指定节选,或用字面关键词查找原话(不是语义搜索)。使用目录/上一段返回的 UTF-16 offset 和 version;普通读取默认8000、最多30000单元。keyword 用 | 分隔备选词;不传 limit 搜索到文末,传 limit 仅搜索该窗口,无命中不回退前文。内容变化重新取目录,读完停止;失败不自动取全文。

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": {
      "id": "<id>"
    },
    "name": "read_note_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes真实笔记 ID 的十进制字符串;来自列表或搜索结果,不能传 JS Number。
limitNo普通读取上限/关键词搜索窗口;不传保留默认语义
offsetNo原样使用返回的 UTF-16 offset,不能按字节或 Unicode 码点计算
keywordNo字面关键词,例如 绩效|晋升;不是正则或语义查询
versionNo原样使用上次返回的版本;变化则重新获取目录

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.3

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/non-destructive annotations, the description discloses operational behavior: default and maximum read sizes, UTF-16 offset/version continuity, keyword search window semantics, no earlier-text fallback, re-fetching directory after content changes, and failing without auto-fetching full text.

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 description is front-loaded with purpose and then packs the operational rules into a dense paragraph. Every clause carries useful information, though the semicolon-heavy structure is slightly harder to scan than separated sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter read tool with no output schema, the description covers the necessary behavioral context: how to use offset/version from prior responses, read limits, keyword search semantics, and failure behavior. An agent has enough guidance to invoke it safely.

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?

With 100% schema coverage the baseline is 3, and the description adds useful meaning beyond the schema: the 8000 default read size, keyword alternatives separated by |, limit-as-search-window behavior, and no-hit-fallback behavior. It does not add much beyond that for id/version.

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?

The description states a specific verb+resource: reading a specified excerpt of a note or using a literal keyword to find exact wording. It also explicitly distinguishes itself from semantic search, so an agent can understand its purpose without opening the schema.

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?

It gives clear context for when to use the tool: reading an excerpt with returned offset/version, or literal keyword search with | alternatives. It also states important constraints like no fallback on zero hits and no auto-fetch of full text on failure, though it does not explicitly name sibling alternatives such as get_note for full-note reads.

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