Skip to main content
Glama

Import the uploaded leads

run_lead_import

Import the uploaded file after the user has seen the summary from get_lead_import. It runs in the background; follow it with get_lead_import and the returned run_id. Leads already imported from the same file are left alone, opted-out numbers stay opted out, and no messages are sent. Admins only. Ask the user to confirm before calling this tool.

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": {
      "import_id": "<import_id>",
      "sha256": "<sha256>"
    },
    "name": "run_lead_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256Yespreview.sha256 from get_lead_import, so the file imported is the one the user reviewed
import_idYesImport id from start_lead_import
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.

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 only declare the mutation profile (readOnly false, openWorld true, idempotent false, destructive false); the description adds the substantive behavior: it is asynchronous/background, already-imported leads from the same file are skipped, opt-outs are preserved, and no messages are sent. It also discloses the admin restriction and the confirmation requirement, none of which appear in the annotations. The per-lead dedupe does not contradict idempotentHint=false, since repeated runs are not guaranteed to be no-ops.

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 short sentences, each carrying distinct information: precondition, execution model and follow-up, side-effect guarantees, access and consent. The precondition is front-loaded and there is no filler.

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?

For a 3-parameter async mutation with no output schema, the description covers the sequencing prerequisite, the async run_id handoff to the reader tool, the dedupe/opt-out guarantees, and the auth and confirmation gates. An agent has everything needed to call it correctly and to tell the user what will happen.

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%, so sha256 ('preview.sha256 from get_lead_import'), import_id ('from start_lead_import'), and workspace_id (empty for the connected org) are already fully documented in the schema. The description adds no parameter-level detail beyond the schema, including no mention of what the sha256 guard prevents. Baseline 3 applies when the schema does all the work.

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 ('Import the uploaded file') and pins it to a precise lifecycle position, after the summary from get_lead_import. An agent can distinguish it from start_lead_import and get_lead_import 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 precondition (user has seen the summary), an explicit follow-up (get_lead_import with the returned run_id), an access gate (admins only), and a consent gate (ask the user to confirm before calling). This is the full when-to-use / what-next picture rather than a vague hint.

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.

Resources