Skip to main content
Glama

Create import from paste

create_import_from_paste

Create an import job from pasted CSV/TSV text and parse it. Next call map_import, then preview_import, then commit_import. target_type is one of EVENT, LEAD, INVENTORY, MEMBER, VENUE, CUSTOMER, SONG, SETLIST, PACK_ITEM: CUSTOMER for clients and companies, VENUE for venues, MEMBER for crew, SONG and SETLIST for the song library, PACK_ITEM for gear lines on gigs that already exist. Runs on the first call; there is no confirmation step.

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": {
      "target_type": "<target_type>",
      "paste_text": "<paste_text>"
    },
    "name": "create_import_from_paste"
  }
}

Input Schema

NameRequiredDescriptionDefault
paste_textYesthe raw CSV, semicolon-separated, or TSV text to import (the first row should be a header row)
source_nameNoa label for this import (e.g. the original filename); defaults to 'pasted-data'
target_typeYeswhat the data becomes: EVENT, LEAD, INVENTORY, MEMBER, VENUE, CUSTOMER, SONG, SETLIST, PACK_ITEM
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { job { id, status, target_type, target_event_id, source_type, source_name, total_rows, commit_result }, preview } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / organization_id / description
      Previous value: -"defaults to your active organization"New value: +"organization to act in, an id from get_me; omit to use your active organization"
    • changedInput schema / properties / paste_text / description
      Previous value: -"the raw CSV or TSV text to import (the first row should be a header row)"New value: +"the raw CSV, semicolon-separated, or TSV text to import (the first row should be a header row)"
    • addedInput schema / properties / paste_text / minLength
      Added value: +1
    • changedInput schema / properties / target_type / description
      Previous value: -"what the data becomes: EVENT, LEAD, INVENTORY, or MEMBER"New value: +"what the data becomes: EVENT, LEAD, INVENTORY, MEMBER, VENUE, CUSTOMER, SONG, SETLIST, PACK_ITEM"
    • addedInput schema / properties / target_type / minLength
      Added value: +1
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / data / additionalProperties
      Added value: +{}
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"the API response { status (HTTP status), data: { job { id, status, target_type, target_event_id, source_type, source_name, total_rows, commit_result }, preview } }"
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "data": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "job": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "created_at": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source_name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source_type": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "status": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "target_type": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "total_rows": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "updated_at": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "preview": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "headers": {
      +                "anyOf": [
      +                  {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "sample_rows": {
      +                "anyOf": [
      +                  {
      +                    "items": {},
      +                    "type": "array"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "total_rows": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "status": {
      +    "type": "number"
      +  }
      +}
    • addedOutput schema / properties / data / type
      Added value: +"object"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "tool payload (API/composite/confirmation object); object, array, or primitive JSON"
      +    },
      +    "error": {
      +      "description": "when ok is false",
      +      "type": "string"
      +    },
      +    "ok": {
      +      "description": "true on success (including confirmation_required prompts)",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: 'Runs on the first call; there is no confirmation step,' warning that there is no dry-run gate before side effects. It stops short of saying that repeat calls create duplicate jobs (implied by non-idempotency) or what happens on a parse failure.

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 the action and input format, then the pipeline, then the target_type mapping — a logical order with no filler sentences. The long colon-separated target_type enumeration is dense but each clause carries distinct routing information, so it earns its length.

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?

An output schema exists, so return values need no explanation; the description covers the workflow position, the target_type decision, and the absence of a confirmation step. The remaining gap is failure handling — what the agent should do if the pasted text fails to parse or headers are missing — which matters for a non-idempotent creation tool.

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 goes beyond the schema's bare enum list by mapping each target_type value to a real-world meaning, which the schema does not do. It says nothing additional about paste_text, source_name, or organization_id, but those are adequately documented in the schema.

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?

Specific verb and resource: 'Create an import job from pasted CSV/TSV text and parse it.' The pasted-text input source is stated, which implicitly separates it from the file-based import siblings, though no sibling is named. An agent can tell what it produces (a parsed import job) without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lays out the exact downstream sequence — 'Next call map_import, then preview_import, then commit_import' — so the agent knows this is step one of a pipeline and what follows. It also gives explicit selection guidance for target_type by domain ('CUSTOMER for clients and companies, VENUE for venues, MEMBER for crew...'), resolving the only real decision the caller has to make.

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.