Skip to main content
Glama

Discard import

discard_import
DestructiveIdempotent

Discard an uncommitted import job (CREATED, PARSED, MAPPED, PREVIEWED, or FAILED). Deletes the job and its staged rows only — no gigs, venues, contacts or other live records change, and nobody is notified. Refused for jobs that are committing or already committed (COMMITTED/PARTIAL) and for in-flight parse/map/preview steps. Prefer this after a superseded preview so PREVIEWED jobs do not linger. Confirmation-gated.

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": {
      "job_id": "<job_id>"
    },
    "name": "discard_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesthe import job id to discard
organization_idNoorganization to act in, an id from get_me; omit to use your active organization
confirmation_tokenNoleave 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: { import_job_id, discarded } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true; the description goes well beyond that by scoping the blast radius (job + staged rows only, no gigs/venues/contacts change, no notifications) and by explaining refusal conditions and confirmation gating. This is exactly the context an agent needs before a destructive call.

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

Conciseness5/5

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

Four tight sentences, front-loaded with what is acted on, then effects, then refusals, then the recommended usage. No filler or repeated annotation text.

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?

With an output schema present, return values need not be described, and the description still covers scope, side effects, refusal states, and the confirmation flow. Nothing an agent needs to invoke this safely is missing.

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 coverage is 100% and all three parameters are self-documented, so the baseline is 3. The only added parameter meaning is "Confirmation-gated," which reinforces confirmation_token but adds no format or sequencing detail beyond the schema's own explanation.

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?

Specific verb (discard) and resource (uncommitted import job), plus an enumeration of the exact states it applies to (CREATED, PARSED, MAPPED, PREVIEWED, FAILED). That state list alone distinguishes it from commit_import and the preview/map steps without opening any 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?

Gives an explicit positive cue ("Prefer this after a superseded preview so PREVIEWED jobs do not linger") and explicit refusals (committing, COMMITTED/PARTIAL, in-flight parse/map/preview). The state gating effectively routes the agent away from the wrong tool at the wrong moment.

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.