Skip to main content
Glama

Look up an F2H file or folder

get_file
Read-onlyIdempotent

Name, size, date and page of any F2H file or folder the person can open: their own, or someone else's shared link (an F2H link: / for a file, /dir/ for a folder). A folder lists its first files and folders.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNoAn F2H link (or give file_id or folder_id)
file_idNo
folder_idNo

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, idempotent, non-destructive, and open-world access, so the bar is lower. The description still adds real behavioral context beyond them: it can resolve links shared by other people, and a folder returns only its first files and folders, warning the agent that the listing may be partial.

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?

Two sentences, front-loaded with what is returned and what can be looked up, with the folder-truncation caveat last. The phrasing is dense and slightly convoluted but no sentence is wasted.

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?

With no output schema, the description usefully enumerates the returned fields and flags partial folder listings, which is the main completeness burden for a read-only lookup. Remaining gaps are the undocumented id parameters and no guidance on missing/inaccessible links.

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 coverage is only 33%: link has a short description while file_id and folder_id have none. The description compensates partly by giving the link format (/<id> for files, /dir/<id> for folders), which the schema lacks, but it never explains file_id/folder_id or whether the three inputs are mutually exclusive.

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 names the resource (an F2H file or folder), the fields returned (name, size, date, page), and the access scope (own items or someone else's shared link). It is specific enough to separate this from download_file or list_my_files, though it never names those siblings explicitly.

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?

Usable context is implied rather than stated: you supply a link or id for a single known file/folder, and the parenthetical link formats show how. There is no explicit 'use this instead of list_my_files' or exclusion guidance, and nothing on what to do when a link is inaccessible.

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