is_rotation
Checks if one string is a rotation of another string by verifying if str1 appears in str2 concatenated with itself. Returns true if str1 is a rotation of str2, false otherwise. (cost: 1 credit)
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": "is_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| str1 | No | string, required, first string to compare | |
| str2 | No | string, required, second string to check if it's a rotation of str1 |