Skip to main content
Glama
mkkim2102

finance-mcp-server

by mkkim2102

download_file

Download a file attached to a chat message into the local downloads folder and receive its saved path. Use this to access Telegram attachments from finance discussions, with safe and de-duplicated filenames.

Instructions

Download the file attached to one message to local disk and return its path.

Saves under this project's downloads/ folder by default; dest_dir selects a subdirectory within that downloads/ folder (relative paths, .., and absolute paths that resolve outside it are rejected). The filename is sanitized and de-duplicated against existing files in the target directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYes
dest_dirNo
message_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and succeeds. It discloses the default download location, subdirectory behavior, rejection of unsafe relative/absolute paths, filename sanitization, and de-duplication against existing files. This makes side effects predictable.

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?

The description is three tight sentences with the core purpose front-loaded in the first sentence. The following sentences add only necessary behavioral detail about destination handling and filename behavior. There is no filler or repetition.

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 file-download tool with an output schema and no annotations, this description covers all essential operational context: target location, path-safety rules, and collision handling. Nothing critical needed to invoke it successfully is missing.

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?

The schema has 0% parameter descriptions, so the description must compensate. It does so strongly for dest_dir by explaining subdirectory selection and path-validation rules. However, chat and message_id are only implicitly tied to 'one message' and lack explicit formats or examples, leaving a modest gap.

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 states the specific operation: 'Download the file attached to one message to local disk and return its path.' It identifies the resource (a file attachment) and the result (a local path), clearly distinguishing it from sibling tools like search_files and get_messages that retrieve metadata rather than save files.

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 gives clear usage context: use it when you have a specific chat and message_id and want the attached file saved locally. It explains dest_dir semantics and path restrictions, but does not explicitly name alternatives or state when not to use this tool, so it falls short of a full 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkkim2102/finance-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server