Skip to main content
Glama
Snipe-IT MCP Server

Snipe-IT MCP Server

by jameshgordy

manage_imports

Destructive

Manage CSV import operations for bulk data entry: upload files, list/get/delete imports, and process them with field mappings to update Snipe-IT inventory records.

Instructions

Manage CSV import operations for bulk data import.

The import workflow is: upload → process (with import_type and field_map). Snipe-IT saves the column mapping when the import is processed; there is no separate step to store it.

Operations:

  • list: List all import files (with header row, first row and saved mapping)

  • get: Get one import file's details (taken from the list; Snipe-IT has no single-import endpoint)

  • upload: Upload a CSV file for import

  • delete: Delete an import file

  • process: Execute the import with import_data

Common field mappings for assets:

  • asset_tag, name, serial, model_id, status_id

  • purchase_date, purchase_cost, order_number

  • notes, warranty_months, supplier_id

  • location_id, company_id, category_id

Returns: dict: Result of the operation including success status and data

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": {
      "action": "<action>"
    },
    "name": "manage_imports"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesThe import action to perform
file_pathNoPath to CSV file (required for upload action)
import_idNoImport file ID (required for get, delete, process)
import_dataNoImport type, column mapping and options (process action; import_type is required)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.9.3
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "get",
      -  "upload",
      -  "update",
      -  "delete",
      -  "process"
      -]New value: +[
      +  "list",
      +  "get",
      +  "upload",
      +  "delete",
      +  "process"
      +]
    • changedInput schema / properties / import_data / anyOf
      Previous value: -[
      -  {
      -    "description": "Model for import configuration.",
      -    "properties": {
      -      "field_map": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Maps CSV column names to Snipe-IT field names"
      -      },
      -      "import_type": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "asset",
      -              "accessory",
      -              "consumable",
      -              "component",
      -              "license",
      -              "user",
      -              "location"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Type of data being imported"
      -      },
      -      "run_backup": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Whether to backup database before import"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Model for import processing options (sent with the process action).",
      +    "properties": {
      +      "field_map": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Maps CSV column names to Snipe-IT field names"
      +      },
      +      "import_type": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "asset",
      +              "assetHistory",
      +              "assetModel",
      +              "accessory",
      +              "consumable",
      +              "component",
      +              "license",
      +              "user",
      +              "location",
      +              "supplier",
      +              "manufacturer",
      +              "category"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Type of data being imported (required to process)"
      +      },
      +      "preserve_blanks": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "When updating, keep existing values where the CSV cell is blank"
      +      },
      +      "run_backup": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Whether to backup database before import"
      +      },
      +      "send_welcome": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Send welcome emails to imported users"
      +      },
      +      "update_existing": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Update existing records that match instead of skipping them"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / import_data / description
      Previous value: -"Import configuration (for update action)"New value: +"Import type, column mapping and options (process action; import_type is required)"
    • changedInput schema / properties / import_id / description
      Previous value: -"Import file ID (required for get, update, delete, process)"New value: +"Import file ID (required for get, delete, process)"
  2. First observedv1.6.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the risk profile is known. The description adds genuinely useful behavior context (mapping is saved at process time, get is a list-derived workaround, list returns header/first row plus saved mapping), but says nothing about what delete destroys, whether deletes are recoverable, or permission requirements — meaningful gaps for a destructive tool.

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-loaded with purpose then workflow, then a bulleted operation list and a returns note — easy to scan. The asset field-mapping list is the only section that runs long, and it is still operationally useful rather than filler.

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?

With an output schema present, the one-line 'Returns' note is sufficient, and the annotation set covers safety. The remaining shortfall is operational limits (CSV size/format constraints, failure behavior when process partially succeeds), which an agent running a destructive bulk operation would benefit from knowing.

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; the description earns a bump by listing concrete common field_map keys (asset_tag, model_id, status_id, warranty_months, etc.) that the schema leaves as an opaque additionalProperties object, plus the reminder that import_type is mandatory for process. This makes the nested import_data object actionable rather than a black box.

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?

The description opens with a specific verb+resource ('Manage CSV import operations for bulk data import') and then enumerates all five sub-actions, including the exact semantics of 'get' (borrowed from list) and 'process'. It is specific enough that an agent knows this is the CSV import-file lifecycle tool, though it never names a sibling such as bulk_asset_operations to delimit the boundary explicitly.

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 real procedural guidance — the upload → process ordering, the note that Snipe-IT persists the field_map during process so there is no separate store step, and that import_type is required to process. What it lacks is any exclusion or comparison against alternatives (when to import via CSV vs. bulk_asset_operations).

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