Skip to main content
Glama

Learn API

Learn integration guide

learn_guide
Read-onlyIdempotent

Read the Learn API integration guide (snapshot of 2026-11-29), whole or by topic, or one of its runnable examples. Use it for any question about building with the Learn API: preparing a session, the four kinds of help, sending a turn and accepting it only on its final done event, the safety status, receipts, errors and recovery. Answer only from what it says; if it does not cover something, say so instead of guessing. Topics: access, setup, content, display-name, learner, learner-id, controls, diagnostic, files, turn, safety, team, receipts, timing, saved, open-session, long-sessions, recovery, errors, privacy, price, examples. Examples: README.md, prepare.mjs, quest.ts, quest.py, quest.sh, server.ts. Other guide pages, with page: performance (Fast today. Faster every release., https://developers.foreverlearning.ai/docs/performance/; topics: expect, faster, checked-first, wait); pricing (Pay only for what you use., https://developers.foreverlearning.ai/pricing/; topics: 5-per-turn-that-succeeds, 3-per-text-turn, memory-that-outlives-the-session, safety-that-reads-the-whole-conversation, understand-what-youll-pay, an-api-built-for-your-organization); security (Build the boundary into your integration., https://developers.foreverlearning.ai/security/; topics: keep-secrets-on-the-server, protect-account-changes, respect-the-person-behind-the-conversation, make-escalation-explicit, report-a-concern). Read performance for what to expect from turn times and how to design the wait, pricing for what each API costs, security for keys, account changes, end users and escalation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "learn_guide"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoAnother guide page to read instead of the integration guide: "performance", "pricing" or "security"; with topic, one of its sections.
topicNoA topic id from the list (for example "turn", "safety", "errors") or words from its heading. Leave it out for the whole guide.
exampleNoA runnable example file to read instead, for example "quest.ts" or "README.md".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the bar is lower. The description still adds meaningful context the annotations cannot: the guide is a dated snapshot (2026-11-29) and answers must be grounded strictly in its content rather than guessed. It does not describe pagination or what the returned content looks like when a topic matches multiple sections.

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?

The purpose and usage rules are front-loaded and well ordered, and the topic/example lists earn their space by supplying missing enum values. However, the closing sentence re-summarizes the performance/pricing/security pages that were just described in full parentheticals (tagline, URL, topic list), creating real duplication in an already dense single paragraph.

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 three-optional-parameter read tool with no output schema, the description is close to complete: it defines the content sources, the grounding rule, and the full retrieval vocabulary. The remaining gap is interaction semantics — what happens if page and example are both supplied, or if a topic string matches nothing — though the schema's maxLength 200 hints at heading-word matching.

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 100% and the vocabulary is repeated nearly verbatim (page values, example filenames like "quest.ts", topic ids like "turn"/"safety"/"errors"). The genuine addition is the exhaustive topic list (access, setup, content, ... price, examples) and full example enumeration, which the schema does not declare as an enum (0 enums present). Still, it is largely a restatement of the schema descriptions rather than new semantics such as precedence between page and example.

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 gives a specific verb and resource ("Read the Learn API integration guide") plus explicit modes: whole guide, a topic, a runnable example, or another page. It is unmistakably a documentation-retrieval tool. It never names or distinguishes itself from the sibling tools (learn_contract, learn_kit, learn_kits, learn_starter_file), 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 Guidelines4/5

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

Strong when-to-use framing: "Use it for any question about building with the Learn API," followed by an enumerable problem domain (sessions, help kinds, turns, safety, receipts, errors). It also routes specific questions outward — performance for turn times, pricing for cost, security for keys and escalation. There is no explicit when-not-to-use guidance or named sibling alternative, which keeps it at 4.

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