Skip to main content
Glama

Write note

write_note

Write a note: shared reference text kept in a database's Meta information, read by every user and agent with access to the database. Notes are how a procedure, decision, finding or status recorded now is still there for the next session.

Keep a note short and to one subject, and file it under every topic a reader might start from, so it is reached by browsing from any of them: topics takes a list, the first being its main topic. Each topic is an existing set inside Meta information, or Meta information itself, and all are checked before anything is written.

mode 'create' (the default) adds a new note called title under the topics. The text goes in the note's AI TEXT attribute and today's date in DATE. mode 'append' adds text to an existing note in one of the topics as a new attribute named UPDATE - for a short status change on the same subject; a new subject belongs in a new note. Append also files the note under any listed topic it is not yet in. Nothing is ever replaced or deleted.

The response gives noteChars, and a warning once a note passes 3000 characters.

A provenance line - Provenance: Name with on - is added at the end of the text unless the text already ends with one.

Titles: browsing shows titles only and title matches rank first, so put every term a reader would look for in the title. A title is one line and cannot contain ';' or a backtick. 'create' refuses a title already used by a note in one of the topics (append to it instead) or by any other name in the database, and every refusal says nothing was written.

Returns nameId, action ('created' or 'appended'), the attribute written, the date, and changed: true.

source: where the content comes from - a conversation, file, URL or document. agent: your AI agent name (e.g. "Claude"). Both are required and land in the audit trail.

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": {
      "database": "<database>",
      "title": "<title>",
      "text": "<text>",
      "source": "<source>",
      "agent": "<agent>"
    },
    "name": "write_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'create' (default) for a new note, 'append' to add to an existing note in one of the topics
textYesThe note's text. For 'append', the text to add.
agentYesAI agent name (e.g. "Claude"). REQUIRED.
titleYesThe note's title - one line, no ';' or backtick, with every term a later search will use
topicNoA single topic - the same as topics with one entry. Give topics or topic.
sourceYesWhere the content comes from - conversation, file, URL or document. REQUIRED.
topicsNoEvery set inside Meta information the note belongs in, main topic first, e.g. ["Import", "Data model"]
businessNoOptional. The business this call is for, by name, e.g. "azquo" - it then runs there whatever business the session is in. Worth giving on writes when you work in more than one business: a new MCP session starts in the login's own business. list_businesses shows the names.
databaseYesDatabase name, e.g. "azquo_skills" or a project database

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses several behaviors an agent could not otherwise predict: nothing is ever replaced or deleted, titles are pre-checked for collisions and 'every refusal says nothing was written', topics are validated before any write, a provenance line is auto-appended unless one already ends the text, and a warning fires past 3000 characters. That is exactly the mutation-safety context the annotations alone (destructiveHint=false) do not convey.

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?

It is dense but organized by concern — the core concept, topic filing, mode semantics, response shape, provenance, titles, and returns — and the crucial constraint (nothing replaced or deleted) appears early. A few sentences, particularly the title-ranking explanation, are longer than strictly necessary, but none is filler.

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, yet the description names the return fields (noteChars with a 3000-character warning, nameId, action, the attribute written, date, changed: true). Combined with mode semantics, refusal behavior, and provenance handling, an agent has everything needed to call this 9-parameter mutation correctly on the first attempt.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the description earns more by explaining that topics is ordered with the first entry as the main topic, that append also files the note under any listed topic it is not yet in, that source and agent land in the audit trail, and that titles cannot contain ';' or a backtick. These add real meaning about how parameter values change behavior rather than restating field text.

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 opens with a specific verb and resource and defines what a note actually is ('shared reference text kept in a database's Meta information, read by every user and agent with access to the database'). It then separates the two write modes by name, so an agent knows this tool writes persistent reference text rather than reading it.

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 gives explicit when-to-use guidance for each mode: 'create' for a new subject, 'append' for 'a short status change on the same subject', and it explicitly redirects a new subject to a new note. It does not route to sibling tools such as find_notes or read_note, but the mode-level guidance is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources