Count a post's length the way the network counts it (free)
count_post_lengthFREE. Exact length of one post for X, Bluesky, Farcaster, Mastodon or Threads (Meta), in that network's own unit, with the limit, remaining and whether it fits. X: weighted, CJK and emoji count 2, every link 23, limit 280. Bluesky: 300 graphemes and 3000 bytes. Farcaster: UTF-8 bytes, 320 per cast (1024 long cast). Mastodon: 500, links 23. Threads (Meta): 500, emoji count as their UTF-8 bytes. Use it before posting; if it does not fit, check_post_length returns a shortened version and split_thread a thread.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "count_post_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The post text | |
| limit | No | Optional limit; default is the network's own limit | |
| network | No | Target network: x (X/Twitter, default), bluesky, farcaster, mastodon or meta-threads (Threads by Meta) |