feat(mcp): extend Kijiji tool with filtering parameters
This commit is contained in:
@@ -3,25 +3,57 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export const tools = [
|
export const tools = [
|
||||||
{
|
{
|
||||||
name: "search_kijiji",
|
name: "search_kijiji",
|
||||||
description: "Search Kijiji marketplace for listings matching a query",
|
description: "Search Kijiji marketplace for listings matching a query",
|
||||||
inputSchema: {
|
inputSchema: {
|
||||||
type: "object",
|
type: "object",
|
||||||
properties: {
|
properties: {
|
||||||
query: {
|
query: {
|
||||||
type: "string",
|
type: "string",
|
||||||
description: "Search query for Kijiji listings",
|
description: "Search query for Kijiji listings",
|
||||||
},
|
},
|
||||||
maxItems: {
|
location: {
|
||||||
type: "number",
|
type: "string",
|
||||||
description: "Maximum number of items to return",
|
description: "Location name or ID (e.g., 'toronto', 'gta', 'ontario')",
|
||||||
default: 5,
|
},
|
||||||
|
category: {
|
||||||
|
type: "string",
|
||||||
|
description: "Category name or ID (e.g., 'computers', 'furniture', 'bikes')",
|
||||||
|
},
|
||||||
|
keywords: {
|
||||||
|
type: "string",
|
||||||
|
description: "Additional keywords to filter results",
|
||||||
|
},
|
||||||
|
sortBy: {
|
||||||
|
type: "string",
|
||||||
|
description: "Sort results by field",
|
||||||
|
enum: ["relevancy", "date", "price", "distance"],
|
||||||
|
default: "relevancy",
|
||||||
|
},
|
||||||
|
sortOrder: {
|
||||||
|
type: "string",
|
||||||
|
description: "Sort order",
|
||||||
|
enum: ["asc", "desc"],
|
||||||
|
default: "desc",
|
||||||
|
},
|
||||||
|
maxPages: {
|
||||||
|
type: "number",
|
||||||
|
description: "Maximum pages to fetch (~40 items per page)",
|
||||||
|
default: 5,
|
||||||
|
},
|
||||||
|
priceMin: {
|
||||||
|
type: "number",
|
||||||
|
description: "Minimum price in cents",
|
||||||
|
},
|
||||||
|
priceMax: {
|
||||||
|
type: "number",
|
||||||
|
description: "Maximum price in cents",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
required: ["query"],
|
||||||
},
|
},
|
||||||
required: ["query"],
|
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "search_facebook",
|
name: "search_facebook",
|
||||||
description: "Search Facebook Marketplace for listings matching a query",
|
description: "Search Facebook Marketplace for listings matching a query",
|
||||||
|
|||||||
Reference in New Issue
Block a user