MCP Calc Tools

riemann_sum

Calculate the Riemann sum of a function using different methods

Input Schema

NameRequiredDescriptionDefault
aYesLower limit of integration
bYesUpper limit of integration
expressionYesFunction to integrate
methodNoMethod: left, right, midpoint, or trapezoidmidpoint
nYesNumber of subintervals
variableYesVariable of integration

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": true, "properties": { "a": { "description": "Lower limit of integration", "type": "number" }, "b": { "description": "Upper limit of integration", "type": "number" }, "expression": { "description": "Function to integrate", "type": "string" }, "method": { "default": "midpoint", "description": "Method: left, right, midpoint, or trapezoid", "enum": [ "left", "right", "midpoint", "trapezoid" ], "type": "string" }, "n": { "description": "Number of subintervals", "type": "number" }, "variable": { "description": "Variable of integration", "type": "string" } }, "required": [ "expression", "variable", "a", "b", "n" ], "type": "object" }