Skip to main content
Glama

Создать задачу Batch или Video

ai_jobs_create

Creates paid AI batch or video jobs from a provider, payload, and idempotency key; batch jobs need an input file and endpoint, while video jobs need a prompt and model.

Instructions

Ставит платную задачу. Для batch нужен input_file (JSONL purpose=batch) и payload.endpoint; для video — payload.prompt и модель. idempotency_key задайте один раз и сохраняйте при повторе того же запроса; новый ключ создаёт новую задачу.

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>",
      "kind": "<kind>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "ai_jobs_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
kindYes
payloadNo
providerYesПодключение: название или идентификатор.
input_fileNo
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuinely new context — that the task is paid (cost implication) and how idempotency_key reuse vs. a fresh key changes behavior. It does not say what happens on failure or what the call returns, so it goes beyond annotations but not far.

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?

Three tight sentences, front-loaded with the paid-task framing, then mode requirements, then the idempotency rule. No filler, though the bare word 'модель' is slightly imprecise about where it lives in the payload.

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 mutating, paid, open-world tool with no output schema, the description covers inputs well but never says what comes back (presumably a job id needed for ai_jobs_get) or what a failed submission looks like. That is a meaningful gap for an agent that must chain into status polling.

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 only 33%, so the description must compensate, and it largely does: it explains input_file's expected content, payload.endpoint, payload.prompt, the model, and the retry semantics of idempotency_key. provider and case are left to the schema, and 'модель' is not tied to a concrete parameter path, which keeps it from a 5.

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 ('Ставит платную задачу') and immediately splits the resource into its two modes (batch vs video), so an agent knows exactly what is being created. It does not explicitly contrast with siblings like ai_jobs_get or ai_jobs_cancel, but the create semantics are unambiguous.

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?

Gives concrete per-mode requirements: batch needs input_file (JSONL purpose=batch) plus payload.endpoint, video needs payload.prompt and a model. It also explains the idempotency_key retry rule. What is missing is any explicit 'when not to use this' or pointer to the polling/status sibling after creation.

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