Skip to main content
Glama

Enroll User

create_enrollment
Destructive

Enroll a user in a Teachable course using user and course IDs; set confirmation only when the user requested this exact action.

Instructions

Enroll a user in a course.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact private school profile label; not a provider identity or authorization proof.
confirmNoSet true only when the user asked for exactly this action.
payloadNoComplete current native JSON body; cannot mix with native body flags or payload_file.
user_idNoThe unique ID of the user.
course_idNoThe unique ID of the course.
payload_fileNoAbsolute regular non-symlink native JSON body file, at most 1 MiB. Cannot mix with payload or body flags.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.1
    • changedInput schema / properties / confirm / description
      Previous value: -"Explicit approval for this exact provider effect or local private-file operation."New value: +"Set true only when the user asked for exactly this action."
    • changedInput schema / properties / payload_file / description
      Previous value: -"Absolute regular non-symlink native JSON body file, at most1MiB. Cannot mix with payload or body flags."New value: +"Absolute regular non-symlink native JSON body file, at most 1 MiB. Cannot mix with payload or body flags."
  2. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered structurally. The description adds nothing beyond that – no mention of irreversibility, required permissions, or that enrolling may overwrite an existing enrollment.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero waste, so nothing is bloated. However, for a destructive 6-parameter tool it reads as under-specification rather than disciplined brevity.

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

Completeness2/5

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

This is a destructive, non-idempotent mutation with 6 parameters, an unused confirm flag, two alternative body-passing mechanisms, and no output schema. The description covers none of those operational details, leaving an agent without enough context to invoke it safely.

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 flat user_id/course_id, the nested payload, payload_file, confirm, and account fields are each documented in the schema. The description adds no meaning beyond that, which is the baseline 3 case; it doesn't clarify the payload-vs-flat-param choice or the confirm semantics.

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 states a specific verb and resource: 'Enroll a user in a course.' That is unambiguous about the action. It does not differentiate from siblings like unenroll_user or create_user, so it stops short of a 5.

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

Usage Guidelines2/5

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

No when-to-use guidance, no preconditions, and no mention of the obvious alternative unenroll_user. There is also a confirm parameter implying a confirmation workflow that the description never explains.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.