

Complex Math Tool
Core Utility
Available ActionsEach successful request consumes credits as outlined below.
math-percent-calculate5crmath-percentage-of5crmath-percent-increase5crmath-percent-decrease5crmath-ratio-calculate5crmath-round-number5crmath-random-number5crmath-random-integer5crmath-sum5crmath-average5crmath-min5crmath-max5crmath-gcd5cr
Details
A utility for common mathematical calculations frequently needed in business, finance, data analysis, and everyday applications. It provides comprehensive percentage operations including calculating what percent one value is of another, finding a percentage of a given number, and determining percent increase or decrease between two values for tracking growth or decline metrics. Ratio calculation simplifies proportions between multiple numbers by finding the greatest common divisor and reducing to the smallest whole number representation. Number rounding supports configurable decimal precision from 0 to 10 places for formatting financial figures, measurements, and display values. Random number generation produces both floating-point values with specified decimal precision and integers within defined minimum and maximum bounds for sampling, testing, and simulation purposes. Aggregate functions operate on arrays of numbers to calculate sums, arithmetic averages, and identify minimum and maximum values with their array positions. The greatest common divisor function finds the largest integer that evenly divides all numbers in a set, useful for simplifying fractions and ratio calculations. All operations return formatted strings alongside raw values for immediate display or further computation.
Use Cases
Percentage calculation, percent of total, what percent is X of Y, percentage of value, calculate X percent of Y, percent increase calculation, growth rate calculation, percent decrease calculation, decline rate calculation, year over year change, price change percentage, ratio calculation, ratio simplification, proportion calculation, aspect ratio, recipe ratio scaling, number rounding, decimal place formatting, financial rounding, currency formatting, precision control, random number generation, random float generation, random decimal, random integer generation, random int range, dice roll simulation, lottery number generator, random sampling, sum calculation, total calculation, add numbers, array sum, average calculation, mean calculation, arithmetic mean, data average, minimum value finder, min function, lowest value, array minimum, maximum value finder, max function, highest value, array maximum, GCD calculation, greatest common divisor, fraction simplification, common factor, business math, financial calculations, data analysis math, statistical operations, AI agent math, LLM calculations, automation math operations, workflow calculations, quick math API
Actions(13)
math-percent-calculate5cr1 param(1 required)Calculate what percentage one value is of a total. Provide two numbers: [value, total]. Returns the percentage with formatted output.
math-percent-calculate5cr1 param(1 required)Calculate what percentage one value is of a total. Provide two numbers: [value, total]. Returns the percentage with formatted output.
numbersrequiredarrayArray of exactly 2 numbers: [value, total]. Example: [25, 200] calculates what percent 25 is of 200.
Array of: number
math-percentage-of5cr2 params(2 required)Calculate X% of a given value. For example, calculate 15% of 200. Returns the computed result.
math-percentage-of5cr2 params(2 required)Calculate X% of a given value. For example, calculate 15% of 200. Returns the computed result.
percentrequirednumberThe percentage to apply (e.g., 25 for 25%).
valuerequirednumberThe value to calculate the percentage of.
math-percent-increase5cr1 param(1 required)Calculate the percent increase from an original value to a new value. Provide two numbers: [original, new].
math-percent-increase5cr1 param(1 required)Calculate the percent increase from an original value to a new value. Provide two numbers: [original, new].
numbersrequiredarrayArray of exactly 2 numbers: [original, new]. Example: [100, 150] calculates percent increase from 100 to 150.
Array of: number
math-percent-decrease5cr1 param(1 required)Calculate the percent decrease from an original value to a new value. Provide two numbers: [original, new].
math-percent-decrease5cr1 param(1 required)Calculate the percent decrease from an original value to a new value. Provide two numbers: [original, new].
numbersrequiredarrayArray of exactly 2 numbers: [original, new]. Example: [200, 150] calculates percent decrease from 200 to 150.
Array of: number
math-ratio-calculate5cr1 param(1 required)Calculate and simplify the ratio between two or more numbers. Returns the simplified ratio.
math-ratio-calculate5cr1 param(1 required)Calculate and simplify the ratio between two or more numbers. Returns the simplified ratio.
numbersrequiredarrayArray of 2 or more numbers to calculate the ratio for. Example: [10, 25, 50].
Array of: number
math-round-number5cr2 params(1 required)Round a number to a specified number of decimal places.
math-round-number5cr2 params(1 required)Round a number to a specified number of decimal places.
valuerequirednumberThe number to round.
decimalsintegerNumber of decimal places (0-10). Default: 2.
Default:
2Range: 0 - 10
math-random-number5cr3 params(2 required)Generate a random floating-point number within a specified range, rounded to a given number of decimal places.
math-random-number5cr3 params(2 required)Generate a random floating-point number within a specified range, rounded to a given number of decimal places.
min_valuerequirednumberMinimum value for the random number (inclusive).
max_valuerequirednumberMaximum value for the random number (exclusive). Must be greater than min_value.
decimalsintegerNumber of decimal places for the result (0-10). Default: 2.
Default:
2Range: 0 - 10
math-random-integer5cr2 params(2 required)Generate a random integer within a specified range (inclusive on both ends).
math-random-integer5cr2 params(2 required)Generate a random integer within a specified range (inclusive on both ends).
min_valuerequirednumberMinimum integer value (inclusive).
max_valuerequirednumberMaximum integer value (inclusive). Must be greater than min_value.
math-sum5cr1 param(1 required)Calculate the sum of an array of numbers.
math-sum5cr1 param(1 required)Calculate the sum of an array of numbers.
numbersrequiredarrayArray of 1 or more numbers to sum. Example: [10, 20, 30].
Array of: number
math-average5cr1 param(1 required)Calculate the arithmetic mean (average) of an array of numbers.
math-average5cr1 param(1 required)Calculate the arithmetic mean (average) of an array of numbers.
numbersrequiredarrayArray of 1 or more numbers to average. Example: [10, 20, 30].
Array of: number
math-min5cr1 param(1 required)Find the minimum (smallest) value in an array of numbers.
math-min5cr1 param(1 required)Find the minimum (smallest) value in an array of numbers.
numbersrequiredarrayArray of 1 or more numbers. Returns the smallest value and its index.
Array of: number
math-max5cr1 param(1 required)Find the maximum (largest) value in an array of numbers.
math-max5cr1 param(1 required)Find the maximum (largest) value in an array of numbers.
numbersrequiredarrayArray of 1 or more numbers. Returns the largest value and its index.
Array of: number
math-gcd5cr1 param(1 required)Calculate the greatest common divisor (GCD) of an array of integers.
math-gcd5cr1 param(1 required)Calculate the greatest common divisor (GCD) of an array of integers.
numbersrequiredarrayArray of 1 or more integers. Values are converted to integers before calculation.
Array of: number
Frequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
Hosted MCP config
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 694ecf2fcca5b5123ad00c32 ("Complex Math Tool"). Then call the same tool with action 'call_tool', tool_id 694ecf2fcca5b5123ad00c32, and the parameters needed for my request.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.





