MCP of `Learn`

What would you like to resolve today?

Explore sections

Automatic translation. View original

Connect an AI client or agent with Learn's teacher MCP to manage a school with teacher permissions. This guide is intended for developers integrating MCP clients or configuring agents.

To install the plugins and use them without developing an integration, see MCP (AI Agents): teacher guide.

Scope

The teacher MCP allows working with posts, students and accesses, courses and members, subscriptions, bookings, check-ins, and attendance reports.

The available tools and their permissions depend on the connected server and the authenticated teacher. Discover the catalog with tools/list and use the inputSchema returned by each tool as parameter contract.

This connection manages the school. Personal bookings by students use a different integration. It also does not manage teacher accounts, administrative roles, or global configuration.

Connection and authentication

Parameter Value
Default MCP endpoint https://learn.padm.am/mcp
Transport Streamable HTTP
Authentication OAuth, Authorization Code with PKCE
Scopes openid profile account learn
OAuth Resource https://learn.padm.am/mcp
Resource discovery https://learn.padm.am/.well-known/oauth-protected-resource/mcp

The alternative endpoint is https://learn.padm.am/mcp. The configured endpoint, OAuth resource, and token audience must correspond to the same resource. Each host publishes its discovery document.

The client must discover the authorization server and use the compatible registration mechanism announced, CIMD or DCR. Do not configure a shared Client Secret or a school API key to authenticate this connection.

  1. Configure the MCP endpoint in your client.
  2. Consult the resource discovery document and the authorization server metadata.
  3. Complete the OAuth flow with PKCE and authorize the necessary schools.
  4. Let the client store and manage the session.
  5. Initialize the MCP session and discover the tools.
  6. Execute list_accounts and query the selected school's context.

The teacher must exist in Learn and maintain their link with the school. A CRM, Money, or browser session does not authenticate this MCP resource.

Do not paste tokens or OAuth codes in prompts, URLs, logs, or repositories.

Using the official plugins

The catalog PADMA AI Plugins includes the plugin learn, which configures the connection, and the skill padma-learn, with usage instructions for agents.

Install learn to work with Learn. Add padma and the necessary product plugins to coordinate information with CRM or Money. The plugin padma does not declare its own MCP servers.

The guide for teachers contains the steps for Codex and Claude Code.

Selecting and retaining the school

OAuth authorization defines the accessible schools. account_name selects one of them; it does not grant additional access.

  1. Execute list_accounts.
  2. If it returns a school, you can select it automatically.
  3. If it returns several, use the one identified by the user or request a selection.
  4. Execute get_account_context to learn permissions, enabled modules, and time zone.
  5. Keep that account_name in all operation calls.

Example arguments for get_account_context:

{
  "account_name": "escuela-ejemplo"
}

The value is fictitious. Replace it with one returned by list_accounts. Do not infer access by name, brand, URL, or identifier.

Completing OAuth does not prove the integration is working. Verify a contextual call and a read of the requested resource.

Discovering tools and performing reads

The client invokes the tools via tools/call. The following examples show the body of params; these are not REST endpoints.

After discovering the tools, you can query courses:

{
  "name": "list_courses",
  "arguments": {
    "account_name": "escuela-ejemplo"
  }
}

Read the result and use the returned IDs for subsequent queries. Validate optional and required fields against the connection schema.

Area Tools and usage
Posts list_posts, get_post, create_post, update_post, set_post_publication, delete_post; list_timers discovers authorized timers
Students list_users, get_user, invite_user
Accesses update_user_access, list_access_templates, apply_access_template and permission tools and shared content that the connection exposes
Courses list_courses, get_course, create_course, update_course, delete_course
Course content list_course_content, set_course_content, remove_course_content
Course members list_course_members, set_course_member, remove_course_member
Subscriptions list_subscriptions, get_subscription, list_subscription_templates, list_subscription_payments and specific management operations
Bookings list_bookings, get_booking, create_booking, update_booking, confirm_booking, cancel_booking, late_cancel_booking, promote_booking, mark_booking_attended, mark_booking_no_show
Check-ins list_check_ins, get_check_in, create_check_in, update_check_in, delete_check_in

Identifiers and pagination

The arguments are fields specific to each tool; there is no generic object attributes.

  • Posts use post_id; courses use course_id; students use user_id.
  • Subscriptions, bookings, and check-ins use id, according to the schema of each operation.
  • In list_usersthe id of each item identifies the school access: accounts_user_id. The user_id identifies the student and can be null in a pending invitation.
  • To query the student with get_useruse their user_id, not the school access ID.
  • A CRM contact, a padma_id and a Learn user are not interchangeable identifiers.

Paginated lists use cursor, page_size and next_cursor. The default size is 50 and the maximum is 100. Continue while a next cursor exists and preserve school, filters, and period.

Do not present a partial page as a complete result.

Writes: authorization, retries, and concurrency

  1. Read the resource and resolve school, identity, change, and authorized effects.
  2. Generate a new UUID request_id for the operation.
  3. In updates or deletions, send the updated_at just read as expected_updated_at when required by the schema.
  4. Send only the requested fields.
  5. Re-read the resource after writing and verify the persisted state.

Reuse request_id only for an identical retry of the same operation. If the response is uncertain, consult get_write_request with the original key before rewriting.

Example of a write state query:

