Skip to main content
Glama
setluca

SetLuca

Official
by setluca

Record a lead's consent

luca_leads_consents_grant
Destructive

Grant a lead's consent for a specific channel and purpose, with source and evidence, so compliant follow-up messages can be sent.

Instructions

Grant explicit lead consent for a channel purpose.

Luca operation: POST /api/leads/{id}/consents Required scopes: leads:write Required OAuth scope: luca:queue_ops; data sensitivity: redacted 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
idYes
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations: it states the underlying endpoint, required scopes, data sensitivity (redacted), the confirm: true requirement with rejection behavior, the server-generated idempotency key fallback, and the workspace override mechanism. The destructive warning aligns with destructiveHint=true rather than contradicting it, and the idempotency-key note is about safe retries, not a claim of inherent idempotency.

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?

Purpose is front-loaded in the first line, followed by a tight operational block covering endpoint, scopes, idempotency, confirmation, and workspace override. Dense but every line carries a distinct constraint; no filler.

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?

With an output schema present, return values need no explanation, and the description covers auth scopes, destructive confirmation, idempotency, and workspace resolution. The main gap is the semantics of the nested body fields, which is only partially addressed.

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 67%, so baseline is 3. The description adds meaning to the otherwise undocumented `id` parameter via 'POST /api/leads/{id}/consents' and hints at the channel/purpose semantics, but it says nothing about evidenceId, source, or grantedAt, leaving part of the nested body unexplained.

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 and resource: 'Grant explicit lead consent for a channel purpose,' which is distinct from the revoke sibling by the verb alone. It does not explicitly name luca_leads_consents_revoke as the inverse operation, but an agent can differentiate without opening the schema.

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?

Implies when to use it (recording consent for a channel/purpose) and lists prerequisites such as confirm: true, idempotencyKey, and workspace override, but gives no explicit when-not guidance or routing to the revoke alternative. Usage context is inferable rather than stated.

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