Skip to main content
Glama

Coordinalo — Service Business Operations

lifecycle_transition

Execute a state transition on a session. Accepts either to_state (target state name per Servicialo spec: confirmed, in_progress, completed, verified, documented, cancelled, no_show) or action (semantic verb: confirm, start, complete, verify, document, cancel, no_show). When to_state=no_show, no_show_type is required. NOTE: to_state="cancelled" / action="cancel" is rejected — this tool would skip the cancellation event, policy and plan adjustment: use booking_cancel (applies the cancellation policy, requires confirm) or scheduling_cancel. NOTE: to_state="delivered" / action="deliver" is NOT available via MCP (ref PDC-SEC-001) — MCP authentication cannot validate actor-as-Proveedor. Delivery must be performed via the REST endpoint PATCH /api/organizations/[orgSlug]/coordinalo/sessions/[sessionId]/deliver which enforces provider binding. Returns transition record with from, to, at, by, method fields. Requires X-Org-Api-Key.

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": {
      "orgSlug": "<orgSlug>",
      "session_id": "<session_id>"
    },
    "name": "lifecycle_transition"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
actionNo
apiKeyNo
orgSlugYes
evidenceNo
to_stateNo
session_idYes
no_show_typeNo
delivery_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full load and does so: it names the auth requirement (X-Org-Api-Key), documents the two rejection paths and their rationale (skipped cancellation event; PDC-SEC-001 actor-as-Proveedor validation), and states the conditional requirement of no_show_type. It also describes the returned transition record fields (from, to, at, by, method), which no output schema provides.

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 structure is front-loaded: capability, accepted inputs, conditional requirement, then exclusions with escalation paths. It is dense and each sentence earns its place, though the two NOTE blocks make it longer than ideal for scanning.

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 9-parameter mutation tool with no annotations and no output schema, the description covers auth, rejection behavior, conditional parameters, and return shape. The gaps are the undocumented 'evidence' and 'delivery_type' parameters, which an agent cannot fill in confidently from this text alone.

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 0% across 9 parameters, and the description compensates well for three of them (to_state, action, no_show_type with its conditional requirement). The remaining parameters — notes, apiKey, orgSlug, session_id, evidence, and the delivery_type enum (completo/parcial) — get no explanation at all, leaving notably the untyped 'evidence' object undefined.

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?

The description opens with a specific verb and resource ('Execute a state transition on a session') and then enumerates both accepted input modes and every legal state/action value. It explicitly differentiates itself from siblings by naming booking_cancel and scheduling_cancel for cancellation and stating that delivery is not reachable here at all.

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?

It gives explicit when-to-use plus two hard exclusions: cancelled/cancel must go to booking_cancel or scheduling_cancel, and delivered/deliver must go to the REST PATCH endpoint. The condition for the alternative (policy and plan adjustment, provider binding) is stated, not implied.

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.