Skip to main content
Glama

Search service files

search_service_files
Read-onlyIdempotent

Search files by name under a directory on a VPS service using a case-insensitive substring or glob pattern, returning up to 500 matches within a 20-level depth.

Instructions

Find entries by name below a directory: a case-insensitive substring or a glob with * ? [ ], one file system, depth 20, at most 500 results and 10 seconds; /proc, /sys, /dev and platform trees are never walked. 10 searches per minute per service; truncated or timedOut mean a partial answer. A slow guest answers 202 with an operation: this tool polls it itself and returns the final answer, or, after waitSeconds, the operationId to continue with get_service_file_operation (never repeat the call). Requires files:read on the API key as an explicit grant (a key whose permission list was left empty does not hold it), read or full access; the hosted connector needs vm:files:read. Availability: Firecracker servers need the updated guest agent (filesUnavailable reason agent_update_required; node_update_required while the host node is not updated yet) and Cloud VPS (KVM) servers need the VDS file-manager switch (reason feature_disabled while it is off); relay any unavailable reason verbatim and never work around it. A server whose 2FA lock is on answers 423.

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": {
      "orderNo": "<orderNo>",
      "name": "<name>"
    },
    "name": "search_service_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
pathNoAbsolute directory to search below; default /
limitNo
orderNoYesTenant-owned service order number, e.g. VP12345
waitSecondsNoHow long this tool waits for a slow guest's operation before returning its operationId (default 30, recursive delete and extract 60)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.17

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses a wealth of behavior: 10 searches per minute, depth 20, 500-result and 10-second caps, excluded system trees, partial-answer semantics for truncated/timedOut, automatic polling of slow-guest operations, an explicit waitSeconds escape hatch, required permissions, and availability/error reasons including 423 for 2FA locks.

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?

The core purpose is front-loaded and every clause carries operational information, but the definition is a dense single block of semicolon-separated constraints. It is efficient in wording yet harder to scan than a structured list would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with no output schema, the description covers return semantics (partial results, operationId continuation), authorization requirements, availability conditions, and error codes. An agent has everything needed to invoke it correctly and interpret the response.

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 coverage is only 60%, but the description compensates for the undocumented name parameter by explaining substring versus glob matching with * ? [ ]. It also ties the 500 cap to the limit parameter, clarifies path is a directory to search below, and explains waitSeconds' role in returning an operationId.

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 precise verb and resource: 'Find entries by name below a directory,' and specifies the matching semantics (case-insensitive substring or glob). This distinguishes it from a plain listing operation, though it never names a sibling such as list_service_files to make the distinction explicit.

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 context, including rate limits, depth, result caps, and the instruction to never repeat the call after a 202 but to continue with get_service_file_operation. It does not explicitly state when to prefer a directory-listing alternative, so the routing guidance is strong but not complete.

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

Deploy Server

Other Tools