{"uid":"cap_6lHU-sGRcpQQs43HfcSmQ","slug":"contextslim-mcp-api-fetch-result-get-c10331bc","name":"ContextSlim MCP API – fetch_result (GET)","description":"[MCP: fetch_result] Targeted JSONPath extraction (query param mode) from cached context reference.","url":"https://contextslim.friczero.com/fetch","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"status":"success","referenceId":"ref_12345678","retrievedTokens":9}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Rcov0nTDv0nyrx9aMsNqr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves a previously cached, token-pruned JSON payload from ContextSlim's KV store using a reference ID returned by optimize_context","exampleAgentPrompt":"I have a referenceId 'ref_12345678' from a previous ContextSlim optimize_context call — can you fetch the cached pruned payload back so I can use it in my next LLM turn?","exampleUseCases":[{"title":"Resuming long-running agent memory","prompt":"I ran an optimize_context job earlier and got back referenceId 'ref_abc9000' — grab that cached slim payload now so I can feed it into the next agent step without blowing the token budget."},{"title":"Multi-turn chatbot context retrieval","prompt":"My chatbot stored a compressed conversation summary with ContextSlim under referenceId 'ref_turn42' — retrieve it so I can inject it into the current LLM prompt as prior context."},{"title":"MCP tool result cache lookup","prompt":"A previous MCP tools/call returned referenceId 'ref_toolxyz' for a big API response — fetch just the pruned subset now so my agent only sees the 9-token result, not the full payload."}],"resultDescription":"A JSON object containing the pruned/extracted result payload keyed by the referenceId, a success status string, the referenceId echo, and a retrievedTokens count indicating how many tokens the fetched slice occupies.","failureModes":["Invalid or expired referenceId returns 404 or error status","Missing required referenceId query parameter causes 400 bad request","x402 payment not satisfied causes 402 Payment Required before content is served","KV cache eviction may cause referenceId to no longer be valid","Network timeout on fetch returns 5xx error"],"whenToPreferThis":"Use this endpoint when you have already called optimize_context (or an equivalent ContextSlim pruning step) and received a referenceId, and you now need to retrieve the cached slim payload for injection into an LLM context window. Prefer this over re-running the full optimize_context call when the payload is already cached, latency is critical, and you want to minimize USDC micropayment costs by reusing cached results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:32:14.151Z","isFirstParty":false}