Skip to main content
Glama

Search documents

search_documents
Read-onlyIdempotent

Finds up to 25 documents by title or recipient, newest first, optionally by status or template. Returns each document's id, title, status, dates, recipients with their signing status, and Inkly link, plus next_cursor.

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

Input Schema

NameRequiredDescriptionDefault
qNoWords to find in document titles or recipient names and emails. Omit to list the newest documents.
cursorNoThe next_cursor from the previous result, for the next page. Omit for the first page.
statusNoOnly documents with this status.
external_idNoOnly documents with this `external_id`.
template_idNoOnly documents sent from this template.
signing_link_idNoOnly documents started from this public signing link.

Output Schema

NameRequiredDescriptionDefault
documentsYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / cursor / description
      Previous value: -"The `next_cursor` value from the previous page. Treat it as opaque."New value: +"The next_cursor from the previous result, for the next page. Omit for the first page."
    • changedInput schema / properties / q / description
      Previous value: -"Literal, case-insensitive text to find. Trimmed to 1–100 characters; wildcard characters have no special meaning."New value: +"Words to find in document titles or recipient names and emails. Omit to list the newest documents."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "documents": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "app_url": {
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "completed_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "created_at": {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +            "type": "string"
      +          },
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "recipients": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "email": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "invite_delivery": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "pending",
      +                        "sending",
      +                        "sent",
      +                        "failed",
      +                        "bounced",
      +                        "complained",
      +                        "suppressed"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "name": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "role": {
      +                  "enum": [
      +                    "signer",
      +                    "cc"
      +                  ],
      +                  "type": "string"
      +                },
      +                "status": {
      +                  "enum": [
      +                    "pending",
      +                    "viewed",
      +                    "signed",
      +                    "declined"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "name",
      +                "email",
      +                "role",
      +                "status"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "review_url": {
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "sent_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "status": {
      +            "enum": [
      +              "draft",
      +              "sent",
      +              "completed",
      +              "declined",
      +              "voided"
      +            ],
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "voided_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "status",
      +          "app_url"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "documents",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the description's added value is the 25-result cap, newest-first sort, and next_cursor pagination - all genuinely useful behavioral facts beyond the annotations. The list of returned fields edges into repetition of the 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.

Conciseness4/5

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

Two compact sentences with the operation and limits front-loaded. The enumeration of return fields is the only part that could be trimmed, since an output schema already covers it.

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 annotations carrying safety, a 100%-covered schema, and an output schema for return values, the description supplies what's missing: result cap, ordering, and cursor-based paging. It stops short of explaining query matching semantics or empty-result behavior, but is adequate for a search 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 description coverage is 100%, so the schema already documents all six parameters thoroughly. The description only echoes q, status, and template conceptually and says nothing about external_id or signing_link_id, so it adds little beyond the schema baseline.

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 description uses a specific verb ('Finds') plus resource ('documents') and spells out the search dimensions (title or recipient) and filters (status, template). It does not name any sibling such as get_document to contrast single-document retrieval against this list operation, so it falls short of full differentiation.

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 only implied: 'optionally by status or template' suggests the filter cases, and the 'newest first' ordering hints at browsing when no query is given, but the 'omit to list' behavior lives in the schema rather than the description. No explicit when-not guidance or named alternative (e.g., get_document) is provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.