format_format_ordinal
Convert integers to English ordinal strings (1st, 2nd, 3rd) with correct handling of exceptions like 11th, 12th, 13th.
Instructions
[format] 1 → '1st', 2 → '2nd', 3 → '3rd', 11 → '11th', 21 → '21st'.
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": {
"n": "<n>"
},
"name": "format_format_ordinal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |