Skip to main content
Glama

Search computer files or filenames with depth and resumable session

filesystem_search_advanced
Read-only

Searches with Rust regex in content or filenames, with max_depth 1..8, a 3-second cooperative page scan budget, existing result pagination, 5-minute Search Session TTL and per-session cap. Requires the same ai_session_id and workflow_id for continuations and for list/stop: call start_ai_session first. Per-file permissions are enforced, symlinks are not followed, skipped/generated directories remain filtered. Use continuation_token for next page; repeated tokens replay previous page. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.

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": {
      "path": "<path>",
      "pattern": "<pattern>"
    },
    "name": "filesystem_search_advanced"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocontent
pathYesAbsolute search root directory.
patternYesRust regular expression.
device_idNoTarget computer device_id. Omit when only one computer is paired.
max_depthNo
device_nameNoComputer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer.
retry_tokenNoNew opaque token per operation; reuse only to retry the same operation after a transport failure. No user content.
workflow_idNoOptional workflow id; pass together with ai_session_id.
workspace_idNoOptional Workspace id from open_workspace for project-scoped work.
ai_session_idNoOptional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work.
continuation_tokenNoReuse token with identical search options and AI Session.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive, and the description adds substantial non-obvious behavior: a 3-second cooperative page scan budget, a 5-minute session TTL, a per-session cap, permission enforcement per file, symlinks not followed, and filtered/skipped directories. The statement that repeated continuation tokens replay the previous page is genuinely useful and is consistent with idempotentHint=false. It stops short of saying what happens on budget exhaustion or scan failure, and the 'local destination' sentence is irrelevant noise 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The operational content is front-loaded and dense with useful detail, but roughly a third of the text is boilerplate about intent selection, inherited destinations, and not needing to mention ailinkany.com/MCP — and the 'local destination' clause does not apply to a tool with no destination parameter. Removing those sentences would sharpen it without losing 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 an 11-parameter tool with session/cursor state and an output schema, the description covers the critical calling model: session bootstrapping, pagination, token replay, TTL, and filesystem filtering rules. Return-value shape is properly delegated to the output schema, so the remaining gap is minor (error/timeout behavior only).

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 82%, so the baseline is 3, and the description earns an extra point by explaining continuation semantics beyond the schema: the token must be used with identical search options and the same AI Session, and reuse replays the prior page. The rest of the parameter space (device_id, workspace_id, retry_token) is left to the schema, which is acceptable given its coverage.

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 first sentence names a specific verb and both search modes (Rust regex over content or filenames) plus depth bounds, so an agent knows exactly what the tool does. It never names the plain `filesystem_search` sibling or explains the difference, leaving the "advanced" qualifier to carry that distinction implicitly.

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?

It gives a concrete prerequisite ("call start_ai_session first") and states that the same ai_session_id/workflow_id must be reused for continuations and for list/stop, which is real routing guidance toward the session siblings. But it gives no when-to-use versus `filesystem_search` or `filesystem_list_directory_recursive`, and the closing line about selecting from user intent is generic filler rather than an actionable rule.

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