Skip to main content
Glama

list_remote_files

Read-only

Browse or search a connected storage. Required: root_id — roots[].id from list_file_accounts (the provider drive id works too). Optional: folder_id (browse inside a folder), query (search — the PROVIDER searches, so Drive also looks inside PDFs and Graph honours sharing), limit (default 50, max 200). Nothing is copied into CallPilotAI; you get metadata plus a link to the original.

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": {
      "root_id": "<root_id>"
    },
    "name": "list_remote_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of entries to return
queryNoSearch text
root_idYesID of the root folder
folder_idNoID of the folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / folder_id / description
      Added value: +"ID of the folder"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of entries to return"
    • addedInput schema / properties / query / description
      Added value: +"Search text"
    • addedInput schema / properties / root_id / description
      Added value: +"ID of the root folder"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, but the description adds non-obvious behavior: the search is executed by the provider, so Drive reaches inside PDFs and Graph honors sharing. It also discloses that nothing is copied locally and that results are metadata plus a link, plus the limit default and ceiling—substantially more than the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

One tightly packed block, front-loaded with the action, then required, then optional, then return behavior. Every clause carries distinct information and there is no filler or repetition of the tool name.

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?

There is no output schema, and the description compensates by describing the return ('metadata plus a link to the original'). With the prerequisite, per-parameter meaning, and result shape all covered, an agent has everything needed to invoke it correctly on the first try.

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 baseline is 3, and the description earns above that by specifying where root_id comes from (roots[].id from list_file_accounts, or the provider drive id), what folder_id scopes, how query is interpreted provider-side, and the limit default of 50 with a max of 200—none of which the schema states.

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?

The description opens with a specific verb pair and resource ('Browse or search a connected storage') and then states exactly what comes back ('metadata plus a link to the original'). It also implicitly distinguishes itself from list_file_accounts by pointing to that tool as the source of root_id, so an agent can tell the two apart without opening schemas.

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 a clear prerequisite chain ('Required: root_id — roots[].id from list_file_accounts') and explains when each optional parameter applies: folder_id to browse inside a folder, query to search. It does not name explicit alternatives for related jobs (e.g., get_remote_file_link or upload_remote_file), which keeps it from a 5.

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.