Skip to main content
Glama

Get a document

get_document
Read-only

One document of a property or rental: its details, a download link valid for 15 minutes and, with includeContent, the file itself (the signed PDF for a signed contract).

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

Input Schema

NameRequiredDescriptionDefault
rentalIdNoOr the rental it belongs to (contracts, inventories, receipts…)
documentIdYesThe document ID
propertyIdNoThe property the document belongs to (property documents: deeds, insurance, certificates…)
includeContentNoAlso return the file (up to 5 MB) to read it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish this as a safe, closed-world read, so the description's job is to add context — and it does: the download link expires after 15 minutes, and includeContent returns the actual file, which for a signed contract is the signed PDF. Those are genuine behavioral traits an agent cannot get from the annotations or schema. It stops short of describing what happens on a missing document or an expired link.

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?

A single front-loaded sentence that packs the resource, the link expiry, and the includeContent behavior with no filler. It is slightly dense with stacked clauses, but every clause carries information.

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?

With no output schema and only one required parameter, the description adequately covers what a caller receives and the one flag that changes the response shape. Minor gaps remain: it never says whether propertyId or rentalId is needed when documentId alone is supplied, nor what an error looks like for an unknown or expired document.

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 coverage is 100%, so all four parameters are already documented, including the 5 MB cap on includeContent. The description adds only marginal meaning beyond that — clarifying that includeContent yields the signed PDF for signed contracts — which is more about the return value than parameter semantics. Baseline 3 applies.

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

Purpose4/5

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

The description names the exact resource ('one document of a property or rental') and enumerates what comes back: details, a time-limited download link, and optionally the file itself. That is far more specific than the title, but it does not distinguish this tool from the close sibling 'get_document_draft', so an agent must still infer which one returns finalized vs draft documents.

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

Usage Guidelines3/5

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

Usage is only implied: you fetch a single document by ID and may scope it by property or rental. There is no explicit statement of when to prefer this over get_document_draft or get_invoice_pdf, and no exclusions or prerequisites (e.g., required permissions) are given.

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.