Skip to main content
Glama

import_org

Destructive

Imports an org chart from an indented text outline (one line per block, the indentation sets the hierarchy). Each depth gets a default type (root='groupe' (group), level 1='filiale' (subsidiary), level 2='sous-filiale' (sub-subsidiary), level 3+='node') — adjustable afterwards with update_cell. Mode 'replace' (default) replaces the whole existing org chart. Mode 'merge' adds the blocks that are missing by name without touching the existing ones. The placement is recomputed automatically after the import (equivalent to auto_layout_org).

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": {
      "text": "<text>"
    },
    "name": "import_org"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'replace' (default) replaces the whole existing org chart (kind='org') with the imported outline. 'merge' adds the blocks that are missing by name (case- and whitespace-insensitive) without touching the existing ones — a block already present is reused as the parent of its new children.
textYesThe indented outline to import, one line per block (e.g. "- Holding\n - Subsidiary A\n - BU1"). The indentation sets the hierarchy.
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. Changed3 schema fields changed
    • 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 / mode / description
      Previous value: -"'replace' (défaut) remplace tout l'organigramme existant (kind='org') par le contour importé. 'merge' ajoute les blocs absents par nom (insensible à la casse/espaces) sans toucher aux existants — un bloc déjà présent est réutilisé comme parent pour ses nouveaux enfants."New value: +"'replace' (default) replaces the whole existing org chart (kind='org') with the imported outline. 'merge' adds the blocks that are missing by name (case- and whitespace-insensitive) without touching the existing ones — a block already present is reused as the parent of its new children."
    • changedInput schema / properties / text / description
      Previous value: -"Le contour indenté à importer, une ligne par bloc (ex: « - Holding\\n  - Filiale A\\n    - BU1 »). L'indentation détermine la hiérarchie."New value: +"The indented outline to import, one line per block (e.g. \"- Holding\\n  - Subsidiary A\\n    - BU1\"). The indentation sets the hierarchy."
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say destructiveHint=true; the description supplies the crucial detail that the destructive behavior is the default mode ('replace' replaces the whole existing org chart) and that merge is the non-destructive alternative. It also discloses a side effect not visible in annotations: placement is recomputed automatically, equivalent to auto_layout_org.

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?

Front-loads the format, then defaults, then mode semantics, then the relayout side effect — a logical order. Slightly redundant with the schema's mode description, and the parenthetical translations of French type names add bulk, but nothing is wasted.

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 destructive 3-parameter import with no output schema, the description covers input format, default typing, both modes, and the post-import relayout. It omits what the call returns, how parse errors surface, and whether rollback_import applies, which would matter for a destructive operation.

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%, and the description's mode explanation largely restates the enum descriptions. The per-depth default type mapping (root='groupe', level 1='filiale', etc.) adds real semantic value about what the text parameter produces, but expectedProjectId and the text length bounds are left entirely to the schema.

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?

States a specific verb and resource ('Imports an org chart') plus the input format ('indented text outline, one line per block'), which distinguishes it from the other import_* siblings (import_arch_diagram, import_data_model, import_tasks). The depth-to-type mapping further pins down 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?

Gives clear conditions for choosing between the two modes: 'replace' (default) wipes the existing chart, 'merge' adds only missing blocks by name. It also points to update_cell for post-import type adjustments and notes the automatic relayout. No explicit when-not-to-use guidance against the other import_* tools, so not a 5.

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.