integrate
Pack: newton · Endpoint: https://gateway.pipeworx.io/newton/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/integrate for the schema, then POST the same URL with its arguments for the data.
Find the indefinite integral of an expression with respect to x. Input algebraic notation (e.g., “x^2”). Returns antiderivative with constant C.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
expression | string | yes | Expression to integrate (e.g., “x^2”, “cos(x)”, “x^3+x”) |
Example call
Arguments
{
"expression": "x^2"
}
curl
curl -X POST https://gateway.pipeworx.io/newton/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"integrate","arguments":{"expression":"x^2"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('integrate', {
"expression": "x^2"
});
More examples
{
"expression": "cos(x)"
}
Response shape
Always returns: operation, input, result
| Field | Type | Description |
|---|---|---|
operation | string | Operation name (integrate) |
input | string | The input expression |
result | string | null | Antiderivative expression with constant C or null |
Full JSON Schema
{
"type": "object",
"properties": {
"operation": {
"type": "string",
"description": "Operation name (integrate)"
},
"input": {
"type": "string",
"description": "The input expression"
},
"result": {
"type": [
"string",
"null"
],
"description": "Antiderivative expression with constant C or null"
}
},
"required": [
"operation",
"input",
"result"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"newton": {
"url": "https://gateway.pipeworx.io/newton/mcp"
}
}
}
See Getting Started for client-specific install steps.