Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika (own account): send file

rubika_web_send_file

Send a single file (up to 20 MB) to an approved Rubika chat from an HTTPS URL or allowed local path, with images delivered as photos and explicit confirmation required.

Instructions

Send ONE file (up to 20 MB) from an https URL or a path inside NABU_MESSAGING_FILE_ROOT; images go as photos. Needs confirm: true after the user approves, the chat in RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1.

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": {
      "chatId": "<chatId>",
      "confirm": "<confirm>"
    },
    "name": "rubika_web_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatIdYes"me" for Saved Messages, @username, or an object guid from messaging_web_list_chats
captionNo
confirmYesMust be true, and only after the user has explicitly approved this exact action.
fileUrlNo
filePathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already disclose readOnly=false, openWorld=true, idempotent=false, and destructive=false. The description adds meaningful behavior beyond that: a 20 MB cap, allowed source locations, image-as-photo handling, confirmation gating, and the RUBIKA_WEB_ALLOWED_CHATS and NABU_MESSAGING_ENABLE_SEND=1 requirements. It does not explain failure behavior for oversized files or invalid paths.

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 definition is a single dense sentence with the key constraints front-loaded: file type, size limit, source options, image handling, and confirmation requirements. Every clause carries useful information without padding.

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?

For a mutation tool with no output schema, the description covers the important operational constraints: size, source paths, confirmation, and environment gating. The main gap is caption semantics, but the annotations and description together provide enough context to call the tool correctly.

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 description coverage is 40%, so the description needs to compensate. It explains the fileUrl/filePath sources and the confirm requirement, but the caption parameter is undocumented in both the schema and the description, and the mutual exclusivity of fileUrl and filePath is only implied.

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 states a specific verb and resource: 'Send ONE file' with size and source constraints. It distinguishes itself from generic message sending by handling files and converting images to photos, though it does not explicitly contrast with the sibling bot file-send tool.

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 clear usage context: the file must come from an https URL or a path inside NABU_MESSAGING_FILE_ROOT, and confirmation is required after user approval. It does not explicitly name when to use a sibling like rubika_web_send_message instead, but the file-specific constraints make the intended use clear.

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