Home / Servers / X (Twitter) API / update_rules
Update Stream Rules
An MCP tool from the X (Twitter) API server, hosted on mcp.hjlabs.in.
Update Stream Rules Adds or deletes rules from the active rule set for the filtered stream. Exactly one of add, delete, or ?delete_all=true must be specified. Use ?dry_run=true to validate without committing. [POST /2/tweets/search/stream/rules]
Name on the gateway: x_api__update_rules · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
dry_run | boolean | dry_run parameter |
delete_all | boolean | delete_all parameter |
add | array | Rules to add. |
delete | object | Rules to delete by id or by value. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "x_api__update_rules",
"arguments": {}
}Or connect the X (Twitter) API server directly, which lists 258 tools including this one:
claude mcp add --transport http hj-x-api https://mcp.hjlabs.in/mcp/x-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update stream rules tool with dry_run set to ….