{
  "name": "get_write_request",
  "arguments": {
    "account_name": "escuela-ejemplo",
    "request_id": "00000000-0000-4000-8000-000000000001"
  }
}

The values are fictional. In a real operation, use the selected school and the original write key.

The read returns the status of the request, such as executing, succeeded or uncertain, and the saved result when applicable. A saved result proves that execution; re-read the resource to know its current state.

Upon revision conflict, re-read and reconcile the change. Do not reconstruct timestamps or change the key to force a rejected operation.

Effects that the client must consider

  • create_post and create_course do not create implicit drafts: inherit immediate publication if you do not indicate publication windows. Define visibility before creating.
  • Creating content, publishing it, and changing permissions are distinct decisions.
  • set_post_publication changes the publication of a post; courses use the corresponding fields of update_course.
  • To modify a content link or course member, use the revision of the link, not the course.
  • The content order uses set_course_content(order_position: ...). Also check order_by and order_direction of the course.
  • Before removing a member, verify if their access comes from a subscription or template.
  • A reservation does not prove attendance. Use mark_booking_attended only when the request authorizes registering attendance.
  • Creating a past reservation can automatically generate a check-in.

Attendance Reports

Tool View
get_check_ins_report Check-in Report
get_bookings_report Reservation Report
get_check_ins_distribution_report Check-in Distribution
get_instructor_classes_report Classes by Instructor

Filters are sent within filters. Indicate explicit dates for historical reports and comparisons.

Example of reservations from October 2026, including canceled ones:

{
  "name": "get_bookings_report",
  "arguments": {
    "account_name": "escuela-ejemplo",
    "scope": "all",
    "filters": {
      "booked_date_gteq": "2026-10-01",
      "booked_date_lteq": "2026-10-31"
    }
  }
}

get_bookings_report uses future_not_cancelled by default. For historical queries, choose all or past: past excludes early cancellations; all it keeps them.

Check-ins and distribution use checked_in_at_gteq and checked_in_at_lteqClasses by instructor use start_date and end_datealso within filters.

Distribution and classes by instructor require a paid school. Their details are paginated; totals and summary correspond to the full report.

When reporting results:

  • Keep the school, time zone, period, and effective filters.
  • Distinguish reservations, attendances, classes, and unique individuals.
  • Use the report totals; do not sum a single page to represent the total.
  • Separate figures returned by Learn from calculations and interpretations.
  • The filter include_students_wout_checkins adds current CRM students without attendance; it does not reconstruct historical enrollment.

Subscriptions and effects in gateways

Learn subscriptions govern educational access and may be linked to external charges. They are not Money financial plans nor the school's subscription to PADMA.

Before modifying, read the subscription and its template: student, status, gateway, amount, currency, dates, and scheduled changes.

  • The plugin's documented contract does not include creating a subscription from scratch.
  • update_subscription requires local_only explicit. true modifies only Learn; false uses synchronization with the provider. Do not use local mode to bypass a rejection.
  • cancel_subscription cancels Stripe at the end of the period and MercadoPago immediately.
  • pause_subscription and reactivate_subscription are exclusive to MercadoPago.
  • refund_subscription_payment allows the full refund of an approved MercadoPago payment. Requires identifying the subscription and the authorized payment.
  • import_subscription imports an existing MercadoPago subscription; it does not create a new charge.
  • sync_subscription updates data from the provider. Deleting a local record does not replace canceling the external subscription.

For scheduled changes, discover the tools list_subscription_updates, create_subscription_update, create_subscription_updates_batch, update_subscription_update, delete_subscription_update and run_subscription_update. Respect their revisions and dates. The batch operation allows up to 100 explicit subscriptions.

In case of operation_uncertain, first consult get_write_request and reread the subscription. For compatible operations, reconcile_subscription_operation consult the provider without repeating the effect. Use the operation_request_id original, the current revision, and a request_id new one for reconciliation.

If reconciled is false, report that the effect remains unconfirmed. Do not call Stripe, MercadoPago, or Money directly to complete a failed action in Learn.

Report separately the status saved in Learn, the effect confirmed by the gateway, and any pending synchronization.

Errors and limits

Result Client action
401 or invalid token Reconnect OAuth and verify the configured resource.
403 or forbidden Check school and permissions; do not try another way to bypass denial.
not_found Reread within the selected school; do not test the ID in other schools.
conflict Check the revision and reuse of keys; reconcile before retrying.
operation_uncertain Check the original request and verify its effects before repeating it.
429 Respect Retry-After.
503 Report unavailability and keep the key if the write could have started.

These conditions may appear in the transport response or in the tool result. Inspect the complete error from the MCP client.

Do not automate advanced duplication, hybrid setup, Zoom meetings, or obtaining recordings through internal fields. If a tool is missing, report the limitation; do not substitute the connection with a database or another MCP.

Verification of an integration

Before considering it operational, verify:

  1. OAuth discovery and correct resource authorization.
  2. tools/list and validation of arguments against published schemas.
  3. list_accounts, selection and get_account_context.
  4. An actual read within the authorized school.
  5. Complete pagination of the requested scope.
  6. For authorized writes, reread afterward and handle retries and conflicts.
  7. For billing effects, provider confirmation or explicitly pending status.

The names and contracts of this guide correspond to the plugin references. Effective availability must be verified against the connected server.

References

Contact support