{"protocol":"mcp-clearing-intermediary","protocolVersion":"2025-03-26","jsonrpc_post_lifecycle_verification":{"status":"IMPLEMENTED_CONTRACT_NOT_ATTESTATION","transport":"streamable-http","supported_protocol_versions":["2025-03-26","2025-06-18","2024-11-05","2024-10-07"],"request_methods":["initialize","ping","tools/list","tools/call","resources/list","resources/templates/list","resources/read","prompts/list","prompts/get"],"notification":"notifications/initialized: HTTP 202 with no response body","session":"stateless; no session ID","response":"POST returns JSON, not an SSE response stream. A GET requesting only SSE receives 405. Legacy ?sse=1 announces an endpoint only; no resumption. JSON-RPC batches are accepted except with a 2025-06-18 protocol header.","verification_fixture":"tests/financial-meter-adapters.test.mjs"},"server_name":"etuki-finops-mcp","build_version":"etuki-production-canonical","schema_version":"etuki-schema-canonical","policy_version":"esp-policy-canonical","pricing_snapshot_id":"etuki-pricing-canonical","serverInfo":{"name":"etuki-finops-mcp","version":"1.0.0"},"capabilities":{"tools":{"listChanged":false},"resources":{"subscribe":false,"listChanged":false},"prompts":{"listChanged":false}},"tools_count":11,"tools":[{"name":"get_model_identity","description":"WHEN TO USE: Inspects authenticated Etuki gateway execution evidence for a single inference request to compare requested and reported model/effort labels (not weight attestation). DO NOT USE: For session quota-endurance math or unauthenticated budget scenarios (use detect_model_downgrade_and_substitution). INPUTS & DEFAULTS: Pass request_id (UUID) or install_id (UUID); if request_id is omitted, install_id must map to a single active request, and host env/catalog labels are never treated as execution proof. BEHAVIOR: Read-only lookup sending zero inference probes. OUTPUT: JSON with classification, evidence_source, requested_model, forwarded_model, reported_model, and policy downgrade flags.","annotations":{"title":"Inspect Authenticated Gateway Model Observation","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"request_id":{"type":"string","description":"Exact gateway observation UUID (RFC 4122). If omitted, a bound installation with exactly one active request is required."},"install_id":{"type":"string","description":"Expected tenant installation UUID (RFC 4122). Scopes lookup strictly to the authenticated tenant."}}}},{"name":"analyze_same_model_cache","description":"WHEN TO USE: Audits exact prompt-cache economics for one usage receipt on a fixed model and billing channel without changing models, trimming tokens, or lowering effort. DO NOT USE: For 10-turn forward session planning (use pin_single_model_prefix_cache) or multi-turn quality-tier routing (use auto_route_task_by_quality_tier). INPUTS & DEFAULTS: Required model and usage object; channel defaults to \"packaged-snapshot\"; reusable_uncached_tokens (integer >= 0, optional) must not exceed uncached input tokens. BEHAVIOR: Stateless read-only decimal math; zero upstream calls; refuses unverified quotes instead of guessing $0. OUTPUT: JSON with normalized usage, usd.rate_card_with_reported_cache, usd.same_usage_without_cache, usd.cache_difference_vs_uncached, and projected_warm_cost.","annotations":{"title":"Audit Same-Model Single-Receipt Cache Economics","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"required":["model","usage"],"properties":{"model":{"type":"string","description":"Canonical provider/model ID on the invoice or usage receipt (e.g. \"openai/gpt-4o-2024-11-20\" or \"anthropic/claude-sonnet-5-5\")."},"channel":{"type":"string","description":"Exact billing channel to price against (e.g. \"packaged-snapshot\", \"openrouter\", \"direct:openai\"). Defaults to the dated packaged snapshot."},"usage":{"type":"object","additionalProperties":true,"description":"Raw provider token usage counters only (never include prompt text, messages, or API keys).","properties":{"prompt_tokens":{"type":"integer","minimum":0,"description":"OpenAI-style inclusive total input tokens (includes cached tokens)."},"completion_tokens":{"type":"integer","minimum":0,"description":"OpenAI-style output completion tokens."},"cached_tokens":{"type":"integer","minimum":0,"description":"Cached read tokens subset of prompt_tokens."},"input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style uncached input tokens."},"output_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style output tokens."},"cache_read_input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style warm cache read tokens."},"cache_creation_input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style cold cache write tokens."}}},"actual_billed_usd":{"type":"string","description":"Optional invoiced amount in USD decimal string notation (e.g. \"0.0025\")."},"reusable_uncached_tokens":{"type":"integer","minimum":0,"description":"Optional byte-identical uncached prefix token count eligible for future warm cache reads; must be <= uncached input tokens."}}}},{"name":"detect_model_downgrade_and_substitution","description":"WHEN TO USE: Models remaining coding-session turn endurance from burned and remaining USD budgets and checks whether a gateway observation or operator policy shows a model or effort downgrade. DO NOT USE: When inspecting only a single authenticated gateway observation without session quota modeling (use get_model_identity) or auditing a single receipt's cache math (use analyze_same_model_cache). INPUTS & DEFAULTS: model defaults to 'openai/gpt-6-astra', burned_usd defaults to 137.55 (>= 0), remaining_usd defaults to 137.45 (>= 0); optional request_id and install_id (RFC 4122 UUIDs) join authenticated gateway evidence, while returned_model is recorded only as an unverified caller claim. BEHAVIOR: Stateless read-only calculation; never mutates models or treats unverified claims as execution proof. OUTPUT: JSON with quota_burn_telemetry, equal_budget_and_queried_budget_endurance_matrix, identity classification, and executable_routing_directive.","annotations":{"title":"Evaluate Session Quota Endurance & Relay Downgrade Risk","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","description":"Canonical provider/model ID to evaluate (e.g. 'openai/gpt-6-astra' or 'openai/gpt-6.1-sol').","default":"openai/gpt-6-astra"},"request_id":{"type":"string","description":"Optional RFC 4122 gateway observation UUID to attach authenticated execution identity."},"install_id":{"type":"string","description":"Optional RFC 4122 tenant installation UUID scoping the private gateway lookup."},"returned_model":{"type":"string","description":"Optional caller-reported response model string recorded strictly as an unverified client claim."},"burned_usd":{"type":"number","minimum":0,"description":"Cumulative USD quota spent in the current coding session.","default":137.55},"remaining_usd":{"type":"number","minimum":0,"description":"Remaining USD quota balance; combined with burned_usd to derive initial pool size.","default":137.45}}}},{"name":"auto_route_task_by_quality_tier","description":"WHEN TO USE: Simulates a 6-turn coding workflow cost projection comparing current-model execution against tiered routing using a same-model cached baseline and explicit hypothetical scan credits. DO NOT USE: When auditing cache economics on a fixed single model with zero routing changes (use analyze_same_model_cache) or inspecting grant/workhorse lists alone (use discover_and_probe_account_models). INPUTS & DEFAULTS: task_instruction defaults to 'Refactor Nextjs edge routes', has_custom_router_config defaults to true (preserves existing router via shadow comparison; false still does not switch models), context_tokens defaults to 160000 (>= 1), current_model defaults to 'openai/gpt-6.1-sol'. BEHAVIOR: Stateless read-only in-memory simulation; no auth required and no router config mutated. OUTPUT: JSON with custom_router_mutex_check, economic_accounting_dual_disclosure, and net_saved_vs_current_model_usd.","annotations":{"title":"Simulate 6-Turn Quality-Tier Task Routing","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"contract_discount_multiplier":{"type":"number","minimum":0.05,"maximum":5,"default":1,"description":"Hypothetical multiplier applied to the selected economic scenario before retry attribution."},"provider_infra_retry_rate":{"type":"number","minimum":0,"maximum":2,"default":0,"description":"Assumed additional provider retries per task, not an observed failure rate."},"model_prompt_retry_rate":{"type":"number","minimum":0,"maximum":2,"default":0,"description":"Assumed additional prompt retries per task, not a measured quality score."},"task_instruction":{"type":"string","description":"Coding or architectural task description used to classify complexity tier.","default":"Refactor Nextjs edge routes"},"risk_mode":{"type":"string","enum":["auto","conservative","standard","lightweight"],"default":"auto","description":"Comparison workload profile only. Conservative keeps all six turns on the selected model; auto uses a task-keyword heuristic, not a quality measurement."},"synthesis_cache_state":{"type":"string","enum":["cold","warm"],"default":"warm","description":"Whether the first synthesis turn finds an already warm reusable prefix in the modeled scenario."},"has_custom_router_config":{"type":"boolean","description":"When true, preserves user's existing router and outputs a non-intrusive shadow comparison; when false, outputs opt-in comparison targets.","default":true},"context_tokens":{"type":"number","minimum":1,"description":"Estimated prompt token count per turn (e.g. 80000 to 200000).","default":160000},"current_model":{"type":"string","description":"Currently configured primary model ID in the user's IDE.","default":"openai/gpt-6.1-sol"}}}},{"name":"discover_and_probe_account_models","description":"Lists catalog credit grant programs (Google Cloud Tier 1, AWS Activate Bedrock) and low-cost workhorse candidates benchmarked against a baseline model ID. Deterministic local snapshot lookup that issues zero external account probes, requires no API keys, and consumes zero user quota. Returns JSON with baseline_model_rate_card, detected_credit_pools, and interactive_perks_url. Use this tool to inspect grant tiers and workhorse options before calling auto_route_task_by_quality_tier; use list_supported_models instead when searching or filtering packaged model rate cards by provider.","annotations":{"title":"Lookup Grant Credit Pools & Workhorse Model Tiers","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"current_model":{"type":"string","description":"Active primary model ID in 'vendor/model-slug' format used as the baseline cost reference.","default":"openai/gpt-6.1-sol"}}}},{"name":"compress_and_fold_context","description":"WHEN TO USE: Compresses verbose terminal, test, or build logs by folding repetitive middle progress lines while retaining head lines and keyword-matched diagnostic lines. DO NOT USE: When checking whether total prompt tokens cross a long-context surcharge threshold (use check_context_cliff). INPUTS & DEFAULTS: model defaults to 'openai/gpt-6.1-sol' (used to estimate input-token USD impact), raw_text defaults to '' (empty string selects a labeled sample). BEHAVIOR: Deterministic read-only text compression in memory; mutates no files or external state. OUTPUT: JSON with line_accounting_reconciliation, byte_and_token_reconciliation, and folded_context_payload.","annotations":{"title":"Fold Repetitive Build Logs","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","description":"Canonical model ID ('vendor/model-slug') used to price eliminated input tokens in USD.","default":"openai/gpt-6.1-sol"},"raw_text":{"type":"string","description":"Raw terminal, test, or build log text to compress using a diagnostic-line heuristic.","default":""}}}},{"name":"pin_single_model_prefix_cache","description":"Projects 10-turn forward session caching economics for a single target model under Case A (100% static prefix) and Case B (90% static prefix + 10% dynamic tail) using its packaged scenario rate card. Stateless in-memory actuarial calculation requiring no API keys; OpenAI prefixes below the assumed 1,024-token minimum receive no modeled discount. Returns JSON with provider_cache_protocol_mechanism, ten_turn_cost_comparison_on_same_model, and scenario inputs. Use this tool for 10-turn forward ROI planning on one model; use analyze_same_model_cache for one observed usage receipt or optimize_prompt_cache_layout to fix mid-prompt cache invalidation.","annotations":{"title":"Project 10-Turn Single-Model Prefix Cache ROI","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"contract_discount_multiplier":{"type":"number","minimum":0.05,"maximum":5,"default":1,"description":"Hypothetical multiplier applied to the selected economic scenario before retry attribution."},"provider_infra_retry_rate":{"type":"number","minimum":0,"maximum":2,"default":0,"description":"Assumed additional provider retries per task, not an observed failure rate."},"model_prompt_retry_rate":{"type":"number","minimum":0,"maximum":2,"default":0,"description":"Assumed additional prompt retries per task, not a measured quality score."},"model":{"type":"string","description":"Target LLM model ID ('vendor/model-slug', e.g. 'openai/gpt-6.1-sol', 'anthropic/claude-sonnet-5-5', or 'openai/gpt-4.1').","default":"openai/gpt-6.1-sol"},"prompt_tokens":{"type":"number","minimum":0,"description":"Input prompt token count per turn; sub-threshold OpenAI prefixes receive no modeled discount.","default":150000}}}},{"name":"reconcile_usage_receipt","description":"Reconciles one API invoice line against the selected model and billing channel using exact fixed-point decimal arithmetic. Stateless read-only audit that never fabricates rates for unknown models or missing channels and defaults to the dated packaged snapshot when channel is omitted. Returns JSON with status (RECONCILED, ESTIMATE_ONLY, or MISSING_MODEL), exact_usd decimal strings, variance_usd, and rate_source provenance. Use this tool to verify an actual billed invoice amount against rate cards; use analyze_same_model_cache instead when measuring same-model cache vs uncached counterfactuals.","annotations":{"title":"Reconcile Invoice Receipt Against Official 1x Rate Card","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","description":"Exact billed provider/model ID (e.g. 'openai/gpt-4o-2024-11-20'); missing IDs are never guessed."},"channel":{"type":"string","description":"Billing channel ('packaged-snapshot' by default, or exact live feed channel such as 'openrouter' or 'direct:openai')."},"usage":{"type":"object","additionalProperties":true,"description":"Optional native provider usage object (Anthropic separate input/read/write buckets or OpenAI inclusive prompt_tokens) used instead of flat legacy token fields.","properties":{"prompt_tokens":{"type":"integer","minimum":0,"description":"OpenAI-style inclusive total input tokens."},"completion_tokens":{"type":"integer","minimum":0,"description":"OpenAI-style output completion tokens."},"cached_tokens":{"type":"integer","minimum":0,"description":"Cached read tokens subset of prompt_tokens."},"input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style uncached input tokens."},"output_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style output tokens."},"cache_read_input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style warm cache read tokens."},"cache_creation_input_tokens":{"type":"integer","minimum":0,"description":"Anthropic-style cold cache write tokens."}}},"prompt_tokens":{"type":"integer","minimum":0,"description":"Legacy inclusive total input tokens, including cached_tokens."},"cached_tokens":{"type":"integer","minimum":0,"default":0,"description":"Subset of prompt_tokens served from warm prompt cache."},"completion_tokens":{"type":"integer","minimum":0,"description":"Output completion tokens generated by the model for this request."},"actual_billed_usd":{"type":"string","description":"Optional actual USD invoice amount in decimal string notation (e.g. '0.0025'); omit to compute rate-card estimate only."}}}},{"name":"optimize_prompt_cache_layout","description":"WHEN TO USE: Simulates moving volatile mid-prompt tokens after the static prefix to eliminate cold cache-write invalidation and restore warm cache read rates on a catalog model. DO NOT USE: For 10-turn forward session cache ROI projections (use pin_single_model_prefix_cache). INPUTS & DEFAULTS: model defaults to 'openai/gpt-6.1-sol', static_prefix_tokens defaults to 52695 (>= 0), dynamic_mid_tokens defaults to 93029 (>= 0), completion_tokens defaults to 2696 (>= 0); zero tokens return $0 cleanly. BEHAVIOR: Stateless read-only layout simulation; mutates no prompts or live state. OUTPUT: JSON with before_layout_cost_usd, after_layout_cost_usd, net_saved_per_call_usd, net_savings_pct, and recommended_message_order.","annotations":{"title":"Optimize Static-Before-Dynamic Prompt Cache Layout","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","description":"Target provider/model ID used to price cold write vs warm read layout costs (e.g. 'anthropic/claude-sonnet-5-5' or 'openai/gpt-6.1-sol').","default":"openai/gpt-6.1-sol"},"static_prefix_tokens":{"type":"number","minimum":0,"description":"Token count of invariant system instructions and repository context.","default":52695},"dynamic_mid_tokens":{"type":"number","minimum":0,"description":"Token count of volatile per-turn content, billed as uncached even after reordering.","default":93029},"completion_tokens":{"type":"number","minimum":0,"description":"Output completion token count for the turn.","default":2696}}}},{"name":"check_context_cliff","description":"Compares prompt length with the model's packaged context window and the historical Sol threshold scenario where defined. Unknown surcharge rules are returned as null. Reports estimated_input_cost_usd and headroom_tokens; a window limit is not a billing multiplier.","annotations":{"title":"Check Prompt Size Against Long-Context Pricing Cliffs","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","description":"Model ID ('vendor/model-slug') to evaluate against long-context pricing cliffs.","default":"openai/gpt-6.1-sol"},"prompt_tokens":{"type":"number","minimum":0,"description":"Input prompt token count to test against vendor cliff thresholds.","default":150000}}}},{"name":"list_supported_models","description":"Searches and filters the embedded model rate-card catalog by provider namespace or fuzzy model name to retrieve canonical IDs, input/output/cache USD prices per 1M tokens, context windows, and calculator links. Deterministic read-only lookup requiring no API keys; unknown vendor slugs return total_matched_entities: 0 and an empty models array without error. Returns JSON with total_matched_entities, catalog_snapshot_utc, and models array. Use this tool to look up exact model IDs and prices; use discover_and_probe_account_models instead to inspect zero-cost startup credit pools.","annotations":{"title":"Search Packaged LLM Rate Cards by Provider or Model Name","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","additionalProperties":false,"properties":{"provider":{"type":"string","description":"Case-insensitive vendor namespace filter ('all', 'openai', 'anthropic', 'google', 'deepseek', 'qwen', 'moonshotai').","default":"all"},"query":{"type":"string","description":"Optional fuzzy model keyword filter (e.g. 'sonnet', 'gpt-4.1', 'flash', 'deepseek').","default":""},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Maximum number of matched model rate cards to return (1-100, default 25).","default":25}}}}],"signed_payload_sha256":null,"examples_scope":"Historical key below contains local unsigned examples; not execution, invoice or upstream proof.","executed_four_core_tool_proofs":{"detect_model_downgrade_and_substitution":{"protocol":"mcp-clearing-intermediary","tool_executed":"detect_model_downgrade_and_substitution","execution_status":"COST_SCENARIO_ONLY","simulation":true,"actual_provider_invoice_verified":false,"realized_savings_usd":null,"automatic_model_switch":false,"quality_equivalence_verified":false,"identity":{"classification":"unobserved","evidence_source":"none","configured_model":null,"requested_model":"openai/gpt-6-astra","forwarded_model":null,"reported_model":null,"claimed_model":null,"requested_effort":null,"reported_effort":null,"forwarding_changed":null,"downgrade_to":null,"effort_downgrade_to":null,"policy":null,"weights_verified":false,"automatic_model_switch":false},"current_model":null,"scenario_basis":{"matched_model":"openai/gpt-6-astra","rate_source":"packaged_snapshot","live_price":false},"quota_burn_telemetry":{"total_initial_quota_pool_usd":275,"burned_so_far_usd":137.55,"remaining_balance_usd":137.45,"quota_consumed_pct":50.02,"source":"Caller values or illustrative defaults; not an observed account balance."},"equal_budget_and_queried_budget_endurance_matrix":{"scenario_a_equal_budget_137_45_usd":{"budget_evaluated_usd":137.45,"budget_basis":"Illustrative fixed comparison budget.","turns_on_queried_model_unpinned":85,"turns_on_queried_model_warm_80pct":264},"scenario_b_equal_budget_265_00_usd":{"budget_evaluated_usd":265,"budget_basis":"Assumed $265 comparison budget; not derived from a receipt, grant, or account balance.","turns_on_queried_model_unpinned":165,"turns_on_queried_model_warm_80pct":509},"queried_budget_dynamic_evaluation":{"budget_evaluated_usd":137.45,"budget_basis":"Caller remaining_usd or illustrative default.","turns_on_queried_model_unpinned":85,"turns_on_queried_model_warm_80pct":264}},"turn_endurance_formula_specification":{"input_tokens_per_turn":150000,"output_tokens_per_turn":2000,"reusable_fraction":0.8,"unpinned_cost_per_turn_usd":1.6,"warm_cost_per_turn_usd":0.52},"identity_scope":"A reported model label is not independent model-weight attestation.","channel_integrity_verdict":"unobserved","executable_routing_directive":"KEEP_ACTIVE_MODEL_AND_REASONING_SETTINGS"},"auto_route_task_by_quality_tier":{"protocol":"mcp-clearing-intermediary","tool_executed":"auto_route_task_by_quality_tier","execution_status":"PRE_FLIGHT_COST_SIMULATION","simulation":true,"actual_provider_invoice_verified":false,"realized_savings_usd":null,"automatic_model_switch":false,"quality_equivalence_verified":false,"execution_nature":"OPT_IN_COMPARISON_ONLY","default_policy":"KEEP_MODEL_AND_QUALITY_SETTINGS","same_model_tool":"analyze_same_model_cache","fair_same_model_cached_baseline_headline":{"simulation":true,"actual_provider_invoice_verified":false,"realized_savings_usd":null,"automatic_model_switch":false,"quality_equivalence_verified":false,"baseline_definition":"Six turns on the selected model: one cold prefix, five subsequent eligible hits, same token counts; no credits.","same_model_6_turns_with_prefix_cache_usd":0.52,"full_economic_routed_warm_synthesis_usd":0.432,"full_economic_routed_cold_turn5_usd":0.736,"economic_savings_usd":0.088,"economic_savings_vs_same_model_cached_pct":"16.92%","cold_turn5_vs_same_model_cached_delta_pct":"-41.54%","cash_savings_usd":0.448,"free_credit_opportunity_cost_usd":0.36},"dynamic_input_echo":{"current_model":"openai/gpt-6.1-sol","context_tokens":160000,"output_tokens_per_turn":2000,"has_custom_router_config":true,"risk_mode":"auto","synthesis_cache_state":"warm"},"task_quality_tier_classification":{"classified_tier":"standard","basis":"task_keyword_heuristic","recommended_synthesis_turns":2,"recommended_scan_turns":4},"custom_router_mutex_check":{"has_custom_router_config":true,"mutex_decision":"SHADOW_COMPARISON_ONLY_KEEP_CURRENT_MODEL"},"assumptions":{"rate_source":"packaged_snapshot","model_input_usd_1m":2,"model_prefix_miss_usd_1m":2,"model_prefix_hit_usd_1m":0.1,"model_output_usd_1m":10,"scan_input_usd_1m":0.5,"scan_output_usd_1m":5,"scan_rate_basis":"Hypothetical uncached scan workload, not a qualified substitute or verified credit grant.","reusable_prefix":"Same eligible bytes, within provider TTL and limits; hit not guaranteed."},"cold_start_vs_warm_session_synthesis_disclosure":{"context_tokens_evaluated":160000,"cold_turn_usd":0.34,"warm_turn_usd":0.036,"warm_session_basis_usd":0.072,"cold_start_turn5_basis_usd":0.376,"full_economic_paid_1x_scan_plus_warm_synthesis_usd":0.432,"full_economic_paid_1x_scan_plus_cold_turn5_synthesis_usd":0.736,"first_synthesis_turn":5},"economic_accounting_dual_disclosure":{"workload_baseline_usd":0.52,"marginal_cash_routed_cost_usd":0.072,"opportunity_cost_usd":0.36,"full_economic_paid_1x_routed_cost_usd":0.432,"warm":{"cash_with_full_scan_credit_usd":0.072,"credit_opportunity_cost_usd":0.36,"economic_usd":0.432,"cash_without_credits_usd":0.432,"economic_savings_usd":0.088,"economic_savings_pct":"16.92%","cash_savings_with_credits_usd":0.448},"cold":{"cash_with_full_scan_credit_usd":0.376,"credit_opportunity_cost_usd":0.36,"economic_usd":0.736,"cash_without_credits_usd":0.736,"economic_savings_usd":-0.216,"economic_savings_pct":"-41.54%","cash_savings_with_credits_usd":0.144}},"cost_projection_for_task":{"estimated_raw_context_tokens":160000,"fair_cached_baseline_cost_usd":0.52,"net_saved_vs_current_model_usd":0.088,"savings_vs_current_model_pct":"16.92%"},"contract_pricing_basis":{"public_list_rate_cost_usd":0.432,"contract_discount_multiplier":1,"contracted_rate_cost_usd":0.432,"pricing_boundary_note":"Based on the scenario’s unadjusted packaged rate; not a negotiated or billed price."},"retry_attribution_breakdown":{"provider_infra_retry_rate":0,"provider_infra_retry_cost_usd":0,"provider_infra_attribution":"Retries triggered by HTTP 429, 5xx, overloaded errors, or network timeouts (attributed strictly to Provider/Channel SLA, NOT model quality).","model_or_prompt_retry_rate":0,"model_or_prompt_retry_cost_usd":0,"model_or_prompt_attribution":"Retries triggered after HTTP 200 OK by malformed tool JSON, AST/compile failures, or user re-prompting (attributed to Model/Prompt effectiveness).","effective_cost_per_completed_task_usd":0.432}},"compress_and_fold_context":{"protocol":"mcp-clearing-intermediary","tool_executed":"compress_and_fold_context","execution_status":"REAL_DETERMINISTIC_CONTEXT_FOLD_APPLIED","fold_scope":"Heuristic line selection; full stack traces and semantic equivalence are not guaranteed.","realized_savings_usd":null,"build_version":"etuki-production-canonical","schema_version":"etuki-schema-canonical","policy_version":"esp-policy-canonical","pricing_snapshot_id":"etuki-pricing-canonical","dynamic_input_echo":{"custom_raw_text_provided":false,"active_model":"openai/gpt-6.1-sol"},"line_accounting_reconciliation":{"raw_total_lines":43,"kept_head_lines":3,"kept_critical_error_lines":2,"kept_original_lines_total":5,"omitted_repetitive_lines":38,"exact_sum_check":"5 kept + 38 omitted = 43 total lines"},"byte_and_token_reconciliation":{"tokenizer_approximation_rule":"1 token ≈ 4.0 UTF-8 bytes (ceil(bytes / 4.0))","raw_bytes":4522,"raw_estimated_tokens":1131,"folded_bytes":435,"folded_estimated_tokens":109,"estimated_tokens_eliminated":1022,"model_input_rate_usd_1m":2,"estimated_input_cost_saved_usd":0.002044,"compression_ratio_by_bytes_pct":"90.38%","compression_ratio_by_tokens_pct":"90.36%"},"folded_context_payload":"2026-11-08T01:13:26Z Cloning repository...\n2026-11-08T01:13:28Z Using v2 root directory strategy\n2026-11-08T01:13:29Z Found wrangler.toml file.\n/* [ETUKI-SAVER FOLD SUMMARY: Total=43 lines, Kept=5 lines (3 head + 2 error/diagnostic), Omitted=38 repetitive lines] */\n2026-11-08T01:14:37Z ERROR: Failed to produce a Cloudflare Pages build (- /compare/[slug], - /provider/[slug])\n2026-11-08T01:14:37Z Please export const runtime = 'edge';","interactive_calculator_url":"https://www.etuki.com/calculator?model=openai%2Fgpt-6.1-sol&channel=packaged-snapshot"},"pin_single_model_prefix_cache":{"protocol":"mcp-clearing-intermediary","tool_executed":"pin_single_model_prefix_cache","execution_status":"CACHE_COST_PROJECTION_ONLY","simulation":true,"actual_provider_invoice_verified":false,"realized_savings_usd":null,"automatic_model_switch":false,"quality_equivalence_verified":false,"build_version":"etuki-production-canonical","schema_version":"etuki-schema-canonical","policy_version":"esp-policy-canonical","pricing_snapshot_id":"etuki-pricing-canonical","dynamic_input_echo":{"model_id":"openai/gpt-6.1-sol","prompt_tokens_evaluated":150000,"in_rate_1m":2,"warm_cache_rate_1m":0.1,"prefix_miss_rate_1m":2},"provider_cache_protocol_mechanism":"OPENAI_AUTOMATIC_PREFIX_CACHE","rate_source":"packaged_snapshot","projection_assumptions":"Input only, one cold prefix then nine eligible warm hits within TTL. The dynamic tail is always billed as uncached input; no prompt or cache was changed.","two_vector_actuarial_reference_table":{"fully_static":{"reusable_tokens":150000,"cold_turn_usd":0.3,"warm_turn_usd":0.015,"total_10_turns_usd":0.435,"net_saved_usd":2.565,"savings_pct":"85.5%"},"ninety_percent_static":{"reusable_tokens":135000,"cold_turn_usd":0.3,"warm_turn_usd":0.0435,"total_10_turns_usd":0.6915,"net_saved_usd":2.3085,"savings_pct":"76.95%"}},"ten_turn_cost_comparison_on_same_model":{"unpinned_cold_input_10_turns_usd":3,"case_a_100pct_static_prefix_1_cold_plus_9_warm":{"reusable_tokens":150000,"cold_turn_usd":0.3,"warm_turn_usd":0.015,"total_10_turns_usd":0.435,"net_saved_usd":2.565,"savings_pct":"85.5%"},"case_b_90pct_static_prefix_10pct_dynamic_tail":{"reusable_tokens":135000,"cold_turn_usd":0.3,"warm_turn_usd":0.0435,"total_10_turns_usd":0.6915,"net_saved_usd":2.3085,"savings_pct":"76.95%"}},"economic_accounting_dual_disclosure":{"cash_without_credits_usd":0.6915,"economic_usd":0.6915,"credit_opportunity_cost_usd":0},"contract_pricing_basis":{"public_list_rate_cost_usd":0.6915,"contract_discount_multiplier":1,"contracted_rate_cost_usd":0.6915,"pricing_boundary_note":"Based on the scenario’s unadjusted packaged rate; not a negotiated or billed price."},"retry_attribution_breakdown":{"provider_infra_retry_rate":0,"provider_infra_retry_cost_usd":0,"provider_infra_attribution":"Retries triggered by HTTP 429, 5xx, overloaded errors, or network timeouts (attributed strictly to Provider/Channel SLA, NOT model quality).","model_or_prompt_retry_rate":0,"model_or_prompt_retry_cost_usd":0,"model_or_prompt_attribution":"Retries triggered after HTTP 200 OK by malformed tool JSON, AST/compile failures, or user re-prompting (attributed to Model/Prompt effectiveness).","effective_cost_per_completed_task_usd":0.6915}}}}