ZICQ
中 Log in / Sign up
Newsroom Agentic #Perplexity #MCP #Context API #Web Retrieval #Agent Tools

Perplexity Adds perplexity_context to Its MCP Server for Structured Web Retrieval

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Perplexity has added `perplexity_context` to its API MCP server, backed by the Context API endpoint `POST /v1/context`. The tool retrieves known URLs as Markdown by default, with optional HTML, links, query-relevant highlights, yes-or-no criteria scores, page metadata, freshness controls, and a request timeout. The tool is available through the hosted MCP endpoint using either OAuth or an API key, and through version 1.5.0 of `@perplexity-ai/mcp-server` for local stdio deployments. The release


What Actually Changed

Perplexity has added perplexity_context to its API MCP server, exposing the Context API endpoint POST /v1/context as a standard MCP tool. Developers no longer need to rebuild the same URL-fetching, Markdown-conversion, evidence-extraction, and cache-freshness layer in every agent project. They can expose a structured web-context primitive to models through the existing MCP tool interface.

The release supports two deployment paths:

  • The hosted endpoint at https://api.perplexity.ai/mcp is live for connections using either OAuth or an API key.
  • Local stdio deployments can use version 1.5.0 of @perplexity-ai/mcp-server.

The tool accepts known URLs and returns Markdown by default. Callers can optionally request HTML, links, query-relevant highlights, yes-or-no criteria scores, page metadata, and a timeout. This is an API integration improvement rather than a new model release, but it standardizes a capability that agent frameworks repeatedly need to implement themselves.

How the Retrieval Path Works

Based on the documented interface, the path can be understood as five layers:

  1. Tool boundary: An MCP client discovers perplexity_context and submits URLs, queries, and output options to the MCP server.
  2. Known-URL scope: The release is centered on known URLs and should not be treated as a general-purpose web discovery API. Search or navigation tools can still identify candidate pages, while perplexity_context acts as a structured evidence-retrieval step for selected targets.
  3. Content representation: Markdown is returned by default, reducing the need to pass navigation, advertising, and style markup to the model. HTML can be requested when exact DOM structure, scripts, or tags matter, at the cost of larger payloads and greater cleaning complexity.
  4. Evidence fields: highlights expose query-relevant passages, criteria provide yes-or-no condition scores, and links and metadata support citation and auditing. A binary score can help route or filter results, but it is not proof that the underlying statement is true.
  5. Freshness policy: Conditional reads, maximum cache age, cache-only access, and point-in-time snapshots let the same tool support both live retrieval and reproducible evidence collection.

How the Freshness Controls Differ

| Control | Engineering role | Caveat | |---|---|---| | if_modified_since | Attempts a conditional read when a prior page version or timestamp is known | The release does not specify conditional-request or 304 behavior in detail | | max_age_seconds | Bounds acceptable content age while balancing cost, latency, and freshness | A tight threshold can push important pages into cache misses or failure paths | | cache_only | Reads only from cache and avoids contacting the live source | The fallback behavior for cache misses must be confirmed from actual API responses | | snapshot_as_of | Requests a page snapshot for a specified point in time | Snapshot retention, historical coverage, and version consistency remain unverified | | timeout_ms | Sets an upper bound on waiting for context retrieval | A timeout is not evidence that the page is absent or empty |

These controls may conflict. A strict max_age_seconds combined with cache_only favors low latency but may reduce coverage. A snapshot_as_of policy improves reproducibility only if the returned metadata is retained and the requested snapshot actually exists. The update does not define parameter precedence, partial-response semantics, or automatic retry behavior, so production users should inspect real error responses and logs.

Engineering Trade-offs

Token Efficiency versus Evidence Completeness

Markdown reduces the number of irrelevant tokens, but aggressive cleanup can remove hierarchy, footnotes, interactive labels, or visual ordering that carries meaning. highlights speed up passage selection but are not guaranteed to include negations, exceptions, or scope qualifiers.

A better approach is to request the smallest field set for the task. Ordinary question answering needs Markdown and highlights; audited answers also need links and metadata; only DOM-level analysis needs raw HTML. Requesting every field at once increases transfer size, context occupancy, and latency without necessarily improving the answer.

Freshness, Latency, and Cost

max_age_seconds, cache_only, and snapshot_as_of support different priorities. Live operational monitoring needs a tighter age limit, research and compliance workflows benefit from stable snapshots, and bulk crawling may prefer cached results.

Perplexity has not disclosed p50 or p95 latency, cache-hit rates, concurrency limits, quotas, regional coverage, or source accessibility. A production SLO therefore cannot be inferred from the tool announcement. Teams should separately monitor cache hits, content age, refresh failures, timeout rate, response bytes, and token consumption.

Timeouts and Partial Results

timeout_ms prevents a slow web request from consuming the agent's entire execution budget. It is not clear whether the API returns partial pages, preserves intermediate fields, or permits safe retries after a timeout. Agents should record this condition as an evidence-retrieval failure, not as proof that the page does not exist. Local deduplication and bounded concurrency can reduce duplicate billing and wasteful retries for the same URL.

Binary Scores Are Not Truth Scores

The criteria field can answer mechanical questions such as whether a page mentions a configuration or contains a publication date. The release does not disclose thresholds, coverage, or error rates, and the score does not establish source authority or factual accuracy. Financial, compliance, and security decisions still require inspection of the underlying passage rather than reliance on the binary signal alone.

Deployment Guidance

  1. Separate discovery from evidence retrieval: Use search, navigation, or an internal index to produce candidate URLs, then pass those selected targets to perplexity_context.
  2. Request fields per task: Use Markdown and highlights for normal retrieval, add links, metadata, and a fixed snapshot for audit workflows, and enable HTML only when DOM-level fidelity is required.
  3. Apply tiered cache policies: Prefer cache_only for high-volume, latency-tolerant work; set a realistic max_age_seconds for time-sensitive tasks; and preserve returned metadata whenever snapshot_as_of is used.
  4. Budget concurrency and retries: Fetch independent URLs in parallel with a concurrency ceiling, and derive timeout_ms from the agent's remaining end-to-end budget rather than a fixed value that can starve later reasoning steps.
  5. Treat pages as untrusted input: Sanitize HTML before ingestion, prevent webpage instructions from overriding system prompts, tool permissions, or execution flows, and restrict permitted domains where possible.
  6. Choose the deployment boundary deliberately: The hosted endpoint simplifies centralized OAuth, credential management, and version control. Local stdio integrates more directly with existing process isolation, but packages should be version-pinned, dependencies audited, and API keys protected separately.

Practical Significance

perplexity_context combines URL retrieval, structured output, relevance excerpts, and freshness controls in an MCP-native interface. It removes substantial integration boilerplate for research agents, document-analysis workflows, and automated systems that require traceable web evidence.

The release alone does not demonstrate that the tool is faster, more complete, or better at citation quality than calling the Context API directly or maintaining a custom retrieval pipeline. Production selection should therefore be based on hit rate over a real URL set, end-to-end latency, token cost, cache freshness, and traceability of returned citations.


Source: Perplexity Changelog (2026-11-25)

— END —

Tags: #Perplexity #MCP #Context API #Web Retrieval #Agent Tools

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…