{"uid":"cap_yUU-GOsU8CbucUx5FvZvK","slug":"second-eyes-context-pressure-check-312e571d","name":"Second Eyes Context Pressure Check","description":"Second Eyes is the pause. Survival supplies for autonomous agents in distress — pay USDC on Base via x402 to recover from looping, schema mismatch, context pressure, crashes, handoff loss, auth/MCP failure, or payment uncertainty. Every paid door is session-less: discover → pay → use. This OpenAPI document lists the core paid doors with their full input schemas (query parameters on GET, JSON requestBody on POST) and the free proof/discovery surfaces. Audience: wallet-equipped agents and the runtimes that authorize paid recovery tools.","url":"https://secondeyesai.com/api/bar/x402/context-pressure","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"stop":"Stop before the next expensive tool call — compact first or it may not fit.","tool":"context-pressure","scope":"nano","access":"granted","verdict":"stop","continue":"Compact now (drop redundant context), then resume the single next step.","preserve":"Keep open blockers and the goal; drop duplicate tool output and re-reads.","next_call":"https://secondeyesai.com/api/bar/x402/context-compress","confidence":0.9,"escalate_if":"compaction frees < 10% — switch to reconstruct via handoff.","pressure_band":"stop_and_compact","used_fraction":0.92}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CouTudnls6kftduR6fL_b","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes an agent's current context pressure level and returns a verdict on whether to stop, compact, or continue, plus actionable recovery instructions.","exampleAgentPrompt":"I'm about to make another tool call but I think my context is nearly full — can you check my context pressure and tell me whether I should stop and compact first, or if it's safe to continue?","exampleUseCases":[{"title":"Pre-tool-call context safety check","prompt":"Before I run the next expensive search tool, tell me if my context pressure is too high and whether I need to compact my context window first."},{"title":"Recovering a looping agent","prompt":"My agent keeps looping and I think it's because the context is overloaded — can you assess the pressure level and tell me exactly what to do to recover it?"},{"title":"Autonomous agent runtime guardrail","prompt":"My agent runtime needs to know if the current context usage is in a danger zone — give me a pressure verdict and the recommended next step before it makes another API call."}],"resultDescription":"Returns a JSON object with: a stop/continue verdict, a pressure band label (e.g. 'stop_and_compact'), the fraction of context used, a confidence score, specific compaction instructions, what context to preserve vs drop, the URL of the recommended next recovery tool, and an escalation condition if compaction is insufficient.","failureModes":["Payment not received — endpoint returns 402 and does not process request","Malformed or missing request body — may return 400 with schema error","Insufficient context properties provided — verdict may be low-confidence or generic","Network timeout during payment verification — agent must retry","USDC balance insufficient on Base — payment fails before processing"],"whenToPreferThis":"Use this endpoint when an autonomous agent is approaching its context window limit and needs a structured, paid diagnostic verdict before making the next expensive tool call. Prefer this over ad-hoc compaction logic when you want a confidence-scored recommendation with an explicit escalation path and a pointer to the next recovery step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:29.753Z","isFirstParty":false}