Skip to main content
Glama

filesfm_search_files

Read-only

Search authenticated user visible files and folders using the central Files.fm search engine: names and indexed metadata such as descriptions and tags, not the text inside documents. Results are newest first unless sort says otherwise. A query with Latvian or other diacritics is also searched without them (līgums also finds ligums). type narrows to folders, files or a file kind; folder_hash searches inside one folder and its subfolders.

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

Input Schema

NameRequiredDescriptionDefault
sortNo
typeNo
limitNo
queryYes
folder_hashNo

Output Schema

NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / folder_hash
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "enum": [
      +    "newest",
      +    "oldest",
      +    "name",
      +    "largest"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / type
      Added value: +{
      +  "enum": [
      +    "any",
      +    "folder",
      +    "file",
      +    "document",
      +    "image",
      +    "video",
      +    "audio"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior: default newest-first ordering, diacritic-insensitive matching, and that folder_hash includes subfolders. It does not mention pagination or result-size behavior beyond the limit cap.

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?

Four dense sentences, front-loaded with what is searched and immediately followed by the exclusion and ordering default. No filler, though the diacritics example is the one sentence that could be trimmed without much loss.

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?

An output schema exists, so return values need not be described. For a five-parameter read-only search, the description covers scope, ordering, matching semantics, and filtering; the only gap is the limit parameter's effect on result volume.

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 description coverage is 0%, so the description must carry the load, and it does for four of five parameters: query (diacritic folding), sort (default newest first), type (folders/files/file kinds), and folder_hash (recursive scoping). Only limit is left unexplained, though its 1-50 bounds are visible in the schema.

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 files and folders) plus the exact search surface: names and indexed metadata such as descriptions and tags, explicitly not document text. That exclusion cleanly separates it from a content-search sibling like filesfm_search_docs.

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

Usage Guidelines4/5

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

Gives clear context for when this is the right tool (name/metadata lookup rather than full-text) and explains how type and folder_hash narrow scope. It stops short of naming an alternative tool to use for in-document text search, so routing is implied rather than explicit.

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.

Resources