Skip to main content
Glama

search_attachments

Read-only

Find Docmost attachments by name or text, optionally within a space, to locate files when you lack an attachment ID. Enterprise only; Community returns 403.

Instructions

Search attachments by name or text. Enterprise only: Community gets 403. Prefer get_attachment_info when you have an id.

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": {
      "query": "<query>"
    },
    "name": "search_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
space_idNoUUID or slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds genuinely new behavioral context in the form of the Enterprise-only restriction and the 403 outcome for Community workspaces. It stops short of describing result shape, pagination, or default scoping behavior, which leaves some gap for a search tool.

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?

Three short sentences, zero filler: purpose first, then the availability constraint, then the alternative routing. Each sentence carries distinct, load-bearing information.

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?

For a read-only three-parameter search with no output schema, the definition covers purpose, precondition, and the nearest alternative, which is most of what an agent needs. Minor gaps remain around default space scoping and what 'limit' controls, which matter when constructing the call.

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 coverage is only 33%, and the description partially compensates by explaining that 'query' matches attachment name or text — real meaning beyond the bare string schema. However, 'limit' (1-100) and its default/purpose are never addressed, and space scoping is only covered by the schema's own space_id description, so the compensation is partial.

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 ('Search attachments') plus the matching fields ('by name or text'), and explicitly contrasts itself with get_attachment_info. An agent can distinguish it from the sibling info-retrieval tool without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule with the selecting condition: use get_attachment_info when an id is known, otherwise search. It also states the plan-level precondition (Enterprise only; Community gets 403), so an agent knows when the call will fail before trying.

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