Skip to main content
Glama

Get a note

get_note
Read-only

Fetch a note's full, heading-map, chunk, or metadata context by ULID, chunk ID, or vault path to verify details before answering from a search snippet.

Instructions

Fetch the full context behind a search hit before answering from a snippet alone. Fetch a single note by its ULID, indexed chunk_id, or vault-relative path. chunk_id inputs return format='chunk' with the sandbox-wrapped chunk body; a parent-hash mismatch returns an explicit stale-chunk error. Chunk reads ignore offset/limit. For note inputs, format='full' returns the sandbox-wrapped body and offset/limit page large notes by character range; format='map' pages the heading outline (offset/limit count headings); format='metadata' pages a sanitized JSON string in metadata_json (offset/limit count characters; concatenate pages then parse JSON). Read next_offset until null with an unchanged content_hash. Large inline metadata is omitted with metadata_truncated=true. All successful read envelopes obey DATACRON_MAX_READ_RESPONSE_CHARS. heading_path selects exact rendered heading ancestry including its subtree; repeated paths require a 1-based heading_occurrence. Section reads require full format and a note input, include source line spans and the original note hash, and paginate relative to the redacted section. Every format carries the same freshness as recall when the vault declares review windows.

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_or_path": "<id_or_path>"
    },
    "name": "get_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
formatNofull
offsetNo
id_or_pathYes
heading_pathNo
heading_occurrenceNo

Output Schema

