Skip to main content
Glama
setluca

SetLuca

Official
by setluca

Apply a lead import

luca_leads_import_apply
Destructive

Apply a mapped lead import to Luca, creating or updating leads with consent evidence from your rows. Requires confirm and an idempotency key for safe retries.

Instructions

Apply a mapped lead import with consent evidence.

Luca operation: POST /api/leads/imports/apply Required scopes: leads:write Required OAuth scope: luca:queue_ops; data sensitivity: full_content Requires Idempotency-Key. Provide idempotencyKey for safe retries, or the server will generate one. Destructive: has a real-world side effect. You must pass confirm: true; the call is rejected without it. Use workspaceId or workspaceSlug to override the default workspace configured by environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
confirmNoThis tool has a real-world side effect: it messages real leads, books, moves, or cancels a call, changes a lead's consent, imports leads, writes to a connected calendar or CRM, sends workspace events to an outside URL, or re-triggers downstream automations. Pass confirm: true to proceed; the call is rejected without it.
workspaceIdNoOptional Luca workspace id override.
workspaceSlugNoOptional Luca workspace slug override.
idempotencyKeyNoStable key for safe retries. If omitted, the MCP server generates a unique key for this call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
provenanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds value beyond them: required scopes (leads:write, luca:queue_ops), data sensitivity level, the confirm:true gate and rejection behavior, and the idempotency-key fallback where the server generates one. It stops short of describing partial-failure behavior or exactly what side effect the import triggers.

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-loads the purpose, then lists endpoint, scopes, idempotency, destructive confirmation, and workspace override in compact labeled lines. There is minimal waste, though the scope lines (OAuth scope, data sensitivity) are metadata padding rather than agent-facing guidance.

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 not be explained, and the description covers auth, idempotency, confirmation, and workspace scoping. The remaining gap is the absence of any pointer to the preview step, which matters for a complex nested mapping payload the agent must build beforehand.

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 80%, so the schema already documents idempotencyKey, confirm, workspaceId and workspaceSlug almost verbatim. The description re-states the workspace override and idempotency semantics but adds nothing about the nested body (rows, mapping, consents, identities), the most complex part of the payload. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb+resource ('Apply a mapped lead import') and pins the exact endpoint (POST /api/leads/imports/apply), so the operation is unambiguous. It does not explicitly contrast itself with the sibling luca_leads_import_preview, which the word 'apply' strongly implies is the prior step, but the differentiation is left to inference.

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

Usage Guidelines3/5

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

Provides operational preconditions (requires Idempotency-Key, must pass confirm: true or the call is rejected), which is real guidance for invocation. However it never states when to prefer this over luca_leads_import_preview or what must precede it, so the workflow context is implied rather than spelled out.

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

Deploy Server

Other Tools