Skip to main content
Glama

Robot Actions — Remote Device Control

Device file find

device_file_find
Read-onlyIdempotent

Search a directory subtree for files whose NAME matches. Counterpart of ios_file_find. Matches on the name only, not on contents. query is a case-insensitive substring, or a glob if it contains * ? or [. Returns { ok, remotePath, query, count, truncated, matches }. truncated true means the limit was hit and there are more — raise limit or narrow the subtree rather than assuming the list is complete. Permission-denied subtrees are skipped silently by the device shell, so a result of zero is not proof of absence outside /sdcard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
limitNoMaximum matches (default 200)
queryYesName substring, or a glob if it contains * ? or [
maxDepthNoMaximum depth to descend
remotePathYesAbsolute path of the subtree to search, e.g. /sdcard/Download

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already carry the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description goes well beyond them: it explains truncated semantics (limit hit vs complete, and how to resolve it) and warns that permission-denied subtrees are silently skipped so zero results aren't proof of absence outside /sdcard. This is exactly the operational context annotations cannot express.

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?

Front-loaded with the core purpose, then layers matching semantics, return shape, and the truncation/permission caveats. Every sentence carries information, though the density is high and it runs long for a search tool.

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?

With no output schema, the description correctly documents the return shape ({ ok, remotePath, query, count, truncated, matches }) and the failure/edge behavior of the underlying device shell. An agent has everything needed to call it and interpret results.

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 100%, so the baseline is 3, but the description adds detail the schema lacks: query is case-insensitive (schema omits case sensitivity) and describes the glob characters, plus it links limit to the truncated return field. That is genuine added meaning over the structured fields.

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 (search) plus resource (a directory subtree for files whose NAME matches) and explicitly scopes matching to names, not contents. It also identifies the sibling it mirrors (ios_file_find), letting an agent distinguish it from the device_file_list/stat family without opening a schema.

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?

The description pins down when name-matching (vs content matching) is the right approach and how to react to a truncated result, which is usable context. It stops short of explicitly naming the sibling to prefer for full listing (device_file_list) or metadata (device_file_stat), so guidance is clear but not exhaustive.

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