Skip to main content
Glama

Learn API contract

learn_contract
Read-onlyIdempotent

Read the Learn API contract to inspect every operation, fetch a specific operation with its schemas by operationId or method and path, or load a whole contract file.

Instructions

Read the Learn API contract (OpenAPI 3.1 and JSON Schema, snapshot of 2026-11-26). 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.

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 observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioural context: the contract is a dated snapshot (2026-11-26), file mode returns large payloads, and callers must 'use only fields the contract defines' rather than inventing fields. It does not cover pagination or response size for the no-argument mode, but that mode is naturally bounded.

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?

Three parallel sentences, one per calling mode, each front-loaded with the mode name and followed by exactly what it returns. No filler, no repetition of the annotation-provided safety profile.

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 two optional parameters, no nested objects and no output schema, the description carries the full burden of explaining return shapes — and it does so per mode: indexed operations by method/path/operationId, a single operation with all schemas inlined, or one whole file. An agent can pick a mode and predict the payload without further documentation.

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% and both parameters are already documented in the schema, so the description largely restates them. It does add a little meaning: concrete 'operation' syntax examples such as "developerChat" or "POST /v1/chat", and the size warning for 'file'. That is helpful but marginal, so the baseline of 3 applies.

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 opens with a specific verb and resource: 'Read the Learn API contract (OpenAPI 3.1 and JSON Schema, snapshot of 2026-11-26)', which is unambiguous about what is returned. It does not explicitly contrast itself with siblings such as learn_guide or learn_starter_file, so an agent must infer that those cover other knowledge sources rather than the contract itself.

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?

It gives explicit mode-selection rules: no arguments for the full operation index, 'operation' for a single operation with all its schemas filled in, and 'file' for a whole contract file. It also warns that file mode is 'large', steering agents toward the narrower modes. It stops short of saying when to prefer a sibling tool over this one.

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