Skip to main content
Glama

import_tasks

Destructive

Imports a BATCH of tasks from an external system (Linear, Jira, Spec Kit…) in the PIVOT FORMAT (resource orggen://import/pivot). Two inputs: items in the pivot format (source required) — extraction and mapping are then YOUR job — OR the format of a framework (values of the enumeration; mapping in the resource) + text = its file pasted as is, which the product reads without you; cellId/cellRef then file everything under one block, and an unrecognized text is REFUSED instead of being imported empty. OrgGen guarantees in both cases: (1) a REPLAY never duplicates — the key is (source, externalId); (2) dryRun is TRUE by default: the call returns the plan (created / updated / skipped / conflicts / errors), which you can show to the human, without writing anything; writing is a second call with dryRun: false; (3) a batch is rolled back as a whole (rollback_import); (4) the historical doneAt date of done tasks is kept. onExisting: "update" rewrites the supplied fields of an already imported task ONLY if nobody has modified it since — otherwise conflicts is reported instead of an overwrite (except an edit that arrives DURING the call, between the plan and the write: not detected). A dependency list that REMOVES a dependency on an ARCHIVED task that was not done and not lifted is a conflicts entry of reason dependency-removal-refused (with refusedRemovals and suggestedDependsOn): NOTHING of that task is written; a list sent back unchanged is never refused. Up to 500 items per call. Two kinds of refusal: a PLAN refusal is per item (details.errors: that item writes nothing, nor do the items that reference it, the rest is imported); a SCHEMA refusal (a field that breaks the format, dryRun included) refuses the WHOLE call, designates the line as items[i] and writes nothing. An item may carry an arbitrage (a question and its options): it is created OPEN and addressed to nobody, and a replay leaves it as it is (details.arbitrages). A link to another task is a label lie:<externalId> or doublon-de:<externalId>, by identifier (a broken one is declared in details.brokenLinks, and its item is still imported). No assignment notification is sent. Source comments have no slot: they are concatenated into body. Assignees are labels resolved against the people of the project, otherwise kept as they are (unresolvedAssignees). Leaves ONE aggregated event in the activity log per call that wrote (import.applied: the number of tasks created and updated), not one line per task; list_imports remains the history of the BATCH. An imported task has no observed creation or claim. For each update or conflict the plan returns the before → after values of each field (fields, truncated values); notTransported says what the format that was read does not carry. In the validation work mode (get_config, key task.workflow), the UPDATE of an already existing task follows the rule of an agent: a done is CONVERTED to "to validate" (heldForValidation + heldForValidationNote) and an update that would remove a reserved label, a dependency on a task that is waiting, or would touch a task to approve is removed from the plan and NAMED in refusedByTransition. A history CREATION (doneAt) remains allowed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoWith a `format` other than `pivot`: the content of the file, as is (at most 400000 characters). An unrecognized text is REFUSED instead of being imported empty.
itemsNoThe tasks in the PIVOT FORMAT (resource `orggen://import/pivot`) — with `format: "pivot"` (the default). An invalid item writes nothing; neither do the items that reference it (parent, dependency).
cellIdNoWith `text`: the block under which to file ALL the tasks read (e.g. the feature). Mutually exclusive with `cellRef`.
dryRunNoDefault TRUE: computes and returns the plan WITHOUT writing anything. `false` to write.
formatNoDefault `pivot`: you supply `items`. Any other format reads the file of a framework PASTED AS IS into `text` (mapping, identity and limits: resource `orggen://import/pivot`).
sourceNoThe originating system (e.g. "linear"). REQUIRED with `items`; with a text `format`, defaults to the format's own (e.g. "speckit"). Enters the derived identifier "<source>-<externalId>".
cellRefNoWith `text`: the NAME of the block under which to file all the tasks read (ambiguous or not found = named refusal). Mutually exclusive with `cellId`.
importIdNoIdentifier of the batch; generated by the product if omitted.
onExistingNoDefault `skip`: an already imported task is left as it is. `update`: rewrites the SUPPLIED fields, only if nobody has modified it since the import (otherwise `conflicts`).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed2 schema fields changed
    • changedInput schema / properties / items / items / properties / arbitrage / description
      Previous value: -"Makes this item an ARBITRATION: a question put to a human, with its options. Created OPEN, addressed to nobody; a replay leaves it as it is (a decided arbitration keeps its decision). Same shape as `create_tasks.arbitrage`, without `addressee` or `liftEdges`."New value: +"Makes this item an ARBITRATION: a question put to a human, with its options. Created OPEN, addressed to nobody; a replay leaves it as it is (a decided arbitration keeps its decision). Same shape as `create_tasks.arbitrage`, without `addressee` or `liftEdges`, and with the import's own question cap."
    • changedInput schema / properties / items / items / properties / arbitrage / properties / question / description
      Previous value: -"The question posed to the human."New value: +"The question posed to the human: up to 2000 characters in an import (an export from the source is not rewritten), 200 through `create_tasks` and the screen; the background goes in the item's `body`."
  4. Changed2 schema fields changed
    • addedInput schema / properties / items / items / properties / arbitrage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Makes this item an ARBITRATION: a question put to a human, with its options. Created OPEN, addressed to nobody; a replay leaves it as it is (a decided arbitration keeps its decision). Same shape as `create_tasks.arbitrage`, without `addressee` or `liftEdges`.",
      +  "properties": {
      +    "options": {
      +      "description": "The PRE-DEFINED answers — at least two, otherwise there is nothing to choose.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "description": "SHORT identifier of the option — cited by `choose`, and not displayed on its own.",
      +            "maxLength": 100,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "label": {
      +            "description": "The text of the proposed answer.",
      +            "maxLength": 300,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "recommended": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "justification": {
      +                    "description": "Why this option is recommended — displayed next to it.",
      +                    "maxLength": 1000,
      +                    "minLength": 1,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "justification"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Marks THIS option as the agent's recommendation. Omitted/`null` = no recommendation on this option (the normal case)."
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "label"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 8,
      +      "minItems": 2,
      +      "type": "array"
      +    },
      +    "question": {
      +      "description": "The question posed to the human.",
      +      "maxLength": 2000,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "selectionMode": {
      +      "description": "The human selection mode — `single` (one option only, the default) or `multiple` (checkboxes, several options possible). Set once and fixed afterwards.",
      +      "enum": [
      +        "single",
      +        "multiple"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "question",
      +    "options"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / items / items / properties / labels / description
      Added value: +"Labels (60 characters, 20 at most). LINKS to another task or a document are labels written with the identifier — \"lie:<externalId>\", \"doublon-de:<externalId>\", \"doc:<documentId>\" — by identifier, not by address."
  5. Changed16 schema fields changed
    • changedInput schema / properties / cellId / description
      Previous value: -"Avec `text` : le bloc où ranger TOUTES les tâches lues (ex. la fonctionnalité). Exclusif avec `cellRef`."New value: +"With `text`: the block under which to file ALL the tasks read (e.g. the feature). Mutually exclusive with `cellRef`."
    • changedInput schema / properties / cellRef / description
      Previous value: -"Avec `text` : le NOM du bloc où ranger toutes les tâches lues (ambigu ou introuvable = refus nommé). Exclusif avec `cellId`."New value: +"With `text`: the NAME of the block under which to file all the tasks read (ambiguous or not found = named refusal). Mutually exclusive with `cellId`."
    • changedInput schema / properties / dryRun / description
      Previous value: -"Défaut TRUE : calcule et rend le plan SANS rien écrire. `false` pour écrire."New value: +"Default TRUE: computes and returns the plan WITHOUT writing anything. `false` to write."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / format / description
      Previous value: -"Défaut `pivot` : tu fournis `items`. Un autre format lit le fichier d’un framework COLLÉ TEL QUEL dans `text` (mapping, identité et limites : ressource `orggen://import/pivot`)."New value: +"Default `pivot`: you supply `items`. Any other format reads the file of a framework PASTED AS IS into `text` (mapping, identity and limits: resource `orggen://import/pivot`)."
    • changedInput schema / properties / importId / description
      Previous value: -"Identifiant du lot ; généré par le produit si omis."New value: +"Identifier of the batch; generated by the product if omitted."
    • changedInput schema / properties / items / description
      Previous value: -"Les tâches au FORMAT PIVOT (ressource `orggen://import/pivot`) — avec `format: \"pivot\"` (le défaut). Un item invalide n’écrit rien ; ceux qui le référencent (parent, dépendance) non plus."New value: +"The tasks in the PIVOT FORMAT (resource `orggen://import/pivot`) — with `format: \"pivot\"` (the default). An invalid item writes nothing; neither do the items that reference it (parent, dependency)."
    • changedInput schema / properties / items / items / properties / cellRef / description
      Previous value: -"Le NOM du bloc cible, résolu par le produit (ambigu ou introuvable = erreur nommée)."New value: +"The NAME of the target block, resolved by the product (ambiguous or not found = named error)."
    • changedInput schema / properties / items / items / properties / complexity / description
      Previous value: -"Ordre de grandeur RELATIF en TEMPS HUMAIN : xs = moins d’une heure · s = quelques heures · m = une demi-journée à un jour · l = quelques jours · xl = à DÉCOUPER. Elle s’estime AVANT la prise du travail ; c’est une estimation, jamais une promesse. Sans valeur = non estimée."New value: +"RELATIVE order of magnitude in HUMAN TIME: xs = under an hour · s = a few hours · m = half a day to a day · l = a few days · xl = to SPLIT. It is estimated ahead of the pick-up of the work; it is an estimate, not a promise. No value = not estimated."
    • changedInput schema / properties / items / items / properties / doneAt / description
      Previous value: -"Date d’achèvement D’HISTORIQUE — exige `status: \"done\"`, et ne peut pas être dans le futur."New value: +"HISTORICAL completion date — requires `status: \"done\"`, and cannot be in the future."
    • changedInput schema / properties / items / items / properties / externalId / description
      Previous value: -"L’identifiant de la tâche DANS le système d’origine — LA clé de rejeu (avec `source`)."New value: +"The identifier of the task WITHIN the originating system — THE replay key (with `source`)."
    • changedInput schema / properties / items / items / properties / parentExternalId / description
      Previous value: -"L’externalId de la tâche parente (US → tâche, DEUX niveaux), dans ce lot ou déjà importée."New value: +"The externalId of the parent task (user story → task, TWO levels), in this batch or already imported."
    • changedInput schema / properties / items / items / properties / url / description
      Previous value: -"Lien vers l’item d’origine (provenance affichée)."New value: +"Link to the original item (provenance shown)."
    • changedInput schema / properties / onExisting / description
      Previous value: -"Défaut `skip` : une tâche déjà importée est laissée telle quelle. `update` : réécrit les champs FOURNIS, seulement si personne ne l’a modifiée depuis l’import (sinon `conflicts`)."New value: +"Default `skip`: an already imported task is left as it is. `update`: rewrites the SUPPLIED fields, only if nobody has modified it since the import (otherwise `conflicts`)."
    • changedInput schema / properties / source / description
      Previous value: -"Le système d’origine (ex. \"linear\"). REQUIS avec `items` ; avec un `format` texte, défaut = celui du format (ex. \"speckit\"). Entre dans l’identifiant dérivé \"<source>-<externalId>\"."New value: +"The originating system (e.g. \"linear\"). REQUIRED with `items`; with a text `format`, defaults to the format's own (e.g. \"speckit\"). Enters the derived identifier \"<source>-<externalId>\"."
    • changedInput schema / properties / text / description
      Previous value: -"Avec un `format` autre que `pivot` : le contenu du fichier, tel quel (400000 caractères au plus). Un texte non reconnu est REFUSÉ, jamais importé à vide."New value: +"With a `format` other than `pivot`: the content of the file, as is (at most 400000 characters). An unrecognized text is REFUSED instead of being imported empty."
  6. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / complexity / description
      Previous value: -"Ordre de grandeur RELATIF en TEMPS HUMAIN : xs = moins d’une heure · s = quelques heures · m = une demi-journée à un jour · l = quelques jours · xl = à DÉCOUPER. Pose-la AVANT la prise du travail ; c’est une estimation, jamais une promesse. Sans valeur = non estimée."New value: +"Ordre de grandeur RELATIF en TEMPS HUMAIN : xs = moins d’une heure · s = quelques heures · m = une demi-journée à un jour · l = quelques jours · xl = à DÉCOUPER. Elle s’estime AVANT la prise du travail ; c’est une estimation, jamais une promesse. Sans valeur = non estimée."
  7. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations declare a mutating, potentially destructive operation, and the description adds substantial behavioral context beyond them: replay idempotency on (source, externalId), dryRun defaulting to true, whole-batch rollback, conflict detection on updates, per-item versus whole-call refusals, dependency-removal refusals, and one aggregated activity event. These details are consistent with destructiveHint=true and readOnlyHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and two input modes are front-loaded, and much of the detail is genuinely relevant for this complex tool. However, it is a dense single block with all-caps emphasis, semicolon-heavy lists, and repetition of schema-level details, making it harder to scan than it should be.

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

Completeness5/5

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

For a complex batch-import tool with no output schema, the description covers the important return behavior (the plan with created, updated, skipped, conflicts, and errors), refusal semantics, side effects, history via list_imports, and rollback. An agent has enough context to invoke it safely and interpret the result.

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 description coverage is 100%, so most parameter meanings are already documented in the schema, including dryRun, source, format, cellId/cellRef, and onExisting. The description adds useful cross-parameter and edge-case semantics, notably the concurrent-edit exception for onExisting update and validation-mode behavior, but it also repeats several schema descriptions.

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 gives a specific verb and resource — imports a batch of tasks from an external system — and immediately distinguishes the two supported input modes. It is clearly different from sibling tools such as create_tasks and rollback_import.

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 strong operational guidance: use items for pivot-format extraction, use format + text for framework files, and note that dryRun defaults to true with writing as a second call. It also points to rollback_import and list_imports, though it does not explicitly compare import_tasks against create_tasks for non-import workflows.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.