Skip to main content
Glama

get_document

Read-only

Retrieve a document's metadata, including title, type, status, timestamps, editors, and custom fields. Optionally fetch raw HTML content to support round-trip editing.

Instructions

Get a document's metadata: title/type/status/timestamps/editors/custom fields.

include_home_page_content_html=True fills content_html with raw homePageContent HTML — the required source for update_document(home_page_content_html=...). That body is inline prose only — headings and embedded work items render via read_document. Never feed back a blanked (flag=False) body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesSpace ID ('_default' = default space).
project_idYesPolarion project ID.
document_nameYesDocument name within space_id.
include_home_page_content_htmlNoFill content_html with raw HTML for round-trip editing.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
titleYes
statusNo
createdNo
updatedNo
author_idNo
author_nameNo
auto_suspectNo
content_htmlNo
custom_fieldsNo
last_updated_by_idNo
last_updated_by_nameNo
uses_outline_numberingNo
Behavior4/5

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

Annotations declare readOnlyHint=true, and description adds behavioral details: include_home_page_content_html fills content_html with raw HTML, and that body is inline prose only. This goes beyond annotations to clarify output limitations and usage context. No contradictions.

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?

Four sentences, front-loaded with purpose, then parameter explanation, then limitation, then warning. Every sentence adds value; no redundancy or filler. Highly efficient.

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?

Given the tool has an output schema, return values are handled. Description covers purpose, special parameter behavior, relationship with sibling tools, and a critical usage warning. For a read-only metadata tool, this is complete and actionable.

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 covers all 4 parameters with descriptions (100% coverage). Description adds extra value for include_home_page_content_html: it's the required source for update_document, and warns about blanked body. This enriches understanding beyond schema.

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?

Description clearly states 'Get a document's metadata' and lists fields. It distinguishes from sibling tools by explaining that headings and embedded work items render via read_document, and that include_home_page_content_html is needed for update_document. The verb 'get' and resource 'document' are specific and match the tool name.

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

Usage Guidelines4/5

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

Description guides when to use include_home_page_content_html (for round-trip editing) and warns 'Never feed back a blanked (flag=False) body.' It implies that for rendering content, read_document should be used instead. No explicit when-not-to-use, but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devemberx/mcp-server-polarion'

If you have feedback or need assistance with the MCP directory API, please join our Discord server