Skip to main content
Glama

Rapier - Markdown Editor & Art

Read Rapier

read
Read-onlyIdempotent

Use this after open, with the document value it returned, before you change a Rapier document and when the person asks what it says or what they changed. Read exact text, a heading/fence map (as:"outline") or a PNG (as:"image") of the page or of the named block, heading or lines. A drawing's block gives it at full detail, even while it is open in Draw. Page tools read their bound page. query finds lines here. search lists Notes and follows the same document rule. Continue next_cursor from the last read with cursor alone. Check human context and omissions before editing. state:true reports pending work and the person’s presence. after_revision with wait_ms waits for their next change. guide returns instructions. guide resource URIs are not document IDs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNo
noteNo
agentNoYour display name on acts. Never grants authority.
blockNo
guideNoInstructions only. Use no other read selectors and no document.
limitNo
linesNo[first, last], 1-based, inclusive.
queryNoLiteral text to find in this document.
sinceNo
stateNo
cursorNoThe next_cursor from the last read. Continue with cursor alone.
searchNoSearch the Notes store. "" lists all. Hosted calls also need document from open.
headingNo
historyNo
versionNo
wait_msNoBounded wait (ms) for the next human revision.
documentNoPrivate document value from a successful open in this chat. Omit with guide or a next-page cursor.
versionsNo
return_idNo
comparisonNo
preferencesNoInclude editor preferences in state. Omitted by default.
operation_idNo
after_revisionNoWith wait_ms: return when the revision passes this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"The next_cursor from the last read. Continue with cursor alone."
    • changedInput schema / properties / document / description
      Previous value: -"From open. Not needed with guide."New value: +"Private document value from a successful open in this chat. Omit with guide or a next-page cursor."
    • changedInput schema / properties / search / description
      Previous value: -"Search the Notes store. \"\" lists all."New value: +"Search the Notes store. \"\" lists all. Hosted calls also need document from open."
  2. Changed5 schema fields changed
    • changedInput schema / properties / agent / description
      Previous value: -"Your display name on acts; never grants authority."New value: +"Your display name on acts. Never grants authority."
    • changedInput schema / properties / document / description
      Previous value: -"From open; not needed with guide."New value: +"From open. Not needed with guide."
    • changedInput schema / properties / guide / description
      Previous value: -"Instructions only; use no other read selectors and no document."New value: +"Instructions only. Use no other read selectors and no document."
    • changedInput schema / properties / preferences / description
      Previous value: -"Include editor preferences in state; omitted by default."New value: +"Include editor preferences in state. Omitted by default."
    • changedInput schema / properties / search / description
      Previous value: -"Search the Notes store; \"\" lists all."New value: +"Search the Notes store. \"\" lists all."
  3. Changed1 schema field changed
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "propertyNames": {
      -      "not": {
      -        "enum": [
      -          "document",
      -          "note",
      -          "block",
      -          "heading",
      -          "lines",
      -          "query",
      -          "search",
      -          "as",
      -          "versions",
      -          "version",
      -          "cursor",
      -          "limit",
      -          "state",
      -          "preferences",
      -          "history",
      -          "since",
      -          "comparison",
      -          "return_id",
      -          "after_revision",
      -          "wait_ms"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "guide"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "anyOf": [
      -      {
      -        "required": [
      -          "document"
      -        ]
      -      },
      -      {
      -        "required": [
      -          "cursor"
      -        ]
      -      }
      -    ],
      -    "not": {
      -      "required": [
      -        "guide"
      -      ]
      -    }
      -  }
      -]
  4. Changed3 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "propertyNames": {
      +      "not": {
      +        "enum": [
      +          "document",
      +          "note",
      +          "block",
      +          "heading",
      +          "lines",
      +          "query",
      +          "search",
      +          "as",
      +          "versions",
      +          "version",
      +          "cursor",
      +          "limit",
      +          "state",
      +          "preferences",
      +          "history",
      +          "since",
      +          "comparison",
      +          "return_id",
      +          "after_revision",
      +          "wait_ms"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "guide"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "document"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "cursor"
      +        ]
      +      }
      +    ],
      +    "not": {
      +      "required": [
      +        "guide"
      +      ]
      +    }
      +  }
      +]
    • addedInput schema / properties / agent / description
      Added value: +"Your display name on acts; never grants authority."
    • addedInput schema / properties / preferences
      Added value: +{
      +  "description": "Include editor preferences in state; omitted by default.",
      +  "type": "boolean"
      +}
  5. Added
  6. Removed
  7. Changed6 schema fields changed
    • addedInput schema / properties / document / description
      Added value: +"From open; not needed with guide."
    • changedInput schema / properties / guide / description
      Previous value: -"Instructions only; use no other read selectors. MCP still requires the current document from open."New value: +"Instructions only; use no other read selectors and no document."
    • addedInput schema / properties / lines / description
      Added value: +"[first, last], 1-based, inclusive."
    • addedInput schema / properties / query / description
      Added value: +"Literal text to find in this document."
    • addedInput schema / properties / search / description
      Added value: +"Search the Notes store; \"\" lists all."
    • changedInput schema / required
      Previous value: -[
      -  "document"
      -]New value: +[]
  8. Changed1 schema field changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "if": {
      -      "required": [
      -        "guide"
      -      ]
      -    },
      -    "then": {
      -      "not": {
      -        "anyOf": [
      -          {
      -            "required": [
      -              "note"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "block"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "heading"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "lines"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "query"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "search"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "as"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "versions"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "version"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "cursor"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "limit"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "state"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "history"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "since"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "comparison"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "return_id"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "after_revision"
      -            ]
      -          },
      -          {
      -            "required": [
      -              "wait_ms"
      -            ]
      -          }
      -        ]
      -      }
      -    }
      -  }
      -]
  9. Added
  10. Removed
  11. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish the read-only, idempotent, non-destructive profile, and the description adds substantial behavior beyond that: cursor-only continuation of next_cursor, that a drawing's block returns full detail even while open in Draw, that page tools read their bound page, that state:true reports pending work and human presence, and the gotcha that guide resource URIs are not document IDs. It also flags the workflow constraint to check human context and omissions before editing.

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?

Nearly every clause carries operational information, with the usage context front-loaded and no filler sentences. The opening sentence is grammatically tangled ('Use this after open, with the document value it returned, before you change...'), and the middle jumps between page binding, drawing detail, and cursor continuation without clear grouping.

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

Completeness3/5

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

For a 23-parameter tool with no output schema, the description covers the main read modes, pagination, waiting, and sibling routing well. However, it leaves a large block of parameters undocumented (note, agent, limit, since, history, version, versions, comparison, return_id, operation_id), so an agent still cannot fully predict behavior for those options.

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?

With 23 parameters and only 43% schema description coverage, the description does add real meaning for the key selectors (as, block, heading, lines, query, search, cursor, state, after_revision/wait_ms, guide, document), but roughly half the surface (note, agent, limit, since, history, version, versions, return_id, comparison, operation_id, preferences) is unexplained in both places. It compensates meaningfully for the most important params but not for the whole schema.

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 names a specific verb plus concrete output modes: exact text, a heading/fence map (as:"outline"), or a PNG (as:"image") of a page, block, heading, or line range. It also distinguishes itself from named siblings (query finds lines here, search lists Notes, guide returns instructions), so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use framing: 'after open, with the document value it returned', 'before you change a Rapier document', and 'when the person asks what it says or what they changed'. It also gives conditional alternatives (use query for line lookup, search for the Notes store, guide for instructions, state:true for pending work, after_revision with wait_ms to wait for a human change).

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.