Skip to main content
Glama

Search files in storage

search_storage_files
Read-onlyIdempotent

Find files in a bucket (all folders at once) by part of the name, extension, size or date, and optionally by text inside them. With text set, it also reads the matching text files (txt, md, csv, json, log, html, xml, yaml, sql, code; up to 1 MB each, at most 30 files per call) and returns the matching lines with line numbers, in one call. Results are newest first by upload date, so the first is the latest version; say its date. Narrow with prefix or extension for big buckets.

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": {
      "service_id": "<service_id>",
      "region": "<region>",
      "bucket": "<bucket>"
    },
    "name": "search_storage_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoWords to look for inside text files (not case sensitive).
limitNoFiles to return (default 25).
bucketYesBucket name (3-63 lowercase letters, digits, dots, hyphens).
prefixNoOnly look inside this folder, e.g. "reports/".
regionYesRegion code from storage_plans or storage_overview, e.g. fra (Frankfurt), usa (Virginia), sgp (Singapore).
extensionNoFile type without the dot, e.g. csv.
max_bytesNo
min_bytesNo
service_idYesObject Storage service id, as returned by the matching list tool.
name_containsNoPart of the file name or path (not case sensitive).
modified_afterNoOnly files changed on or after this date (YYYY-MM-DD).

Output Schema

NameRequiredDescriptionDefault
noteNo
filesNo
matchedNo
matchesNo
scannedNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Well beyond the annotations, it discloses the expensive side effect of the `text` parameter — which file types get read, the 1 MB per-file ceiling, and the hard cap of 30 files per call — plus that matching lines with line numbers come back in the same call. It also states the result ordering (newest first by upload date) and that the first hit is the latest version, which an agent needs in order to interpret output correctly.

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?

A single front-loaded paragraph that leads with the search capability before the costlier text-scan details and the narrowing advice. The parenthetical file-type list is dense but purposeful; only the imperative 'say its date' feels like it belongs in a prompt rather than a tool definition.

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 an 11-parameter search tool with an output schema, the description covers the searchable facets, the content-search limits, ordering, and how to narrow results — enough to call it confidently. Remaining gaps (permissions, how multiple filters combine) are either minor or handled by the schema and annotations.

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 82%, so the schema already carries most parameter meaning and the baseline of 3 applies. The description adds real value for `text` by explaining the content-read behavior it triggers, but it says nothing about `max_bytes`/`min_bytes`, the parameters the schema leaves undescribed.

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 opens with a specific verb and resource ('Find files in a bucket') and enumerates the searchable facets: name fragment, extension, size, date, and optional in-file text. The parenthetical '(all folders at once)' implicitly distinguishes it from a hierarchical listing tool like list_storage_files, but it never names that sibling, so the contrast is left to inference.

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?

It gives clear operational guidance: contribute `text` when you want content matching, and 'Narrow with prefix or extension for big buckets' tells the agent how to keep large-bucket scans tractable. It stops short of stating when to prefer a plain listing tool instead, and the closing 'say its date' is guidance about reporting rather than about tool selection.

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.