NameRequiredDescriptionDefault
idNo
tagsNo
titleNo
totalNo
formatYes
offsetNo
aliasesNo
contentNo
createdNo
note_idNo
sectionNo
updatedNo
chunk_idNo
headingsNo
line_endNo
rel_pathYes
returnedNo
writableNo
freshnessNo
truncatedNo
line_startNo
chunk_countNo
frontmatterNo
header_pathNo
next_offsetNo
total_charsNo
content_hashNo
source_mountNo
source_vaultNo
limit_appliedNo
metadata_jsonNo
next_chunk_idNo
prev_chunk_idNo
returned_charsNo
estimated_tokensNo
note_content_hashNo
chunk_content_hashNo
metadata_truncatedNo
content_hash_contractNo
returned_estimated_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.20
    • addedOutput schema / $defs / FreshnessOutput
      Added value: +{
      +  "description": "Review verdict on ``last_verified``; present only when the vault sets review windows.",
      +  "properties": {
      +    "age_days": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Age Days"
      +    },
      +    "last_verified": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Last Verified"
      +    },
      +    "review_after_days": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Review After Days"
      +    },
      +    "rule_tag": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Rule Tag"
      +    },
      +    "status": {
      +      "title": "Status",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "title": "FreshnessOutput",
      +  "type": "object"
      +}
    • addedOutput schema / properties / freshness
      Added value: +{
      +  "$ref": "#/$defs/FreshnessOutput"
      +}
  2. Changed9 schema fields changedv0.1.18
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "full",
      -  "map",
      -  "chunk"
      -]New value: +[
      +  "full",
      +  "map",
      +  "chunk",
      +  "metadata"
      +]
    • changedOutput schema / description
      Previous value: -"Successful ``get_note`` payload across full, map, and chunk formats."New value: +"Successful ``get_note`` payload across body, map, chunk, and metadata formats."
    • changedOutput schema / properties / format / enum
      Previous value: -[
      -  "full",
      -  "map",
      -  "chunk"
      -]New value: +[
      +  "full",
      +  "map",
      +  "chunk",
      +  "metadata"
      +]
    • addedOutput schema / properties / metadata_json
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Metadata Json"
      +}
    • addedOutput schema / properties / metadata_truncated
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Metadata Truncated"
      +}
    • addedOutput schema / properties / returned
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Returned"
      +}
    • addedOutput schema / properties / source_mount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Source Mount"
      +}
    • changedOutput schema / properties / source_vault / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "docs",
      -      "memory"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "docs",
      +      "memory",
      +      "extra"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / total
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Total"
      +}
  3. Changed36 schema fields changedv0.1.17
    • addedOutput schema / description
      Added value: +"Successful ``get_note`` payload across full, map, and chunk formats."
    • removedOutput schema / properties / aliases / default
      Removed value: -null
    • removedOutput schema / properties / chunk_content_hash / default
      Removed value: -null
    • removedOutput schema / properties / chunk_count / default
      Removed value: -null
    • removedOutput schema / properties / chunk_id / default
      Removed value: -null
    • removedOutput schema / properties / content / default
      Removed value: -null
    • removedOutput schema / properties / content_hash / default
      Removed value: -null
    • removedOutput schema / properties / content_hash_contract / default
      Removed value: -null
    • removedOutput schema / properties / created / default
      Removed value: -null
    • removedOutput schema / properties / estimated_tokens / default
      Removed value: -null
    • removedOutput schema / properties / format / default
      Removed value: -null
    • removedOutput schema / properties / frontmatter / default
      Removed value: -null
    • removedOutput schema / properties / header_path / default
      Removed value: -null
    • removedOutput schema / properties / headings / default
      Removed value: -null
    • removedOutput schema / properties / id / default
      Removed value: -null
    • removedOutput schema / properties / limit_applied / default
      Removed value: -null
    • removedOutput schema / properties / line_end / default
      Removed value: -null
    • removedOutput schema / properties / line_start / default
      Removed value: -null
    • removedOutput schema / properties / next_chunk_id / default
      Removed value: -null
    • removedOutput schema / properties / next_offset / default
      Removed value: -null
    • removedOutput schema / properties / note_content_hash / default
      Removed value: -null
    • removedOutput schema / properties / note_id / default
      Removed value: -null
    • removedOutput schema / properties / offset / default
      Removed value: -null
    • removedOutput schema / properties / prev_chunk_id / default
      Removed value: -null
    • removedOutput schema / properties / rel_path / default
      Removed value: -null
    • removedOutput schema / properties / returned_chars / default
      Removed value: -null
    • removedOutput schema / properties / returned_estimated_tokens / default
      Removed value: -null
    • removedOutput schema / properties / section / default
      Removed value: -null
    • addedOutput schema / properties / source_vault
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "docs",
      +        "memory"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Source Vault"
      +}
    • removedOutput schema / properties / tags / default
      Removed value: -null
    • removedOutput schema / properties / title / default
      Removed value: -null
    • removedOutput schema / properties / total_chars / default
      Removed value: -null
    • removedOutput schema / properties / truncated / default
      Removed value: -null
    • removedOutput schema / properties / updated / default
      Removed value: -null
    • addedOutput schema / properties / writable
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Writable"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "format",
      +  "rel_path"
      +]
  4. Changed4 schema fields changedv0.1.10
    • addedInput schema / properties / heading_occurrence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Heading Occurrence"
      +}
    • addedInput schema / properties / heading_path
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Heading Path"
      +}
    • addedOutput schema / $defs / NoteSectionOutput
      Added value: +{
      +  "description": "Selected heading subtree; physical line bounds are inclusive and 1-based.",
      +  "properties": {
      +    "heading_occurrence": {
      +      "title": "Heading Occurrence",
      +      "type": "integer"
      +    },
      +    "heading_path": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Heading Path",
      +      "type": "array"
      +    },
      +    "line_end": {
      +      "title": "Line End",
      +      "type": "integer"
      +    },
      +    "line_start": {
      +      "title": "Line Start",
      +      "type": "integer"
      +    },
      +    "matching_headings": {
      +      "title": "Matching Headings",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "heading_path",
      +    "heading_occurrence",
      +    "matching_headings",
      +    "line_start",
      +    "line_end"
      +  ],
      +  "title": "NoteSectionOutput",
      +  "type": "object"
      +}
    • addedOutput schema / properties / section
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/NoteSectionOutput"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  5. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly annotations it discloses stale-chunk errors on parent-hash mismatch, sandbox wrapping, metadata sanitation and metadata_truncated=true, the DATACRON_MAX_READ_RESPONSE_CHARS envelope cap, chunk reads ignoring offset/limit, and freshness parity with recall under review windows. These are non-obvious behaviors an agent could not infer from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the purpose and every sentence carries information, but the body is a single dense block of jargon-laden clauses where the per-format paging rules would be easier to scan as separate statements. Length is defensible for six undocumented parameters, yet readability suffers.

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?

An output schema exists, yet the description still explains envelope behavior, pagination termination (next_offset with unchanged content_hash), and section line spans, which is more than required. Minor gaps remain, such as how id_or_path is disambiguated between a ULID and a path that could look like one.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: offset/limit are redefined per format (characters for full/metadata, heading count for map, ignored for chunk), heading_path is exact rendered ancestry with heading_occurrence for duplicates, and section reads require full format plus a note input. This adds substantial meaning beyond the bare parameter names.

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 opening sentence gives a specific verb and resource ('Fetch a single note') plus the accepted identifiers (ULID, chunk_id, vault-relative path), and positions it against snippet-based siblings ('before answering from a snippet alone'). It is clearly distinguishable from list_notes and the search_* tools.

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 states a clear usage context (read full context rather than answer from a recall snippet) and explains which input type triggers which format behavior. It does not name a sibling alternative explicitly or state when-not to call it, so it stops short of the top tier.

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