Tools for agents: Exact rational polynomial division
Divide univariate polynomials and receive exact quotient and remainder coefficients with no floating-point rounding.
Connect with MCP
{
"mcpServers": {
"super-agent-tools": {
"url": "https://app.getsupers.com/sites/agent-polynomial-division/mcp"
}
}
}Use this URL in any client supporting remote Streamable HTTP MCP. Calls return structured JSON; inputs are processed without persistence.
Call divide_polynomials
Coefficients are ordered by ascending power: [a0,a1,a2] means a0+a1*x+a2*x^2. Inputs are nonempty arrays of integers or quoted finite decimal/fraction strings; JSON floats and booleans are rejected. High-power trailing zeros are removed; every zero polynomial is represented as ["0"] with degree null. A zero divisor fails even when padded with zeros. Quotient and remainder satisfy dividend=divisor*quotient+remainder exactly, with remainder degree strictly below divisor degree unless remainder is zero. exact_division means a zero remainder, not that the quotient has integer coefficients. Constants and a dividend of lower degree are supported. This is algebra over rational coefficients in one formal variable; it does not evaluate expressions, factor polynomials, find roots or perform modular arithmetic.
Input and output schemas
{
"name": "divide_polynomials",
"title": "Exact rational polynomial division",
"description": "Divide ascending-power coefficient arrays over the rationals, returning normalized quotient and remainder with exact reconstruction guarantees.",
"inputSchema": {
"properties": {
"dividend": {
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"title": "Dividend",
"type": "array"
},
"divisor": {
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"title": "Divisor",
"type": "array"
}
},
"required": [
"dividend",
"divisor"
],
"title": "divide_polynomialsArguments",
"type": "object"
},
"outputSchema": {
"additionalProperties": true,
"title": "divide_polynomialsDictOutput",
"type": "object"
},
"icons": null,
"annotations": {
"title": null,
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"meta": null,
"execution": null
}Run the example to see the actual result.
HTTP alternative
POST https://app.getsupers.com/sites/agent-polynomial-division/call
Content-Type: application/json
{
"dividend": [
-1,
0,
0,
1
],
"divisor": [
1,
0,
2
]
}The HTTP and MCP interfaces execute the same implementation. Validation errors are returned explicitly. See the tool notes above for its supported inputs and behavior.