Skip to main content
Glama

Iniciar tarea

iniciar_tarea

Queues a task for a local model to run one at a time, saves the response as a committed file under deliveries, and returns an ID for tracking progress.

Instructions

Encola una tarea para un modelo local. Se ejecutan de a una. El modelo recibe la instrucción y el contenido de los archivos de entrada, y su respuesta se guarda en entregas///<archivo_salida> con un commit. Devuelve el id; consulta el avance con estado_tarea.

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": {
      "modelo": "<modelo>",
      "instruccion": "<instruccion>",
      "archivo_salida": "<archivo_salida>"
    },
    "name": "iniciar_tarea"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeloYesNombre exacto del modelo, por ejemplo qwen2.5-coder:7b.
formatoNo"json" fuerza salida JSON.
razonarNoPor defecto el razonamiento se apaga.
instruccionYesQué debe hacer el modelo. Una sola tarea por llamada y el formato de salida exacto.
solo_codigoNoSi es true, guarda solo el contenido del primer bloque de código.
archivo_salidaYesNombre relativo del archivo a crear dentro de la entrega, por ejemplo src/carta.js.
archivos_entradaNoRutas relativas al proyecto cuyo contenido se envía al modelo (máx. 10, 100 KB cada una).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: queued serial execution, the model receiving instruction plus input file contents, and the response being written to a path and committed. However, it omits important side-effect details such as overwrite behavior if the output file already exists, whether the commit is made automatically by the tool, and what happens on model failure 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?

Four short sentences, front-loaded with the core action, then side effects, then the return value and the follow-up tool. No filler or redundant restatement of the name or schema.

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 7-parameter mutation tool with no output schema, the description covers the essential contract: it returns an id and the real result must be fetched via estado_tarea. It is nearly complete, missing only edge-case behavior around overwriting existing outputs and validation failures.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema by explaining that archivos_entrada content is fed to the model and that archivo_salida is resolved inside the generated entregas/<id>/<modelo>/ directory. That clarifies how the two file-related parameters interact in a way the schema alone does not.

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?

'Encola una tarea para un modelo local' gives a specific verb (encolar) and resource, and the description immediately distinguishes itself from siblings by naming estado_tarea for progress tracking. It also states the concrete output destination entregas/<id>/<modelo>/<archivo_salida>, so an agent knows exactly what the tool produces.

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 clearly establishes the usage context (asynchronous queue, tasks run one at a time) and explicitly routes the agent to estado_tarea for follow-up polling, which is the key alternative an agent needs. It stops short of stating when NOT to use it, e.g. whether listar_modelos should be checked first to obtain a valid 'modelo', or what happens if a task for the same file is already queued.

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