Skip to main content
Glama
setluca

SetLuca

Official
by setluca

Create a loss reason

luca_bookings_outcome_reasons_create

Create a custom lost-sale, cancellation, or no-show reason with your own code and label, so booking outcomes are tracked in your workspace's wording.

Instructions

Add a lost-sale or cancellation reason in the workspace's own wording. A code already in use returns 409.

Luca operation: POST /api/bookings/outcome-reasons Required scopes: bookings:write Required OAuth scope: luca:queue_ops; data sensitivity: redacted 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

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?

Going beyond the annotations, the description discloses a concrete failure mode (409 when the code is already in use), the required OAuth scopes (bookings:write, luca:queue_ops), and idempotency-key handling for retries. This is meaningful behavioral context that the structured fields do not carry.

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?

The core purpose is front-loaded in the first sentence, followed by compact operation metadata (endpoint, scopes, idempotency, workspace override). Well structured and largely waste-free, though the metadata lines are somewhat boilerplate.

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 not be described, and the definition covers scopes, idempotency, conflict behavior, and workspace targeting. It omits a few body fields and any note on the kind enum's meaning, but is sufficient to invoke the tool correctly.

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 75%, so the schema largely documents the parameters. The description adds useful semantics to 'code' (uniqueness/409) and 'label' (workspace's own wording) and explains the workspaceId/workspaceSlug override, but says nothing about kind, displayOrder, or bookingTypeId.

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 opens with a specific verb and resource: 'Add a lost-sale or cancellation reason in the workspace's own wording.' This clearly distinguishes the create action from siblings like outcome_reasons_list and outcome_reasons_update, though it doesn't explicitly call those siblings out.

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 context is present but indirect: it explains the 409 behavior on duplicate codes, when to supply an idempotencyKey for safe retries, and how to override the default workspace. It never states when to use this tool versus the update/list siblings or what preconditions (e.g., existing code set) apply.

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