Skip to main content
Glama
GaijinEntertainment

Pararam Nexus MCP

upload_file_to_chat

Upload a file to a chat by providing either a local file path or base64-encoded content. Optionally reply to a specific message.

Instructions

Upload a file to a chat.

Args: chat_id: ID of the chat to upload file to file_path: Absolute path to the file on local filesystem (mutually exclusive with file_content) file_content: Base64-encoded file content (mutually exclusive with file_path) filename: Filename to use when file_content is provided (required if file_content is set) reply_to_message_id: Post number to reply to (optional)

Returns: ToolResponse with UploadFilePayload containing uploaded file details including file ID, name, size, and URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYes
filenameNo
file_pathNo
file_contentNo
reply_to_message_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError message if operation failed
messageYesHuman-readable summary of the result
payloadNoThe actual response data
successYesWhether the operation was successful
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the uploading process and the two modes of providing file data, but does not mention any side effects, authentication needs, rate limits, or what happens if the chat is invalid or file already exists. The return type is mentioned, but deeper behavioral traits are absent.

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?

The description is structured with a brief opening sentence followed by a bulleted list of parameters and a returns note. It is clear and without extraneous text. Slightly more concise phrasing could be used, but overall it is efficient and front-loaded.

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?

Given the complexity (5 parameters, mutual exclusivity, optional reply-to), the description covers the essential behavior and return format. It does not discuss error cases, file size limits, or supported file types, but the presence of an output schema (per context signals) reduces the burden on the description for return value details. The description is largely complete for a file upload tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully explain each parameter. It does: chat_id, file_path, file_content, filename, and reply_to_message_id. It explains the mutual exclusivity of file_path and file_content, and the requirement for filename when file_content is set. This adds significant meaning beyond the bare schema.

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 clearly states 'Upload a file to a chat,' which is a specific verb+resource combination. It distinguishes from sibling tools like send_message (for text) and download_post_attachment (for downloading). The title 'upload_file_to_chat' directly maps to the described action.

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 provides explicit guidance on when to use file_path vs file_content, noting their mutual exclusivity and the filename requirement when file_content is used. It does not explicitly mention when not to use this tool compared to siblings, but the parameter explanations help the agent decide. Missing context on file size limits or format constraints.

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

Install Server

Other Tools

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/GaijinEntertainment/pararam-nexus-mcp'

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