Skip to main content
Glama

b24_disk_file_get

Read-onlyIdempotent

Retrieve metadata and a download URL for a Bitrix24 Disk file by file ID. Use a participant's personal webhook when accessing task or chat attachments that return ACCESS_DENIED.

Instructions

Get file metadata incl. DOWNLOAD_URL (disk.file.get).

Note: files attached to task/chat messages may require the acting user to be a participant — pass that user's personal_webhook if you get ACCESS_DENIED.

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": {
      "file_id": "<file_id>"
    },
    "name": "b24_disk_file_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesDisk file id.
webhook_urlNoOverride the default incoming webhook for this call (https://<portal>/rest/<user_id>/<token>/). If omitted, uses personal_webhook, then the X-B24-Webhook HTTP header, then the BITRIX_WEBHOOK_URL env default.
personal_webhookNoAct as a specific user (their personal incoming webhook). Takes precedence over webhook_url. Required to write to the portal under that user's permissions.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and non-destructive, so the safety profile is covered. The description adds value beyond that by disclosing an authorization constraint the annotations cannot express: attachment files may require the caller to be a conversation participant, with the concrete ACCESS_DENIED remedy.

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 purpose is front-loaded in a single line with the underlying REST method in parentheses, then the caveat follows. Two short blocks, no filler, though the note's line break splits a single sentence awkwardly.

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?

An output schema exists, so return-value detail is unnecessary, and the auth caveat covers the main failure path. What is missing is any statement of behavior for non-attachment files or how this differs from the content-fetching sibling, which an agent may still have to guess.

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 100%, so file_id, webhook_url, and personal_webhook are already fully documented in the schema, establishing the baseline of 3. The description does add real meaning for personal_webhook by explaining the attachment-permission case where it becomes necessary, but it does not clarify precedence or formatting beyond what the schema states.

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 ('Get file metadata') and identifies the key returned field (DOWNLOAD_URL), which implicitly separates it from the sibling b24_disk_file_content that presumably returns bytes. It stops short of explicitly contrasting with that sibling, so it is clear but not maximally differentiating.

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?

The note gives a real conditional: for files attached to task/chat messages, the acting user may need to be a participant, and ACCESS_DENIED should be retried with that user's personal_webhook. That is failure-mode guidance rather than a statement of when this tool is preferred over b24_disk_file_content or the folder/item listing tools, so usage direction remains partial.

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

Deploy Server

Other Tools