three.ws Tutor

v0.1.2
io.github.nirholas/tutor-mcp Checked 1 hour ago Published 1 month ago

Read a Pay-As-You-Learn tutoring session's itemized tab and close it for an attested invoice.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

load_session Load a tutoring session ledger

Read the running tab for a Pay-As-You-Learn tutoring session by its sessionId. Returns the itemized ledger: one lineItem per answered question (question text, level, output tokens, per-item cost in USDC atomics and a "$x.xxxxxx" string, and the timestamp), plus the session status ("open" | "closed"), questionCount, and the running totalAtomics / totalUsd. If the session was already closed it also returns the finalized, attested invoice. A sessionId with no stored history returns an empty open session (questionCount 0) rather than an error — that is an honest "nothing billed yet", not a failu…

ParameterTypeDescription
sessionId *stringOpaque tutoring session identifier (the id the session was opened with). Truncated to 100 chars by the API.

close_session Close a tutoring session (finalize invoice)

Finalize a Pay-As-You-Learn tutoring session and return its itemized, attested invoice. Seals the ledger for the given sessionId: status flips to "closed", a SHA-256 attestation is stamped over the line items and total, and no further questions can be billed to this session afterward. Returns sessionId, createdAt, closedAt, questionCount, the full lineItems array, the totalAtomics / totalUsd owed, and the attestation hash. Closing itself is FREE and moves no funds — the learner was already charged per answered question; this only produces the final receipt. Idempotent: closing an already-clo…

ParameterTypeDescription
sessionId *stringOpaque tutoring session identifier to finalize. Truncated to 100 chars by the API.