search_posts
Find posts whose title or body matches a query, optionally filter by user, and return post titles, IDs, user IDs, and total match count.
Instructions
Find posts whose title or body contains the query, with a match count.
- query: case-insensitive text; empty matches every post.
- user_id: only this user's posts (get it from list_users).
Returns title, post id and user id; rows are capped at 50, the match count is not.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| user_id | No | numeric user id from list_users |