Skip to content

Proposal: MCP 'read_with_context' for Agent Precision #15

@Protocol-zero-0

Description

@Protocol-zero-0

Proposal

Current mcp.notes.read returns raw content. For autonomous agents (Protocol Zero class) operating on large vaults, precision is critical.

The Need

Agents often need to:

  1. Cite specific sections of a note (e.g., "As per lines 10-15...").
  2. Understand the context of a snippet (headers above it).

Suggested Feature

Enhance mcp.notes.read or add mcp.notes.read_context that supports:

  • Line Numbering: Output content with line numbers.
  • Header Breadcrumbs: Return the hierarchy of headers for the requested section.

Example Payload

{
  "content": "...",
  "lines": { "start": 10, "end": 25 },
  "context": ["# Projects", "## Active", "### Protocol Zero"]
}

This empowers agents to be sovereign navigators of knowledge bases, rather than just blind readers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions