In short.
Give it tools is a guide for developers connecting Perplexity Agent API agents to external capabilities, but you must execute custom functions yourself. It explains three integration paths: Perplexity-hosted tools, remote MCP servers and functions declared through JSON Schema. Its most useful detail is the custom-function continuation sequence, which returns results under the original call_id and replays the relevant conversation items. MCP calls run without approval by default, and the TypeScript MCP example bypasses SDK type checking. Prices, operational reliability and current compatibility are not established by this page; nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected documentation page at [https://docs.perplexity.ai/docs/agent-api/building-agents/give-it-tools.md], including its examples, tables, notes, SDK typing caveat and MCP approval default. Linked documentation, the documentation index, repositories and remote servers are excluded. Links are reported as references only; their contents were not assessed. No code or service interaction was executed, and runtime behavior, compatibility, prices and reliability remain unverified.
The overview
Identity
Give it tools is a Perplexity Agent API documentation guide about enabling tools and handling their results. The source is [https://docs.perplexity.ai/docs/agent-api/building-agents/give-it-tools.md].
The resource is instructional documentation. It contains Python, TypeScript and cURL examples for hosted tools, an MCP connection and a custom order-status function.
Assessment
The guide is useful for understanding who executes a tool and how its result reaches the model. That distinction determines how much integration code a developer must write.
Its strongest practical contribution is the complete custom-function exchange, from schema declaration to returning a result. Detailed tool settings, pricing, MCP authentication and approval configuration require separate references. Runtime correctness and production suitability were not assessed.
Users
The examples suit developers building agents that need current web information, remote services or internal business data. Beginners can learn the division of responsibility between the model, Perplexity and their application; experienced developers can inspect request fields and continuation messages.
Readers need enough Python, TypeScript or HTTP knowledge to adapt API requests. The page assumes familiarity with API clients, JSON and application-side functions, and does not provide a complete account or SDK installation walkthrough.
Capabilities
The documented hosted tools are sandbox for isolated code execution, web_search for live search with domain, date and location filters, fetch_url for extracting page content, people_search for finding people and professionals, and finance_search for structured financial and market data.
The guide also shows remote MCP tool discovery and custom functions described with JSON Schema. Built-in results appear in the response output array alongside message items, with result types such as search_results, finance_results and sandbox_results. Exact result formats are delegated to each tool’s reference.
Using it
Requirements
The HTTP examples use the endpoint [https://api.perplexity.ai/v1/agent], a bearer credential supplied through PERPLEXITY_API_KEY and JSON request bodies. The Python examples import Perplexity from perplexity; TypeScript imports it from @perplexity-ai/perplexity_ai. Required package versions and account entitlements are not specified.
A custom function requires an implementation in your application and code that handles the returned call. MCP requires a remote server URL and label. The demonstrated DeepWiki server needs no authentication; authentication requirements for other servers are not explained here.
Mechanism
Tools are declared in the tools array. The model decides whether and when to invoke them based on the input and instructions. Perplexity executes hosted tools. For MCP, Agent API discovers the remote server’s tools when the request starts and handles calls without requiring the application to dispatch each one.
For a custom function, the model returns a function_call containing a name, JSON-encoded arguments and call_id. Your application parses the arguments, executes its function and submits a function_call_output with the same call_id. The continuation replays the original question and the call and result together. The guide documents strict: true as enforcing the parameter schema.
Setup
For hosted tools, the example calls client.responses.create with a model, input, tools containing web_search and fetch_url, and max_steps set to 10. It then reads response.output_text. The sample model identifier is openai/gpt-5.6-sol; its present availability is not established.
For MCP, the example adds type mcp, server_label deepwiki and server_url [https://mcp.deepwiki.com/mcp]. For a custom function, it declares type function, a name, description and parameters schema, then adds application code to execute and return the result. The page’s TypeScript MCP example uses an any cast because the documented SDK types do not yet include MCP tools.
Example
The custom-tool example asks for the status of order ORD-10042. It declares get_order_status with one required string parameter, order_id. The model’s illustrated function_call supplies that identifier; the application then looks it up and returns the result under the matching call_id.
The lookup uses a hard-coded dictionary containing an in_transit status, DHL carrier and an example arrival date. It illustrates the message exchange, without demonstrating a connection to a real order system. The Python and TypeScript continuations include the tools definition; the cURL continuation omits it, and the page does not explain that difference. None of these examples was executed.
Assessment & evidence
Limitations
MCP calls run without approval by default. The guide points to approval documentation but does not demonstrate its configuration. That default matters when a connected server exposes operations that change external systems.
The custom-function examples process one returned call. They do not demonstrate multiple-call handling, retries, execution failures or a longer tool loop. Schema enforcement addresses argument structure; the page does not establish how application permissions or business rules are enforced.
The TypeScript MCP example bypasses static type checking. Exact SDK compatibility, rate limits, latency, data retention and operational reliability remain unknown or unassessed.
Reasoning
The documented execution boundaries provide a useful basis for choosing an integration. Hosted tools place execution with Perplexity; MCP connects tools exposed by a remote server; custom functions leave dispatch and execution with your application.
From those boundaries, custom functions appear appropriate when an application must control access to internal operations, while hosted tools can reduce application-side dispatch work for the listed capabilities. These are architectural judgments from the documented flow, not measured performance or reliability findings.
Alternatives
The page supports comparison among its three integration options. A hosted tool fits a listed Perplexity capability; MCP fits a remote server exposing the needed tools; a custom function fits application-owned code or an internal API.
It provides no comparative evidence about other agent frameworks or providers. Relative prices, compatibility, performance and operational effort across those products are unknown.
Evidence
The evidence is the complete Give it tools documentation page at [https://docs.perplexity.ai/docs/agent-api/building-agents/give-it-tools.md]. It contains request examples, an illustrated function-call response, continuation examples and descriptions of execution responsibility.
The page supports an explanation of the documented interface. It supplies no benchmark, independent evaluation or execution receipt. No code, API request, MCP connection or hosted tool was run, so actual behavior and output quality remain unassessed.
Access & freshness
Costs
Prices are unknown. The guide links to individual hosted-tool references for pricing but gives no rates, token charges, allowances or worked cost example.
Charges for the model, MCP servers and any services invoked by custom functions are also unspecified. The DeepWiki example’s lack of authentication does not establish that use is free. The max_steps value of 10 is an example setting, with no documented monetary limit attached.
Rights
The supplied page does not state a license or explicit reuse and redistribution terms for its prose or code examples. Those rights remain unknown.
Service terms, rights to retrieved content and terms imposed by connected MCP or custom-tool services are not established by this page.
Freshness
The supplied snapshot was captured at 2026-11-15T02:57:09.061Z. Its source revision is sha256:2f0afc3f7db2b8724048c87a398e612d17b638f9011f224280db7b11895fdd13. The capture time identifies the snapshot; the page’s publication and last-update dates are not supplied.
The model identifier and the statement about missing TypeScript MCP types belong to this snapshot. Their current status has not been independently confirmed. The order example’s arrival date is sample data and does not establish documentation freshness.
Actions
Choose the execution path that matches the required capability and who should operate it. For a hosted tool, consult its reference for settings, result structure and price. For MCP, review authentication and approval configuration before connecting a server [https://docs.perplexity.ai/docs/agent-api/tools/mcp.md#approvals].
For custom functions, implement argument handling, application authorization, execution and the matching call_id return path. Add handling for absent calls, multiple calls and execution errors. Confirm the chosen model, SDK support and expected charges before deployment; this page does not establish those details.
