Skip to main content
Glama

Загрузить файл ИИ

ai_files_upload

Save a local file to a case and send a copy to a connected service, specifying target models for user_data or messages and using batch mode for JSONL uploads.

Instructions

Сохраняет локальный файл в деле и отправляет копию сервису. Для user_data/messages обязательны target_models. Лимит MCP: 20 МиБ, batch JSONL — 50 МиБ; панель может иметь меньший лимит. При отсутствии remote_id локальная копия уже сохранена: не загружайте повторно вслепую.

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": {
      "provider": "<provider>",
      "path": "<path>",
      "purpose": "<purpose>"
    },
    "name": "ai_files_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
pathYesАбсолютный локальный путь.
purposeYes
providerYesПодключение: название или идентификатор.
target_modelsNoЦелевые модели обязательны для user_data/messages; для batch не нужны.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and idempotentHint=false, but the description adds substantial context the agent could not infer: two-phase local-then-remote behavior, partial-success state when remote_id is missing, and concrete size limits (20 MiB MCP, 50 MiB for batch JSONL) that may be lower in the panel. It still omits what happens on re-uploading the same file, auth/precondition needs, and the shape of the result that carries remote_id.

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?

Four short sentences, each carrying distinct load: purpose, required-parameter rule, limits, retry caution. The final sentence references remote_id, a field that appears nowhere in the schema or an output schema, which slightly blunts the otherwise front-loaded structure.

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 mutating, open-world, non-idempotent upload with no output schema, the description covers purpose, size constraints, and partial-failure semantics well. It stops short of explaining what the tool returns (the description alludes to remote_id but never says where it appears), which is the main remaining gap given there is no output schema.

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?

Schema coverage is 80%, so the baseline is 3, but the description adds genuine meaning: it ties target_models to specific purpose values and attaches purpose-dependent size ceilings (batch JSONL 50 MiB) that the enum alone does not convey. The case and provider parameters are left to the schema, which is acceptable at this coverage level.

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 first sentence states a specific verb and resource plus the two-step scope: it saves a local file into a case and sends a copy to the service. That distinguishes it cleanly from the ai_files_* siblings (download, get, list, delete) without needing their schemas.

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 a clear condition for invocation ('sends a copy to the service') and a conditional caution against blind retry when remote_id is absent, plus a purpose-specific requirement (target_models for user_data/messages). It does not explicitly name an alternative tool (e.g. ai_files_download for the reverse direction), so the when-to-use-instead routing is only implied.

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