Skip to main content
Glama

Learn API

Learn API contract

learn_contract
Read-onlyIdempotent

Read the Learn API contract (OpenAPI 3.1 and JSON Schema, snapshot of 2026-11-30). With no arguments: every operation, by method, path and operationId. With operation (an operationId such as "developerChat", or "POST /v1/chat"): that operation with every schema it uses filled in. With file: one whole contract file (large). Use only fields the contract defines. For how and why to use an operation, use learn_guide.

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_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOne whole contract file.
operationNoAn operationId, or a method and path such as "GET /v1/requests/{request_id}".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is covered. The description adds genuinely new context beyond them: a dated snapshot (2026-11-30) warning that the contract may be stale, a '(large)' size warning on the file mode, and the constraint 'Use only fields the contract defines' to prevent field invention. It stops short of describing pagination or response size for the default mode, which keeps it at 4.

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

Conciseness5/5

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

Four sentences, each carrying distinct information: identity/version, default behavior, operation mode, file mode, and the sibling redirect. The default no-argument behavior is front-loaded so an agent that calls with no params knows exactly what it gets.

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?

With no output schema, the description carries the return-shape burden and does so for every mode: an index by method, path and operationId; a single operation with all used schemas filled in; or one whole file. Combined with the snapshot date and field-usage constraint, nothing an agent needs to call 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 both parameters are already documented structurally and the baseline is 3. The description does add value by giving a concrete operationId example ('developerChat') and a method-plus-path form ('POST /v1/chat'), plus the '(large)' caveat on file, but it repeats the schema's own wording for the file enum rather than explaining distinctions among the four files.

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 ('Read the Learn API contract') and immediately scopes it with the artifact format (OpenAPI 3.1 and JSON Schema) and snapshot date. The closing sentence explicitly routes 'how and why to use an operation' to learn_guide, so the agent can separate this reference-lookup tool from its sibling without opening either schema.

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?

Enumerates all three invocation modes and the condition that selects each: no arguments for the full operation index, `operation` for a single operation with schemas inlined, `file` for a whole file. It also names the alternative tool (learn_guide) and the question type it handles, leaving nothing to inference.

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.