Skip to main content
Glama

Codinzy free trial class booking

Request a free trial class (the parent confirms on WhatsApp)

request_trial_booking

Request a FREE Codinzy trial class for a parent's child at a time from get_free_trial_times. Use it only after the parent chose the time and agreed. Nothing is booked yet: the time is held for about 30 minutes and the parent confirms from their own WhatsApp (a Confirm button in a WhatsApp message, or the confirm_url you show them, where they enter a code we send to their WhatsApp). Inputs: phone (the parent's WhatsApp number in E.164, e.g. +8801712345678), grade (1-12), timezone (IANA, e.g. Asia/Dhaka), slot_token (from the free times), optional child_name. Returns request_id, status ("pending"), expires_at and confirmation (channel "whatsapp" or "link" with confirm_url): tell the parent what to do, then poll get_trial_booking_request until "confirmed", "expired" or "cancelled". On a refusal, tell the parent the error sentence; for slot_unavailable or slot_taken offer new times. Never ask for passwords, emails or payment details.

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": {
      "phone": "<phone>",
      "grade": "<grade>",
      "timezone": "<timezone>"
    },
    "name": "request_trial_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
gradeYesThe child's school grade, 1-12
phoneYesThe parent's WhatsApp number in E.164, e.g. +8801712345678
timezoneYesThe parent's IANA time zone, e.g. Asia/Dhaka
agent_nameNoShown to the parent, e.g. ChatGPT
child_nameNoThe child's first name (optional)
slot_tokenNoThe slot_token of the time the parent chose (from get_free_trial_times)
start_timeNoISO 8601 start with offset, only when there is no slot_token
utm_sourceNoYour assistant, e.g. chatgpt.com

Output Schema

NameRequiredDescriptionDefault
bookedYesTrue only once the parent confirmed: the class is booked
reasonNoWhy it ended (not pending)
statusYes
messageNo
next_stepYes
expires_atNoUTC; the hold ends then unless the parent confirms
request_idYesOpaque reference (tbr_...): poll get_trial_booking_request with it
trial_classNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that nothing is actually booked yet, that the slot is held ~30 minutes, that the parent must confirm from their own WhatsApp, and how expiry/refusal errors should be handled. The 'Never ask for passwords, emails or payment details' constraint adds a safety boundary the annotations do not express.

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 and the 'not booked yet' caveat, then the inputs/returns/next steps in a logical order. It is dense – a single long block with parenthetical asides – but nearly every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite an output schema being present, the description usefully previews the return fields (`request_id`, `status`, `expires_at`, `confirmation`) and tells the agent what to do with them. The confirmation flow, polling loop and error recovery paths are all covered, leaving nothing essential unstated for an 8-parameter mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, and the description still adds meaning: `slot_token` provenance from `get_free_trial_times`, E.164 phone format, grade range, and IANA timezone convention. It does not mention `agent_name`, `utm_source` or `start_time`, but those are adequately documented in the schema, so this is a modest gap rather than a real omission.

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?

States a specific verb and resource ('Request a FREE Codinzy trial class for a parent's child') and immediately scopes it to a time obtained from `get_free_trial_times`, which distinguishes it from `create_booking_link` and the read-only siblings.

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?

Explicitly says when to use it ('only after the parent chose the time and agreed') and names the upstream tool to call first plus the downstream poll on `get_trial_booking_request` until 'confirmed', 'expired' or 'cancelled'. It also routes the agent back to fresh times on `slot_unavailable`/`slot_taken`.

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.

Resources