Skip to main content
Glama

zk_get_note

Retrieve a specific note from the Zettelkasten system by its ID or title, enabling quick access to stored atomic notes for knowledge management and synthesis.

Instructions

Retrieve a note by ID or title. Args: identifier: The ID or title of the note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYes

Implementation Reference

  • The main handler function for the zk_get_note tool. It attempts to retrieve the note by ID first, then by title using ZettelService, formats the metadata and content, and returns a formatted string or error message.
    def zk_get_note(identifier: str) -> str:
        """Retrieve the full content and metadata of a note by its unique ID or title.
    
        Args:
            identifier: The unique ID or exact title of the note to retrieve
        """
        try:
            identifier = str(identifier)
            # Try to get by ID first
            note = self.zettel_service.get_note(identifier)
            # If not found, try by title
            if not note:
                note = self.zettel_service.get_note_by_title(identifier)
            if not note:
                return f"Note not found: {identifier}"
    
            # Format the note
            result = f"# {note.title}\n"
            result += f"ID: {note.id}\n"
            result += f"Type: {note.note_type.value}\n"
            result += f"Created: {note.created_at.isoformat()}\n"
            result += f"Updated: {note.updated_at.isoformat()}\n"
            if note.tags:
                result += f"Tags: {', '.join(tag.name for tag in note.tags)}\n"
            # Add note content, including the Links section added by _note_to_markdown()
            result += f"\n{note.content}\n"
            return result
        except Exception as e:
            return self.format_error_response(e)
  • The @mcp.tool decorator that registers the zk_get_note function as an MCP tool, specifying its name, description, and annotations indicating it's read-only and idempotent.
    @self.mcp.tool(
        name="zk_get_note",
        description="Retrieve the full content and metadata of a note by its unique ID or title.",
        annotations={
            "readOnlyHint": True,
            "destructiveHint": False,
            "idempotentHint": True,
        },
    )
  • Debug log confirming the registration of the zk_get_note tool.
    logger.debug("Tool zk_get_note registered")
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Retrieve') but fails to describe critical traits such as error handling (e.g., what happens if the note doesn't exist), permission requirements, rate limits, or the format of returned data. This leaves significant gaps for a read operation in a note-taking context.

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 appropriately sized and front-loaded with the core purpose in the first sentence, followed by a brief parameter explanation. It avoids unnecessary verbosity, though the formatting with indentation and 'Args:' could be slightly cleaner for direct readability.

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

Completeness2/5

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

Given the tool's complexity (a read operation with potential behavioral nuances), lack of annotations, no output schema, and minimal parameter details, the description is incomplete. It doesn't address return values, error cases, or interaction with sibling tools, making it inadequate for reliable agent use without additional context.

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?

The description adds minimal semantics beyond the input schema, which has 0% description coverage. It clarifies that 'identifier' can be an ID or title, but doesn't specify format (e.g., string patterns), uniqueness constraints, or examples. With one parameter and low schema coverage, this provides some value but doesn't fully compensate for the lack of schema details.

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?

The description clearly states the tool's purpose with a specific verb ('Retrieve') and resource ('a note'), and distinguishes it from siblings like 'zk_search_notes' or 'zk_list_notes_by_date' by focusing on direct lookup by ID or title. However, it doesn't explicitly contrast with 'zk_get_linked_notes' or 'zk_find_similar_notes', which slightly limits differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving notes by specific identifiers (ID or title), but provides no explicit guidance on when to use this versus alternatives like 'zk_search_notes' for broader queries or 'zk_list_notes_by_date' for date-based listing. It lacks clear exclusions or prerequisites, leaving usage context somewhat ambiguous.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Liam-Deacon/zettelkasten-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server