Skip to main content
Glama

describe_document

Retrieve a Grist document's complete schema—tables, columns, and column types—formatted as Python class definitions so you can understand and work with its structure.

Instructions

Get the full schema of a Grist document — all tables, columns, and their types — formatted as Python class definitions. This is the best way to understand a document's structure.

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": "describe_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idNoDocument ID (uses GRIST_DOC_ID env var if not set)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the return shape (Python class definitions covering tables, columns, and types), which is valuable, but says nothing about whether the call is read-only, what happens if doc_id is omitted or invalid, permission requirements, or how large documents are handled. For a zero-annotation tool, the disclosure is thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero waste, with the core purpose and output format front-loaded before the evaluative claim. Nothing could be cut without losing 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, the description must convey what comes back, and it does: table/column/type structure rendered as Python classes. Remaining gaps (error behavior when the document id is missing, scale limits) are modest for a single-parameter read tool.

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% for the single doc_id parameter and the schema already documents the GRIST_DOC_ID fallback, so the baseline of 3 applies. The description never mentions doc_id or the environment-variable fallback, adding no meaning beyond the schema.

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?

States a specific verb and resource ('Get the full schema of a Grist document') and enumerates what the schema contains (tables, columns, types) plus the output format (Python class definitions). It implicitly contrasts with record-reading siblings via 'best way to understand a document's structure', but it never names an alternative sibling, so differentiation is inferred rather than stated.

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?

'This is the best way to understand a document's structure' hints at when to reach for this tool, which is more than nothing. However, there is no explicit when-to-use/when-not guidance and no named alternative (e.g., run_sql or get_records) for cases where an agent wants data rather than structure.

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