Skip to main content
Glama

files_search

Read-only

Search files and folders by name (not contents) in a chosen Nextcloud folder, returning matched items with pagination support.

Instructions

Search files and folders by name (matches names, not file contents).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of hits
queryYesPart of a file or folder name, e.g. budget
cursorNo'next' value of the previous answer
folderNoFolder to search in, e.g. /Docs/

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful matching semantics (names only, not contents), but says nothing about result ordering or how pagination via the cursor behaves.

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?

A single sentence with zero filler, front-loading the core action and following immediately with the most decision-relevant constraint. Nothing could be removed without losing meaning.

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?

A simple, single-purpose read tool whose parameters are fully documented and whose safety profile is covered by annotations, so little is missing. The only minor gap is that with no output schema, the description does not hint at the shape of the returned hits or how to continue paging.

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 all four parameters are already documented with examples and defaults. The description only reinforces the meaning of 'query' as a name fragment; it adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 ('Search files and folders by name') and adds a scope boundary that rules out content search. The parenthetical distinguishes it from a full-text search, though it does not name a specific sibling such as files_list or unified_search.

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 by the 'by name, not contents' constraint, which tells the agent when this tool is wrong. However, there is no explicit guidance on when to prefer it over files_list (browsing) or unified_search, so the agent must infer the routing.

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