catalan_calc
Calculate the nth Catalan number or generate the full sequence from 0 to n, including combinatorial interpretations for mathematical and algorithmic use cases.
Instructions
Compute the nth Catalan number and its combinatorial interpretations.
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": "catalan_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Non-negative integer index | |
| count | No | Limit sequence length (used with sequence: true) | |
| sequence | No | Return the full sequence from 0 to n (default false) |