Skip to main content
Glama
setluca

SetLuca

Official
by setluca

Create or upsert a lead

luca_leads_create
Destructive

Creates or upserts a lead identity by channel and externalUserId, enabling SetLuca users to sync prospects for DM sales outreach.

Instructions

Create or upsert a lead identity. Body requires channel and externalUserId.

Luca operation: POST /api/leads Required scopes: leads:write Required OAuth scope: luca:draft; data sensitivity: full_content Requires Idempotency-Key. Provide idempotencyKey for safe retries, or the server will generate one. Use workspaceId or workspaceSlug to override the default workspace configured by environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
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 only declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=false; the description goes well beyond that by disclosing required scopes, full_content data sensitivity, the idempotency-key retry contract, and the workspace-override behavior. The notable gap is upsert conflict semantics – what happens to tags/stage/fields when the lead already exists is never stated, which matters for an upsert. There is also mild tension with idempotentHint=false, but the description's explanation of the idempotency key plausibly reconciles it rather than contradicting it.

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 core action, then scopes, then idempotency and workspace overrides in compact lines – each sentence carries information. Minor redundancy in restating the body's required fields already enforced by the schema.

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?

For a mutation tool with a nested body schema, four parameters, and a sibling-heavy namespace, the description covers the invocation essentials: what to send, auth scopes, data sensitivity, retry safety, and workspace targeting. An output schema exists, so return values need not be explained; the only real omission is upsert/merge behavior on an existing lead.

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 75% and the schema already documents idempotencyKey and both workspace params, so the description largely restates ('Body requires channel and externalUserId', 'Provide idempotencyKey for safe retries'). It does add one piece of genuine meaning: workspaceId/workspaceSlug override the environment-configured default workspace, which is more than the schema's bare 'Optional Luca workspace id override'. Baseline 3 fits.

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?

The description states a specific verb and resource ('Create or upsert a lead identity') plus the underlying operation (POST /api/leads), so an agent immediately knows what it does. The 'create or upsert' framing also implicitly separates it from luca_leads_update and the import tools, though no sibling is named explicitly.

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?

Usage is implied by the operation and by the stated prerequisites: leads:write scope, luca:draft OAuth scope, and an Idempotency-Key. However, there is no guidance about when to prefer this over luca_leads_import_apply, luca_leads_identities_attach, or luca_leads_update, which share overlapping surfaces in a very crowded leads sibling set.

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