Skip to main content
Glama

read_doc

Read-only

Read an AFFiNE workspace document as Markdown by its ID or title, optionally specifying the workspace, and return the document with its ID and link.

Instructions

A doc as Markdown, with its id and link

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": {
      "doc": "<doc>"
    },
    "name": "read_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesDoc id or title
workspaceNoWorkspace id or name, leave out for the default workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds the return format (Markdown plus id and link), which is genuine value given there is no output schema, but it says nothing about behavior when the doc is missing or whether the workspace is resolved implicitly.

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 a single short fragment with the return format front-loaded and zero wasted words. The terseness borders on under-specification rather than verbosity, which is a completeness issue rather than a structure one.

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 two-parameter read tool with full schema coverage and annotations, the description covers what comes back, which is the main missing piece elsewhere. It still leaves out any routing guidance and error behavior, so it is only adequate, not complete.

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 both parameters (doc, workspace) are already documented with acceptable detail. The description adds no meaning beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"A doc as Markdown, with its id and link" conveys the resource and the return shape, so an agent can infer retrieval, but the verb is only implied by the name and nothing distinguishes it from siblings like get_card or search. It is recognizable but not stated with a specific verb-plus-resource construction.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance at all. With siblings such as search, tree, read_board, and write_doc, the description never says whether this is the right call for fetching content versus locating it or writing it.

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