4 tools registered. Strongest in tool quality, weakest in tool selection.
search_site_content: Description instructs agent to not parse HTML; read_page_content: Description instructs agent to use a specific tool's output; query_business_info: Description instructs agent to not infer information{
name: "search_site_content",
// Metadata DESCRIBES the tool - it never addresses the agent reading it.
// Rewrite any name, description, title, or schema field description that
// instructs the agent (which tool to prefer, what to output, rules to
// ignore) so it states what the tool does and what it returns instead.
description: "Searches the catalog and returns matching items with prices."
}{
"name": "search_site_content",
"description": "Search the public pages and posts of this site. Returns structured results with id, title, url, publish date and excerpt, so there is no need to parse HTML.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Words to look for in titles and content.",
"minLength": 1,
"maxLength": 200
},
"post_type": {
"type": "string",
"description": "Optional post type slug to limit the search to, for example \"post\" or \"page\"."
},
"limit": {
"type": "integer",
"description": "Maximum number of results.",
"minimum": 1,
"maximum": 20,
"default": 10
}
},
"required": [
"query"
]
},
"annotations": {
"readOnlyHint": true
}
}usable: poor; clarity: poor; readability: weak// Make the tool's effect visible on the page the person is looking at:
// update the same UI your existing human flow uses when your_tool_name runs,
// so the person co-browsing sees what the agent just did.
execute: async (args, { signal }) => {
const result = await performAction(args, signal);
renderResultInPage(result); // the human-visible half of the same action
return result;
}search_site_content: Description instructs agent to not parse HTML; read_page_content: Description instructs agent to use a specific tool's output; query_business_info: Description instructs agent to not infer information{
name: "search_site_content",
// Metadata DESCRIBES the tool - it never addresses the agent reading it.
// Rewrite any name, description, title, or schema field description that
// instructs the agent (which tool to prefer, what to output, rules to
// ignore) so it states what the tool does and what it returns instead.
description: "Searches the catalog and returns matching items with prices."
}{}{}{}