tteop-mcp
v0.2.1Build, validate, and describe TTEOP telemetry envelopes for AI operator token efficiency.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tteop_build_envelope
Build a TTEOP v0.1-draft schema-conforming telemetry envelope from token counts. Computes Yield (Υ), Leverage (L), Velocity (V), output_fraction (F), and log_leverage (D). No data is submitted or persisted. Returns the complete envelope as JSON.
| Parameter | Type | Description |
|---|---|---|
input * | integer | Fresh input tokens (non-negative integer, required). |
output * | integer | Output tokens (non-negative integer, required). |
cache_read | Cache-read tokens, or null when unavailable. | |
cache_write | Cache-write tokens, or null when unavailable. | |
cohort_id | string | Cohort identifier for private-managed-cohort mode. Requires operator_key. |
model | string | Model identifier (e.g., 'claude-sonnet-4', 'gpt-4o'). |
operator_key | string | Pseudonymous operator identifier. Must not contain real-world identity. |
privacy_mode | string | Privacy mode. Default: public-pseudonymous. |
provenance_level | string | Provenance level. Default: self-reported. |
provider | string | Provider name (e.g., 'anthropic', 'openai', 'google'). |
tool | string | AI tool name (e.g., 'claude-code', 'cursor', 'copilot'). |
tteop_validate_envelope
Validate a TTEOP v0.1-draft telemetry envelope against the JSON Schema and semantic rules. Returns validation status, schema errors, semantic errors, warnings, and computed metrics if valid.
| Parameter | Type | Description |
|---|---|---|
envelope * | object | The TTEOP telemetry envelope to validate (as a JSON object). |
expected_profile | string | If set, asserts the envelope's privacy mode matches this profile. |
tteop_describe_protocol
Get TTEOP protocol metadata: version, supported versions, privacy modes, provenance levels, forbidden fields, metric definitions (formulas, symbols, rounding), and schema/spec URLs.
tteop_run_conformance
Run the TTEOP conformance suite: canonical vector invariants, zero-input/zero-output null semantics, missing-cache handling, build-validate round-trip, forbidden field detection, and banker's rounding. Returns pass/fail counts and detailed results.