Skip to main content
Glama
FormKiQ Document MCP Server

FormKiQ Document MCP Server

Official

get_document_content

Read-onlyIdempotent

Retrieve a document's contents by document ID: returns plain text or JSON directly when size permits, and provides a pre-signed S3 URL for other formats or large downloads.

Instructions

Get document's contents

Retrieves the content of the document with the specified documentId.

  • If the content is plain text and under 6 MB, the content will be returned directly.

  • If the content is plain text but exceeds 6 MB, an error will be returned.

  • For documents not in plain text format, pre-signed S3 URLs will be returned to download the content from S3. It is recommended to use the /documents/{documentId}/url endpoint to retrieve pre-signed S3 URLs for downloading the content.

If the document has a Content-Type of text/, application/json, application/x-www-form-urlencoded the content field will be returned. All other Content-Type, the contentUrl field will be returned, which is a S3 Presigned url.

FormKiQ operation: GetDocumentContent. API group: core. Access: read.

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_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdNoSite Identifier
shareKeyNoShare Identifier
accelerateNoUse S3 Transfer Acceleration for presigned transfer URLs targeting the FormKiQ documents bucket, including internal uploads of inline content. Requires EnableS3TransferAcceleration=true on the deployment; additional transfer charges apply. Defaults to false. Has no effect on inline content returned by the API. Unavailable acceleration, external download URLs, and watermarked downloads return HTTP 400.
artifactIdNoArtifact Document Identifier
documentIdYesDocument Identifier
versionKeyNoVersion Key (version key required URL encoding)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this is a safe, read-only, idempotent operation, so the safety bar is low. The description adds real value with the 6 MB error threshold and the Content-Type switch determining whether `content` or `contentUrl` is populated. It stops short of describing pagination, encoding, or what happens with an unknown documentId, which matters since there is no output schema.

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

Conciseness3/5

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

Front-loaded with the verb+resource, which is good, but the Content-Type rule is stated twice — once in the bullets ('documents not in plain text format') and again in the closing paragraph — and the 'FormKiQ operation/API group/Access' trailer is boilerplate.

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 six parameters, no output schema, and a non-trivial return contract, the description covers the essential fork (inline `content` vs `contentUrl`) and the size limit that causes failure. It omits how `versionKey` or `artifactId` change the retrieved content, which is the main remaining gap.

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%, including the detailed `accelerate` contract, so the schema carries parameter meaning and baseline 3 applies. The description only elaborates on `documentId` and says nothing about `siteId`, `shareKey`, `artifactId`, or `versionKey`, though the schema already explains them.

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 ('Retrieves the content of the document with the specified `documentId`') and immediately clarifies the two outcomes: inline content versus a presigned S3 URL. An agent can tell this apart from metadata-returning siblings like get_document without opening the schema.

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?

Gives explicit conditions ('plain text and under 6 MB' returns content, over 6 MB errors, other formats return URLs) and points to the `/documents/{documentId}/url` endpoint as the preferred alternative for presigned URLs. Slightly weaker because the alternative is expressed as a REST endpoint rather than the sibling tool name, leaving the mapping to the agent.

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