Skip to main content
Glama
FormKiQ Document MCP Server

FormKiQ Document MCP Server

Official

get_document_url

Read-onlyIdempotent

Generates a URL to retrieve a document's contents, returning an S3 presigned link or an optional short link with redemption limits.

Instructions

Get document content url

Returns a URL for the document's contents. Direct S3 presigned URLs expire after 48 hours by default.

With the Shortlinks Add-On Module, use format=short&maxUses=1 for a single-redemption short link, or set maxUses to a larger positive integer to allow that many redemptions. Omitting maxUses permits unlimited redemptions during the short link's validity period.

For usage-limited short links, duration controls the short link's validity in hours. Each successful redemption generates a fresh S3 presigned URL valid for 20 seconds. The S3 request must start before expiry; a download already in progress can continue afterward. The S3 URL itself can be reused during those 20 seconds.

FormKiQ operation: GetDocumentUrl. 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_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoReturn a shortlink URL when set to `short`; available as an Add-On Module
inlineNoRequest inline delivery. S3-backed SVG documents identified by content type or filename are always served as attachments.
siteIdNoSite Identifier
maxUsesNoMaximum number of successful short-link redemptions. Requires `format=short` and the Shortlinks Add-On Module. Set to `1` for a single redemption; omit for unlimited redemptions during the short link's validity period.
durationNoIndicates the number of hours request is valid for
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)
bypassWatermarkNoAllow the by pass of watermark (only allowed by GOVERN / ADMIN permissions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered; the description still adds substantial value with 48-hour presigned expiry, shortlink redemption semantics, and the 20-second S3 window for redemptions. However, generating a maxUses-limited shortlink is a side effect that sits in mild tension with idempotentHint, and the description does not address that or the error modes beyond the acceleration case.

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 one-line purpose, then layered detail on default URLs, shortlinks, and redemption timing. Slightly long for the payload, but nearly every sentence carries distinct operational information; the trailing 'FormKiQ operation / API group / Access: read' line is redundant with the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters and no output schema, the description does its most important job by explaining what the returned URL is and how long it lives. It is still thin on the identity parameters (siteId, shareKey, artifactId, versionKey) and on failure modes outside acceleration, leaving the agent to rely wholly on the schema for those.

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%, so baseline is 3, but the description adds cross-parameter meaning the schema does not: maxUses requires format=short, duration only governs usage-limited shortlinks, and each redemption yields a fresh 20-second URL. It still leaves siteId, shareKey, artifactId, versionKey and bypassWatermark entirely to 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 document content url / Returns a URL for the document's contents.' That clearly distinguishes it from a content-returning sibling like get_document_content, though no sibling is named explicitly and the multi-parameter shortlink behavior makes it more than a plain getter.

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?

The description explains how to use the shortlink mode (format=short with maxUses/duration) and the S3 acceleration caveats, which is real conditional guidance. But it never says when to prefer this tool over get_document_content or get_document, nor any exclusion or prerequisite context for the base presigned-URL path.

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