Skip to main content
Glama

Send one Learn test turn

learn_test_turn

Sends one cost-confirmed test turn to the Learn API using a developer key and returns the exact reply, safety status, and receipt.

Instructions

Send ONE real test turn to the Learn API with the developer's own key (from this server's environment), as one stable test learner for this project, and return Learn's reply exactly as written (both parts), its safety status and its receipt. Cost: in test mode each turn uses 1 of the workspace's free test attempts (for the life of the workspace, never reset); with a live key, 5¢ per turn that succeeds, and a live key is refused unless allow_live is true. Preparing the session is free; the session is never ended by this tool. First call it without confirm to see the exact cost, tell the developer, and call again with confirm: true only after they agree in the conversation. At most 2 turns per server run. It never retries: if a turn is not confirmed, use learn_lookup_request with the request id it returns. Show Learn's reply to the developer exactly as written; never paraphrase, summarize or correct it.

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

Input Schema

NameRequiredDescriptionDefault
kindNoThe kind of help: guided (a hint toward the next step; the default), feedback (a check of work included in the message), explain (an explanation of a solution included in the message).guided
confirmNoSet to true only after the developer has agreed to the cost in this conversation.
messageNoThe learner's message, as a learner would write it. Use made-up work, never real learner data.
openingNoAsk for Learn's generated opening instead of sending a message. It is a turn of its own.
allow_liveNoSet to true only when the developer has said to use a live key, which spends real money.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds a lot beyond the annotations: per-turn pricing under test vs live keys, the workspace-lifetime test-attempt budget, the allow_live gate, the never-retries policy, and the fact that session preparation is free and this tool never ends the session. The only trait left implicit is what the turn's safety status or receipt look like in failure cases, so it stays just short of a 5.

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

Conciseness4/5

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

Front-loads the core action and return values before the cost and confirmation mechanics, and every sentence carries operational content. It is dense to the point of being a single run-on block, which costs a little readability, but nothing is filler.

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?

No output schema exists, yet the description names the three things returned (Learn's reply exactly as written, both parts, safety status, receipt) and instructs the agent to relay the reply verbatim. For a costly, non-idempotent, open-world call, everything an agent needs to invoke and report it correctly is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further: confirm is tied to the developer agreeing to cost, allow_live to a spoken instruction to spend real money, and opening is flagged as 'a turn of its own' (i.e., it consumes a turn and needs no message). That is genuine meaning beyond the schema.

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?

A specific verb and resource: 'Send ONE real test turn to the Learn API with the developer's own key', plus what comes back (reply, safety status, receipt). It also carves scope against siblings, naming learn_lookup_request for the unconfirmed-turn case, so an agent can tell them apart without opening a 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?

Explicit sequencing: call first without confirm to see the exact cost, tell the developer, then call with confirm:true only after agreement. It also states the hard limit (at most 2 turns per server run) and the fallback (learn_lookup_request with the returned request id) when a turn is not confirmed.

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