Skip to main content
Glama
Rubika MCP
by NabuxAi

Rubika bot: send file

rubika_bot_send_file

Sends one file to an allowed Rubika chat or channel from an HTTPS URL or permitted local path, requiring explicit confirmation before delivery.

Instructions

Send ONE file from an https URL or a path inside NABU_MESSAGING_FILE_ROOT. Needs confirm: true, the chat in RUBIKA_ALLOWED_CHAT_IDS 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_bot_send_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
chatIdYesRubika chat, group or channel id for the bot.
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

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-idempotent, non-destructive write; the description adds the genuinely new facts — a mandatory human-approval gate via confirm and two environment-level guards (chat allowlist and a global send flag). It stops short of saying what happens on rejection, size limits, or whether repeated calls re-send, which matters given idempotentHint=false.

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?

Two tight sentences, zero filler, with the source rule first and the hard prerequisites second. Nothing restates the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation with no output schema and only a third of parameters documented in-schema, key details are absent: which of fileUrl/filePath is mandatory, how kind interacts with the file extension, and caption behavior. The description covers the gating story well but leaves too much of the input surface to inference.

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 only 33%, so the description must compensate. It clarifies confirm (must be true) and maps the two source parameters onto the URL-or-rooted-path rule, but leaves the kind enum, caption, and the critical question of whether fileUrl or filePath is required/mutually exclusive unexplained.

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?

States a specific verb and resource ("Send ONE file") plus the two accepted sources: an https URL or a path inside NABU_MESSAGING_FILE_ROOT. The scope word "ONE" rules out batch behavior. It does not distinguish itself from the sibling rubika_web_send_file, so an agent must infer the bot-vs-web split from the name alone.

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?

Preconditions are explicit: confirm must be true, the target chat must appear in RUBIKA_ALLOWED_CHAT_IDS, and NABU_MESSAGING_ENABLE_SEND=1 must be set. What is missing is routing guidance against the near-identical sibling rubika_web_send_file, so there is clear context but no exclusions or alternative selection.

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