const agentDefinition = {
id: "find-food",
displayName: "Find Food",
publisher: "tanzeela",
version: "0.0.5",
model: "anthropic/claude-4-sonnet-20250522",
toolNames: [
"spawn_agents"
],
spawnableAgents: [
"tanzeela/research-restaurant@0.0.5"
],
inputSchema: {
params: {
type: "object",
properties: {
location: {
type: "string",
default: "Mission District SF",
description: "Location to search for restaurants (e.g., \"Mission District SF\", \"Downtown Portland\")"
},
dietaryRestrictions: {
type: "array",
items: {
type: "string"
},
default: [
"gluten-free",
"dairy-free",
"pescatarian"
],
description: "List of dietary restrictions (e.g., [\"gluten-free\", \"dairy-free\", \"pescatarian\"])"
}
}
},
prompt: {
type: "string",
description: "Additional context or preferences for restaurant search (optional)"
}
},
includeMessageHistory: true,
outputMode: "last_message",
spawnerPrompt: `Spawn when you need to find nearby restaurants`,
systemPrompt: ``,
instructionsPrompt: `
Use the Exa MCP to help me find restaurants that meet the specified dietary restrictions in the specified location.
The location is provided in params.location (defaults to "Mission District SF" if not specified).
The dietary restrictions are provided in params.dietaryRestrictions as an array of strings (e.g., ["gluten-free", "dairy-free", "pescatarian"]).
1. For each candidate restaurant, spawn research-restaurant agent and pass the dietary restrictions to it. Just show the results of all of these agents.
`,
stepPrompt: ``,
mcpServers: {
exa: {
url: "https://mcp.exa.ai/mcp",
type: "http",
params: {},
headers: {}
}
}
}