Skip to main content
Glama

Register for Program

register_for_program

Registers one of the caller's own students for a school program (before/after-school care, enrichment, camp). Returns status 'registered' when a seat is available or 'waitlist' when the program is at capacity - the backend enforces the capacity check atomically. The response records the program fee (amountCents) owed; no wallet charge happens on this call. program_id comes from list_school_programs, student_id from get_my_context. WRITE - confirm the student and program before calling. Collect each required input one at a time and confirm the details with the user before calling.

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": {
      "program_id": "<program_id>",
      "student_id": "<student_id>"
    },
    "name": "register_for_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional note to staff attached to the registration
program_idYesProgram ID - from list_school_programs
student_idYesStudent to register (must be your own student, from get_my_context)
school_slugNoSchool slug (defaults to the active school)

Output Schema

NameRequiredDescriptionDefault
idNoRegistration ID - input to cancel_program_registration
statusNoRegistration status ('registered' or 'waitlist')
programIdNoProgram registered for
amountCentsNoProgram fee recorded on the registration, in cents

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the atomic capacity check, the two possible outcomes ('registered' vs 'waitlist'), that a fee is recorded but no wallet charge occurs on this call, and that the operation is irreversible-in-effect and must be confirmed first. These are exactly the traits an agent needs before mutating state.

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-loads the core action, then outcome semantics, then ID provenance, then the write-confirmation warning — a sensible ordering. The closing instruction about collecting inputs one at a time is procedural filler that slightly dilutes the otherwise tight text.

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?

An output schema exists, yet the description still summarizes the two return statuses and the fee field, and it covers funding side effects, capacity behavior, and prerequisite tools. Nothing needed to invoke this correctly is missing.

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 100%, so the provenance notes for program_id and student_id largely restate what the schema already says. With 4 parameters, school_slug and notes receive no elaboration in the description, so this is the baseline case where the schema does the heavy lifting.

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 ('Registers one of the caller's own students for a school program') and enumerates the program categories (before/after-school care, enrichment, camp), which separates it from the event/volunteer/lunch siblings. The 'one of the caller's own students' scope constraint is explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete prerequisites and routing: program_id comes from list_school_programs, student_id from get_my_context, and it flags that this is a WRITE requiring confirmation before calling. It does not explicitly contrast with register_for_event or point to cancel_program_registration for reversals, so it stops just short of full alternative guidance.

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