Skip to main content
Glama

Read a draft document

get_document_draft
Read-only

The text of a draft rental document: as TipTap JSON (to edit) and as plain text (to read), with the number of values still missing. Only drafts (a published one is a PDF: get_document). Only for the owner or an editor of the property — it carries the parties' ID numbers. Requires the contracts feature.

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": {
      "rentalId": "<rentalId>",
      "documentId": "<documentId>"
    },
    "name": "get_document_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
rentalIdYesThe rental ID
documentIdYesThe document ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the rest and does so well: it discloses the return payload shape, that the response contains the parties' ID numbers (a sensitivity warning), and that the contracts feature must be enabled. That is meaningful context beyond the structured fields.

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?

Three tight sentences, front-loaded with what is returned before the scoping and permission caveats. The em-dash clause is dense but every sentence carries distinct information; nothing is redundant.

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?

With no output schema, the description steps in to describe the return values (JSON, plain text, missing-value count), and it covers the access and feature prerequisites. For a two-parameter read tool, an agent has everything needed to call it correctly.

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% and both parameters (rentalId, documentId) are documented in the schema, so the baseline is 3. The description adds no format or constraint detail about the identifiers beyond what the schema already provides.

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?

States a specific verb and resource (the text of a draft rental document) plus the two return formats (TipTap JSON to edit, plain text to read) and the missing-value count. It explicitly distinguishes itself from get_document, which serves published PDFs, so an agent can route without opening either 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?

Gives explicit when-to-use ('Only drafts') and when-not ('a published one is a PDF: get_document'), naming the alternative. It also states the access precondition (owner or editor of the property) and the feature gate (contracts feature), leaving little to inference.

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.