Skip to main content
Glama

Read Local OKF Note with Backlinks

okf_read_note
Read-onlyIdempotent

Retrieves complete Markdown, YAML frontmatter, wiki-links, backlinks, and action items for one known note by path, slug, title, or wiki-link; use after locating a note instead of keyword search.

Instructions

Read the complete Markdown content, parsed YAML frontmatter, outgoing [[wiki-links]], incoming backlinks, and extracted action items for a single known note. Use this after discovering a note via okf_search_meetings, okf_list_action_items, or okf_topic_graph; do not use it for fuzzy keyword search across multiple files. Read-only and 100% offline. Returns a structured JSON note object, or sets isError: true with a "Note not found" message if no file path, slug, or title matches target.

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": {
      "target": "<target>"
    },
    "name": "okf_read_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesExact relative file path (e.g. "2026-11-15-architecture-sync.md"), filename slug (e.g. "local-ai-pipeline"), note title, or [[wiki-link]] reference (e.g. "[[Local AI Pipeline]]").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered; the description still adds real context by noting it is 100% offline and by specifying the failure mode (isError: true with a 'Note not found' message when no path, slug, or title matches). It stops short of describing size limits or what a note object's fields look like beyond the enumerated categories, but that is a small gap for a read 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?

Three sentences, each front-loaded and purposeful: what it returns, when to use it, and what happens on failure. 'Read-only and 100% offline' partially restates readOnlyHint/openWorldHint from annotations, which is the only mild redundancy.

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?

There is no output schema, so the description carries the return-value burden and does so by enumerating the returned content categories and the structured JSON shape plus the error state. For a one-parameter single-note read tool, nothing an agent needs in order to call it correctly is missing.

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 coverage is 100% and the single 'target' parameter already documents the accepted forms (path, slug, title, wiki-link) with examples, so the schema does the heavy lifting. The description adds only the resolution-failure condition, which is useful but largely duplicates the fallback behavior implied by the schema's format list.

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 ('Read') and resource ('a single known note') and enumerates exactly what is returned: Markdown content, parsed YAML frontmatter, outgoing wiki-links, incoming backlinks, and action items. It also explicitly separates itself from fuzzy keyword search across multiple files, so an agent can choose between it and the search siblings without opening schemas.

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 explicit when-to-use guidance by naming the discovery tools that should precede it (okf_search_meetings, okf_list_action_items, okf_topic_graph) and an explicit when-not ('do not use it for fuzzy keyword search across multiple files'). Both the positive and negative routing conditions are stated, not inferred.

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