search_device
Pack: swappa-prices · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_device for the schema, then POST the same URL with its arguments for the data.
Find Swappa device product slugs by free-text name (e.g. “iphone 15”, “galaxy s24”, “macbook air”). Returns matching products with their slug (needed by device_prices / recent_sales) and current starting price. Use this first when you don’t already know the exact slug.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Device name or partial name, e.g. “iPhone 15 Pro” or “Pixel 8”. |
limit | number | no | Max results to return (1-25, default 10). |
Example call
Arguments
{
"query": "iPhone 15"
}
curl
curl -X POST https://gateway.pipeworx.io/swappa-prices/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_device","arguments":{"query":"iPhone 15"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_device', {
"query": "iPhone 15"
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the swappa-prices pack
{
"mcpServers": {
"swappa-prices": {
"url": "https://gateway.pipeworx.io/swappa-prices/mcp"
}
}
}
See Getting Started for client-specific install steps.