Skip to main content
Glama

Read a Slaide document

get_document
Read-onlyIdempotent

Use this when you need to see what is in one of the user's own Slaide documents: its title, format, page-by-page content, speaker notes, Excel workbook sheets, current version and supported export formats. Call this before update_document so you know what is actually on the pages — and keep the returned version, you pass it back as expected_version to make sure you do not overwrite someone else's change. Use detail:'outline' when you only need the structure (cheapest), 'content' for the text (default), 'full' only when you genuinely need the raw page HTML. Pages are numbered from 1, exactly as the user sees them in Slaide ("page 4" is page 4). For a long document pass pages to read only the pages you need; if a response lists truncated.omitted_pages, fetch those in a second call. For Excel, use workbook_name, sheet_name and row_start to read another portion of a sheet. Requires a document_id from search_documents.

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

Input Schema

NameRequiredDescriptionDefault
pagesNoPage numbers to read, counted as the user sees them in Slaide. Omit to read the whole document.
detailNoHow much of each page to return: `outline` gives only the first heading, `content` the readable text, `full` the raw page HTML. Omit for `content`.
row_limitNoHow many rows to return per sheet. Omit for 20, or 100 with detail `full`. Detail `outline` returns no rows.
row_startNoSheet row at which reading begins, to page through a long sheet. Omit to start at the first row.
sheet_nameNoRead only the sheet with this name, as listed under `workbooks[].sheets[].name`. Omit for all sheets.
document_idYesOpaque id of the document, taken from search_documents or from a job result. Never a title.
workbook_nameNoRead only this workbook. Use a `name` from `workbooks` of an earlier get_document response. Omit for all workbooks.

Output Schema

NameRequiredDescriptionDefault
pagesYesThe requested pages, in document order.
titleYesTitle as shown in the user's Slaide library.
formatYesPage format of the document, for example `a4-portrait` for a text document or a slide format for a presentation. `excel-model` marks a document that holds only workbooks.
app_urlYesLink that opens the document in the Slaide web app. Share it with the user.
versionYesCurrent revision of the document. Pass it as `expected_version` to update_document.
truncatedNoPresent only when not every requested page fit into one response.
workbooksYesExcel workbooks stored in the document. Empty when it has none.
is_runningYesTrue while a Slaide run is still working on this document; its content may still change.
page_countYesNumber of pages or slides in the whole document, not only the ones returned here.
updated_atYesTime of the last change to the document.
document_idYesOpaque id of the document. Pass it to get_document, update_document or export_document.
available_exportsYesFile types this document can be exported to with export_document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered; the description goes further by explaining the returned `version` must be passed back as `expected_version` to avoid clobbering concurrent edits, and by flagging the `truncated.omitted_pages` condition with a two-call remedy. It does not discuss permissions or error behavior, so it stops short of 5.

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?

Front-loaded with the purpose, then ordered into usage, version-handoff safety, detail-level tradeoffs, pagination and Excel paging. It is dense and largely earns its length, though the detail-level sentence partially restates enum descriptions already present in the schema.

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?

For a 7-parameter read tool with full schema coverage, rich annotations and an output schema, the description covers everything an agent needs: prerequisite id source, cost/verbosity tradeoff, version handoff, truncation recovery and sheet paging. Return-value shapes are correctly left to the output schema.

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?

Schema coverage is 100% and the schema already documents each parameter in depth, so a 3 is the floor; the description still adds value by ranking detail levels by cost, confirming 1-based user-visible page numbering, and framing row_start/sheet_name/workbook_name as paging controls for a second read. Most of the remaining per-parameter detail is already in the schema, capping this at 4.

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 opening sentence names a specific verb and resource ('see what is in one of the user's own Slaide documents') and enumerates exactly what is returned: title, format, page content, speaker notes, sheets, version, export formats. It is clearly distinct from update_document, create_document and search_documents, the latter of which it names as the source of the document_id.

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: before update_document to learn the current page state, and after search_documents to obtain a document_id. It names concrete alternatives and the conditions selecting them ('detail:outline when you only need structure (cheapest)', 'full only when you genuinely need raw page HTML'), plus the follow-up pattern for truncated responses and for reading further Excel rows.

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