Overview
Use the Search MCP server from your ATXP-powered agent to search the web and extract information.Example prompts
- “Search the web for the latest news on the US financial sector and its impact on the stock market.”
- “Search for MCP servers that can be used with an ATXP agent.”
Tools
search_search
search_search
Executes a search query against the internet. An example of how it would be used is if you want to find the latest news on a topic.
Arguments
Accepts a JSON object with the following properties:The search query to execute.
Response
Returns a JSON object with the following properties:The status of the search operation. Returns “success” when the search is completed successfully, otherwise returns “error”.
The error message if the search operation fails. This is only returned when
status === "error"
.The results of the search query. This is only returned when
status === "success"
.Usage
1
Define the Search service
Create a reusable service configuration that points to the MCP server and standardizes how you pass arguments and read results. This lets your agent easily interact with the Search tools in a consistent manner.
2
Create an ATXP client
- Using an ATXP account
- Using a Base account
- Using a Solana account
- Using a Worldchain account
- Using a Polygon account
Create a client using an ATXP account by importing the ATXP client SDK and other dependencies.
3
Use the Search service in your agent
Call the Search tool by passing your natural‑language instruction as the argument the
getArguments
method.Read the response using the getResult
method.You should see the result of the search printed in your console.