Skip to main content
Glama

Commit import

commit_import
Destructive

Needs at least one of job_id or undo_commit_id. Commit an import job — WRITES the data into the live system. Requires preview first. A commit where every row failed returns an error with the failed rows. Who is told: nobody by default. Members the job adds are not emailed unless send_invites is true, which emails each new member an invitation to join the organization that cannot be recalled; gigs, contacts and other rows notify nobody. Confirmation-gated only when undo_preview is not true; the confirmation lists gig create counts by status, venues new vs matched, skipped/duplicate/failed rows, and whether anyone is emailed. To UNDO a committed import instead, pass undo_commit_id (the load_commit_id a commit_import or import_file result returned) and no job_id: with undo_preview true it lists what would be removed, restored or refused and writes nothing; without it, it removes what that commit created and restores what it changed (confirmation-gated). Undo refuses records edited since, records with money moved or messages sent, and imported members and leads.

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": "commit_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNothe import job id; omit when undoing
send_invitesNotrue emails each new member an invitation to join the organization, which cannot be recalled. Omit (default false) to add members without emailing anyone; only pass true when the user asked for invites.
undo_previewNowith undo_commit_id: only list what the undo would do; writes nothing
undo_commit_idNoundo this committed import: the load_commit_id from a commit result
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoonly when undo_preview is not true: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: a commit: { import_job_id, status, result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } }; an undo (undo_commit_id): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] }; an undo preview (undo_preview): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 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 / confirmation_token / description
      Previous value: -"leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed"New value: +"only when undo_preview is not true: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed"
    • changedInput schema / properties / job_id / description
      Previous value: -"the import job id"New value: +"the import job id; omit when undoing"
    • 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"
    • addedInput schema / properties / send_invites
      Added value: +{
      +  "description": "true emails each new member an invitation to join the organization, which cannot be recalled. Omit (default false) to add members without emailing anyone; only pass true when the user asked for invites.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / undo_commit_id
      Added value: +{
      +  "description": "undo this committed import: the load_commit_id from a commit result",
      +  "type": "string"
      +}
    • addedInput schema / properties / undo_preview
      Added value: +{
      +  "description": "with undo_commit_id: only list what the undo would do; writes nothing",
      +  "type": "boolean"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "job_id"
      -]
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / data / description
      Previous value: -"tool payload (API/composite/confirmation object); object, array, or primitive JSON"New value: +"when the tool asks first: { status: \"confirmation_required\", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: a commit: { import_job_id, status, result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } }; an undo (undo_commit_id): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] }; an undo preview (undo_preview): { load_commit_id, status, rolled_back, rolled_back_at, target_type, committed_at, source { type, name, import_job_id }, removed, restored, refused, records [{ entity_type, entity_id, row_index, external_id, written, action, refusals }], records_truncated, kept [{ table, rows }] } }"
  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.8/5.0
Behavior5/5

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

Goes well beyond the supplied destructiveHint/readOnlyHint/idempotentHint annotations: it names the irreversible side effect (member invitation emails that 'cannot be recalled'), enumerates who is and is not notified (gigs, contacts notify nobody), discloses the all-rows-failed error path, describes the confirmation gate contents, and lists exactly what undo refuses (edited records, money moved, messages sent, imported members and leads). That is precisely the warning profile an agent needs before calling a destructive write.

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?

The most important facts (what it writes, the either/or argument, preview requirement) are front-loaded, and every sentence carries information. It is, however, a single dense block of semicolon-chained clauses, so the undo half is easier to miss 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?

An output schema exists, so return values need no explanation, and the description still covers the error case ('a commit where every row failed returns an error with the failed rows'). For a destructive, confirmation-gated, dual-mode tool, nothing an agent needs to call it safely is missing.

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 schema already documents all six parameters; the description mostly reinforces that. It does add genuine semantics though — the mutually exclusive job_id / undo_commit_id pairing, the provenance of undo_commit_id (the load_commit_id returned by a prior commit result), and the two-call confirmation_token flow.

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?

Opens with a specific verb and resource ('Commit an import job — WRITES the data into the live system') and immediately distinguishes the two modes: committing a job_id versus undoing a prior commit via undo_commit_id. An agent can separate it from preview_import / discard_import siblings without opening a 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?

States prerequisites ('Requires preview first'), the argument constraint ('Needs at least one of job_id or undo_commit_id'), and an explicit routing rule to the undo mode with the exact argument to pass. It also says plainly how to get a dry run (undo_preview true writes nothing), which is the alternative an agent would otherwise guess at.

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.