A client MAY advertise a minimum level via initialize.params._meta.logLevel;
servers SHOULD honour it and emit logs only when the client advertised the
log capability. A client MUST function correctly if it drops every log.
Over stdio, logs travel as notifications/logon stdout — not stderr — so
a supervising client sees them in-band and correlated with requests. stderr
remains for unstructured, human-only diagnostics.
Usage telemetry
Every retrieve / rerank / graph result SHOULD carry a usage object
with per-request telemetry:
Candidates produced by the recall stage — attribute recall vs precision.
integer
How many candidates the reranker actually rescored.
integer
Server-side wall time for the request.
string[]
Free-form notes — e.g. a graceful strict:false degradation.
Trace-correlation ids belong in _meta (e.g. _meta.traceId), never in a
core field. Combine usage.candidates/usage.reranked with the funnel invariant
to tune candidateK/topN/k, and pair it with fixed seed + pinned
indexVersion for reproducible evals — see
Evaluation.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Retrieval Context Protocol","description":"RCP is one open, versioned JSON-RPC protocol so any RAG engine — any language, any vendor — can expose embed, rerank, retrieve, graph, and index, and any client can consume it uniformly. The retrieval companion to MCP and ACP.","colors":{"primary":"#10b981","light":"#34d399","dark":"#059669"},"logo":{"light":"https://mintcdn.com/rcp-6d6ef6d5/wb6rVi5wp17XKej1/logo/light.svg?fit=max\u0026auto=format\u0026n=wb6rVi5wp17XKej1\u0026q=85\u0026s=2d00ade2a473493ffe3963e9b779a51d","dark":"https://mintcdn.com/rcp-6d6ef6d5/wb6rVi5wp17XKej1/logo/dark.svg?fit=max\u0026auto=format\u0026n=wb6rVi5wp17XKej1\u0026q=85\u0026s=c8d83a8067c3468e9e3cf7c8e713d95b","href":"https://github.com/1ay1/rcp"},"favicon":{"light":"https://mintcdn.com/rcp-6d6ef6d5/wb6rVi5wp17XKej1/favicon.svg?fit=max\u0026auto=format\u0026n=wb6rVi5wp17XKej1\u0026q=85\u0026s=280e1f02a7a9783a294a1b68093e41b8","dark":"https://mintcdn.com/rcp-6d6ef6d5/wb6rVi5wp17XKej1/favicon.svg?fit=max\u0026auto=format\u0026n=wb6rVi5wp17XKej1\u0026q=85\u0026s=280e1f02a7a9783a294a1b68093e41b8"},"background":{"color":{"light":"#fbfbf9","dark":"#0d1117"}},"navbar":{"links":[{"href":"https://github.com/1ay1/rcp/blob/main/spec/rcp-1.0.md","label":"Specification"}],"primary":{"type":"button","label":"GitHub","href":"https://github.com/1ay1/rcp"}},"footer":{"socials":{"github":"https://github.com/1ay1/rcp"}},"seo":{"metatags":{"og:image":"/images/og.png"},"indexing":"navigable"},"fonts":{"heading":{"family":"Lora"},"body":{"family":"Inter"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rcp-6d6ef6d5","hasAudioNarration":false,"actualSubdomain":"rcp-6d6ef6d5","customDomains":["retrievalcontextprotocol.com"],"gitSource":{"type":"github","owner":"1ay1","repo":"rcp","deployBranch":"main","contentDirectory":"docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95c95021c491c8f5c266d:success","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Documentation","count":31},{"language":"default","tag":"Reference","count":12},{"language":"default","tag":"Methods","count":10},{"language":"default","tag":"SDKs","count":10},{"language":"default","tag":"Core Concepts","count":9},{"language":"default","tag":"Community","count":8},{"language":"default","tag":"Features","count":6},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Ecosystem","count":2},{"language":"default","tag":"Operating a Server","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"features/observability","slug":"/features/observability","pageMetadata":{"title":"Observability","description":"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.","icon":"chart-line","href":"/features/observability"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ResponseField,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Production retrieval must be debuggable and measurable. RCP exposes two optional\nchannels; both are advisory and `,_jsx(_components.strong,{children:`never`}),` alter retrieval semantics.`]}),`\n`,_jsx(Heading,{level:`2`,id:`log-notifications`,children:`Log notifications`}),`\n`,_jsxs(_components.p,{children:[`A server that advertises `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`log`})}),` `,_jsx(_components.strong,{children:`MAY`}),` emit `,_jsx(_components.code,{children:`notifications/log`}),` at any time —\nno `,_jsx(_components.code,{children:`id`}),`, no response:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"jsonrpc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"notifications/log\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"params\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"level\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"info\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reranked 100→30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"logger\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pipeline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"latencyMs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"_meta\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"progressToken\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"t2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } } }`})]}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`level`,type:`string`,id:`param-level`,children:_jsxs(_components.p,{children:[`Syslog-style severity: `,_jsx(_components.code,{children:`debug`}),`, `,_jsx(_components.code,{children:`info`}),`, `,_jsx(_components.code,{children:`notice`}),`, `,_jsx(_components.code,{children:`warning`}),`, `,_jsx(_components.code,{children:`error`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsxs(_components.p,{children:[`Human-readable text. `,_jsx(_components.strong,{children:`Never`}),` parse it for control flow.`]})}),`\n`,_jsx(ResponseField,{name:`logger`,type:`string`,id:`param-logger`,children:_jsx(_components.p,{children:`Optional component/source name.`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsx(_components.p,{children:`Optional structured payload — timings, counts, ids.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A client `,_jsx(_components.strong,{children:`MAY`}),` advertise a minimum level via `,_jsx(_components.code,{children:`initialize.params._meta.logLevel`}),`;\nservers `,_jsx(_components.strong,{children:`SHOULD`}),` honour it and emit logs only when the client advertised the\n`,_jsx(_components.code,{children:`log`}),` capability. A client `,_jsx(_components.strong,{children:`MUST`}),` function correctly if it drops every log.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Over stdio, logs travel as `,_jsx(_components.code,{children:`notifications/log`}),` `,_jsx(_components.strong,{children:`on stdout`}),` — `,_jsx(_components.em,{children:`not`}),` stderr — so\na supervising client sees them in-band and correlated with requests. `,_jsx(_components.code,{children:`stderr`}),`\nremains for unstructured, human-only diagnostics.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`usage-telemetry`,children:`Usage telemetry`}),`\n`,_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`retrieve`}),` / `,_jsx(_components.code,{children:`rerank`}),` / `,_jsx(_components.code,{children:`graph`}),` result `,_jsx(_components.strong,{children:`SHOULD`}),` carry a `,_jsx(_components.code,{children:`usage`}),` object\nwith per-request telemetry:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"hits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"candidates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"reranked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"latencyMs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"notes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [] } } }`})]}),`\n`]})})}),`\n`,_jsx(ResponseField,{name:`candidates`,type:`integer`,id:`param-candidates`,children:_jsx(_components.p,{children:`Candidates produced by the recall stage — attribute recall vs precision.`})}),`\n`,_jsx(ResponseField,{name:`reranked`,type:`integer`,id:`param-reranked`,children:_jsx(_components.p,{children:`How many candidates the reranker actually rescored.`})}),`\n`,_jsx(ResponseField,{name:`latencyMs`,type:`integer`,id:`param-latency-ms`,children:_jsx(_components.p,{children:`Server-side wall time for the request.`})}),`\n`,_jsx(ResponseField,{name:`notes`,type:`string[]`,id:`param-notes`,children:_jsxs(_components.p,{children:[`Free-form notes — e.g. a graceful `,_jsx(_components.code,{children:`strict:false`}),` degradation.`]})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Trace-correlation ids belong in `,_jsx(_components.code,{children:`_meta`}),` (e.g. `,_jsx(_components.code,{children:`_meta.traceId`}),`), `,_jsx(_components.strong,{children:`never`}),` in a\ncore field. Combine `,_jsx(_components.code,{children:`usage.candidates`}),`/`,_jsx(_components.code,{children:`usage.reranked`}),` with the funnel invariant\nto tune `,_jsx(_components.code,{children:`candidateK`}),`/`,_jsx(_components.code,{children:`topN`}),`/`,_jsx(_components.code,{children:`k`}),`, and pair it with fixed `,_jsx(_components.code,{children:`seed`}),` + pinned\n`,_jsx(_components.code,{children:`indexVersion`}),` for reproducible evals — see\n`,_jsx(_components.a,{href:`/reference/specification`,children:`Evaluation`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Observability","description":"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.","icon":"chart-line","href":"/features/observability"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Log notifications","slug":"log-notifications","depth":2,"children":[]},{"title":"Usage telemetry","slug":"usage-telemetry","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rcp-6d6ef6d5","siteName":"Retrieval Context Protocol","title":"Observability - Retrieval Context Protocol","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-22T07:36:45.487Z","originalFileLocation":"features/observability.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Retrieval Context Protocol\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Observability - Retrieval Context Protocol\">\u003cmeta data-mint-head property=\"og:description\" content=\"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Retrieval Context Protocol\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://retrievalcontextprotocol.com/features/observability\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rcp-6d6ef6d5.mintlify.site/images/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Observability - Retrieval Context Protocol\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rcp-6d6ef6d5.mintlify.site/images/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rcp-6d6ef6d5/8u-oBDMY0Bty24CT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Retrieval Context Protocol\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10b981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://retrievalcontextprotocol.com/features/observability\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/observability.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://retrievalcontextprotocol.com/#organization\",\"name\":\"Retrieval Context Protocol\",\"url\":\"https://retrievalcontextprotocol.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rcp-6d6ef6d5/wb6rVi5wp17XKej1/logo/light.svg?fit=max\u0026auto=format\u0026n=wb6rVi5wp17XKej1\u0026q=85\u0026s=2d00ade2a473493ffe3963e9b779a51d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://retrievalcontextprotocol.com#website\",\"name\":\"Retrieval Context Protocol\",\"url\":\"https://retrievalcontextprotocol.com\",\"publisher\":{\"@id\":\"https://retrievalcontextprotocol.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://retrievalcontextprotocol.com/features/observability#webpage\",\"url\":\"https://retrievalcontextprotocol.com/features/observability\",\"name\":\"Observability\",\"description\":\"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\",\"dateModified\":\"2026-07-22T07:36:45.487Z\",\"isPartOf\":{\"@id\":\"https://retrievalcontextprotocol.com#website\"},\"breadcrumb\":{\"@id\":\"https://retrievalcontextprotocol.com/features/observability#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://retrievalcontextprotocol.com/features/observability#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://retrievalcontextprotocol.com/features/metadata-filtering\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Observability\",\"item\":\"https://retrievalcontextprotocol.com/features/observability\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://retrievalcontextprotocol.com/features/observability#article\",\"headline\":\"Observability\",\"name\":\"Observability\",\"description\":\"Two optional, non-intrusive channels — structured log notifications and per-request usage telemetry — that never alter retrieval semantics.\",\"url\":\"https://retrievalcontextprotocol.com/features/observability\",\"mainEntityOfPage\":{\"@id\":\"https://retrievalcontextprotocol.com/features/observability#webpage\"},\"image\":\"https://retrievalcontextprotocol.com/images/og.png\",\"dateModified\":\"2026-07-22T07:36:45.487Z\",\"publisher\":{\"@id\":\"https://retrievalcontextprotocol.com/#organization\"},\"isPartOf\":{\"@id\":\"https://retrievalcontextprotocol.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Retrieval Context Protocol\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Retrieval Context Protocol\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/observability.md","siteName":"Retrieval Context Protocol","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"group":"Get Started","pages":[{"title":"Retrieval Context Protocol","href":""},{"title":"Introduction","icon":"hand-wave","href":"/get-started/introduction"},{"title":"Architecture","icon":"sitemap","href":"/get-started/architecture"},{"title":"Quickstart","icon":"rocket","href":"/get-started/quickstart"}]},{"group":"Core Concepts","pages":[{"title":"The retrieval pipeline","icon":"diagram-project","href":"/concepts/pipeline"},{"title":"Message Format","icon":"code","href":"/concepts/message-format"},{"title":"Transports","icon":"shuffle","href":"/concepts/transports"},{"title":"Capabilities","icon":"handshake","href":"/concepts/capabilities"},{"title":"Initialization","icon":"play","href":"/concepts/initialization"},{"title":"Errors","icon":"triangle-exclamation","href":"/concepts/errors"},{"title":"Session Lifecycle","icon":"arrows-rotate","href":"/concepts/lifecycle"},{"title":"Agentic \u0026 self-improving RAG","icon":"robot","href":"/concepts/agentic-rag"},{"title":"Extensibility","icon":"puzzle-piece","href":"/concepts/extensibility"}]},{"group":"Methods","tag":"RCP/1","pages":[{"title":"The method set","icon":"list","href":"/methods/overview"},{"title":"Embedding","icon":"vector-square","href":"/methods/embed"},{"title":"Rerank","icon":"arrow-down-wide-short","href":"/methods/rerank"},{"title":"Retrieve","icon":"magnifying-glass","href":"/methods/retrieve"},{"title":"Query Transform","icon":"wand-magic-sparkles","href":"/methods/query-transform"},{"title":"Graph","icon":"share-nodes","href":"/methods/graph"},{"title":"Memory","icon":"brain","href":"/methods/memory"},{"title":"Feedback","icon":"comment-dots","href":"/methods/feedback"},{"title":"Indexing","icon":"database","href":"/methods/index"},{"title":"Catalog","icon":"folder-tree","href":"/methods/catalog"}]},{"group":"Features","pages":[{"title":"Metadata Filtering","icon":"filter","href":"/features/metadata-filtering"},{"title":"Streaming \u0026 Progress","icon":"wave-square","href":"/features/streaming-progress"},{"title":"Pagination","icon":"arrow-right-long","href":"/features/pagination"},{"title":"Batching","icon":"layer-group","href":"/features/batching"},{"title":"Federation \u0026 Selector","description":"Target one backend or fuse many — both layer on the core retrieve handshake with zero new server obligations, driven from one rcp.json registry.","icon":"diagram-project","href":"/features/federation"},{"title":"Observability","icon":"chart-line","href":"/features/observability"}]},{"group":"Operating a Server","pages":[{"title":"Security","description":"RCP moves untrusted external content toward an LLM's context — its threat model is dominated by indirect prompt injection and provenance.","icon":"shield-halved","href":"/operating/security"},{"title":"Conformance","icon":"circle-check","href":"/operating/conformance"}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/specification"}]},{"tab":"Community","pages":[{"title":"Community","href":"/community/contributing"}]}]},"basePath":"","title":"Observability - Retrieval Context Protocol","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}