Skip to main content
Glama
FormKiQ Document MCP Server

FormKiQ Document MCP Server

Official

search_documents

Read-onlyIdempotent

Find documents in FormKiQ by tags, attributes, folder, filename, full text, or up to 100 document IDs, with pagination and COUNT projection for exact or truncated counts.

Instructions

Document search

Document search query request;

Supports searching DynamoDB for document(s) by a single TAG key and/or value. Value can be "exacted" or "begins_with" matched. Search can be filtered to only check certain documentIds (up to 100 documentIds accepted).

If using Enteprise Composite Keys feature then multiple tag(s) can be searched for.

For attributes defined with dataType JSON, use an attribute criterion's json filter with a path to compare a nested field. The eq and eqOr operators accept strings, including inside json filters. Match JSON boolean fields using the strings "true" or "false". Compare JSON numeric fields using gt, gte, lt, and lte. Paths support object properties and explicit array positions; wildcard, recursive, and array any-element matching are not supported. Multiple conditions on different paths under the same attribute key are supported. All conditions must match the same document or artifact.

JSON path filtering is applied after candidate records are read and does not reduce read capacity consumed for those candidates. A stored JSON value does not automatically create an index for its nested fields. Continue through empty filtered pages until the next token is absent; candidate and time-budget limits still apply.

If Typesense is enabled, full text search is supported through the "text" parameter. Full text search will look for the text in the "content" and/or document "metadata".

When documentIds is supplied, all supplied IDs are checked against the search criteria and all matching documents are returned. The limit query parameter is ignored. Up to 100 document IDs are accepted.

Use the projection parameter to return matching documents or a count of matching documents. Count responses are capped at 10,000 and indicate when the count was truncated. Multi-attribute searches requiring additional attribute filtering use a 25-second processing budget for index batches, attribute filtering, and document loading. The budget starts after index selection and empty-index prechecks. Searches with explicit documentIds or a composite key covering every search attribute are exempt. The budget is checked before starting each read; an in-flight read is allowed to finish. If the budget expires, document searches return completed matches with truncated=true and a next token; count searches return a partial lower bound with truncated=true.

See requestBody examples below for commmon examples.

FormKiQ operation: DocumentSearch. API group: core. Access: read. Continue pagination while next is present, including after empty pages. COUNT can be truncated; count_documents reports exactness.

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": {
      "body": "<body>"
    },
    "name": "search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
nextNoNext page of results token
limitNoLimit Results10
siteIdNoSite Identifier
previousNoPrevious page of results token
projectionNoControls the search response projection. `DOCUMENTS` returns matching documents and pagination tokens. `COUNT` returns `count` and `truncated`, and omits `documents`, `next`, and `previous`.DOCUMENTS

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds substantial non-obvious behavior: a 25-second processing budget for multi-attribute searches with exemptions, truncated=true plus next token on expiry, JSON path filtering not reducing read capacity, empty filtered pages that must still be paginated, and the 10,000 count cap. Only the response field shape is left unstated.

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?

Content is useful but poorly front-loaded (two weak opening lines before any substance), heavily overlapping with schema text on the attributes/JSON paragraphs, and marred by typos ("exacted", "Enteprise", "commmon"). The budget/pagination rules are split across several paragraphs rather than consolidated.

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 complex, six-parameter search tool with no output schema, the description covers pagination semantics, truncation flags, budget expiry behavior, count caps, and projection differences — the things an agent needs to call it correctly and interpret results. No material gaps remain for correct invocation.

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 83%, so the schema already defines most parameters and a baseline 3 is warranted. The description does add meaning beyond the schema in places: documentIds overrides `limit`, up to 100 IDs, `text` requires Typesense and searches content/metadata, and composite-key attribute ordering. These are genuine but scattered, so it sits at baseline rather than above it.

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?

The body states specific capabilities: searching DynamoDB for documents by a single tag key/value, exact or begins_with matching, filtering by up to 100 documentIds, composite keys, and full-text search via Typesense. The opening two lines ("Document search" / "Document search query request;") are near-tautological, but the rest is concrete enough that an agent knows what the tool does.

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?

Usage is implied rather than stated: "Use the `projection` parameter to return matching documents or a count" and the closing note that "count_documents reports exactness" signal when COUNT is lossy. However, there is no explicit when-to-use/when-not versus siblings such as count_documents, index_search, or get_documents, leaving the agent to infer the routing.

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