Skip to main content
Glama
aic0t

AI Coach MCP Server

by aic0t

Read an AI Coach memo

read_ai_coach_note
Read-only

Retrieve a memo's Markdown body using its noteId. If the content is truncated, continue reading with offsetBytes to get the full text.

Instructions

Read the Markdown body of one memo in AI Coach. When 'truncated' is true, call again with offsetBytes = offsetBytes + returnedBytes. Keep the returned modifiedAt and pass it as expectedModifiedAt when you later write to the same memo. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoDisplay language (BCP 47).
noteIdYesA noteId returned by list / search — a path relative to the memo folder, not absolute.
maxBytesNoMax bytes per call (default and cap 32768).
offsetBytesNoByte offset to start reading from. Use it to read the rest when truncated is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.4
    • changedInput schema / properties / locale / description
      Previous value: -"Display language hint (BCP 47). The dashboard view passes hostContext.locale through unchanged."New value: +"Display language (BCP 47)."
    • changedInput schema / properties / maxBytes / description
      Previous value: -"Maximum bytes to read in one call (both the default and the cap are 32768)."New value: +"Max bytes per call (default and cap 32768)."
    • changedInput schema / properties / noteId / description
      Previous value: -"A noteId returned by list / search. It is a path relative to the memo folder (`minutes.md` / `work/minutes.md`), not an absolute path."New value: +"A noteId returned by list / search — a path relative to the memo folder, not absolute."
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "connection": {
      -      "enum": [
      -        "connected",
      -        "app_unavailable",
      -        "incompatible"
      -      ],
      -      "type": "string"
      -    },
      -    "deleted": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "deleted": {
      -          "type": "boolean"
      -        },
      -        "noteId": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "noteId",
      -        "deleted"
      -      ],
      -      "type": "object"
      -    },
      -    "error": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "code": {
      -          "type": "string"
      -        },
      -        "reason": {
      -          "type": "string"
      -        },
      -        "retryable": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "retryable"
      -      ],
      -      "type": "object"
      -    },
      -    "folderName": {
      -      "type": "string"
      -    },
      -    "groups": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "hits": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "group": {
      -            "type": "string"
      -          },
      -          "modifiedAt": {
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "type": "string"
      -          },
      -          "sizeBytes": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "snippet": {
      -            "type": "string"
      -          },
      -          "title": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "noteId",
      -          "title",
      -          "modifiedAt",
      -          "sizeBytes",
      -          "snippet"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "note": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "content": {
      -          "type": "string"
      -        },
      -        "modifiedAt": {
      -          "type": "string"
      -        },
      -        "noteId": {
      -          "type": "string"
      -        },
      -        "offsetBytes": {
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "returnedBytes": {
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "sizeBytes": {
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "title": {
      -          "type": "string"
      -        },
      -        "truncated": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "noteId",
      -        "title",
      -        "modifiedAt",
      -        "sizeBytes",
      -        "content",
      -        "offsetBytes",
      -        "returnedBytes",
      -        "truncated"
      -      ],
      -      "type": "object"
      -    },
      -    "notes": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "excerpt": {
      -            "type": "string"
      -          },
      -          "group": {
      -            "type": "string"
      -          },
      -          "modifiedAt": {
      -            "type": "string"
      -          },
      -          "noteId": {
      -            "type": "string"
      -          },
      -          "sizeBytes": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "title": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "noteId",
      -          "title",
      -          "modifiedAt",
      -          "sizeBytes",
      -          "excerpt"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "offset": {
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "protocolVersion": {
      -      "const": 1,
      -      "type": "number"
      -    },
      -    "total": {
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "updatedAt": {
      -      "type": "string"
      -    },
      -    "written": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "created": {
      -          "type": "boolean"
      -        },
      -        "group": {
      -          "type": "string"
      -        },
      -        "modifiedAt": {
      -          "type": "string"
      -        },
      -        "noteId": {
      -          "type": "string"
      -        },
      -        "sizeBytes": {
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "title": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "noteId",
      -        "title",
      -        "created",
      -        "modifiedAt",
      -        "sizeBytes"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "protocolVersion",
      -    "connection",
      -    "updatedAt"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses important behavioral details: truncation/pagination handling via offsetBytes and returnedBytes, and the optimistic concurrency contract involving modifiedAt/expectedModifiedAt. This is genuinely additive context, not just restating annotations.

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

Conciseness5/5

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

Four short sentences, each carrying useful information: purpose, pagination rule, concurrency rule, and read-only safety. There is no verbose filler, and the most important action is front-loaded.

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?

The description covers the key non-obvious behaviors (pagination, modifiedAt handoff) and the read-only nature. Since there is no output schema, the description mentions response fields like truncated, returnedBytes, and modifiedAt, but it doesn't explicitly name the field for the Markdown body itself. Minor gap, but the core calling contract is well specified.

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 description coverage is 100%, so the parameters are already well-documented. The description reinforces offsetBytes usage but does not add meaning beyond what the schema already provides. Baseline 3 is appropriate.

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 uses a specific verb ('Read') and a specific resource ('Markdown body of one memo in AI Coach'), clearly distinguishing it from list/search (which find notes) and write/delete (which mutate them). The scope is explicit and unambiguous.

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?

The description gives clear procedural guidance: how to paginate when 'truncated' is true and how to carry modifiedAt forward for later writes. It doesn't explicitly contrast this tool with siblings like show_ai_coach_message or show_ai_coach_file, so it lacks explicit exclusions, but the usage context is clear.

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