AgentPMT
Complex Math Tool

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.

Calculate what percentage one value is of a total. Provide two numbers: [value, total]. Returns the percentage with formatted output.

numbersrequiredarray

Array 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.

Calculate X% of a given value. For example, calculate 15% of 200. Returns the computed result.

percentrequirednumber

The percentage to apply (e.g., 25 for 25%).

valuerequirednumber

The 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].

Calculate the percent increase from an original value to a new value. Provide two numbers: [original, new].

numbersrequiredarray

Array 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].

Calculate the percent decrease from an original value to a new value. Provide two numbers: [original, new].

numbersrequiredarray

Array 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.

Calculate and simplify the ratio between two or more numbers. Returns the simplified ratio.

numbersrequiredarray

Array 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.

Round a number to a specified number of decimal places.

valuerequirednumber

The number to round.

decimalsinteger

Number of decimal places (0-10). Default: 2.

Default: 2
Range: 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.

Generate a random floating-point number within a specified range, rounded to a given number of decimal places.

min_valuerequirednumber

Minimum value for the random number (inclusive).

max_valuerequirednumber

Maximum value for the random number (exclusive). Must be greater than min_value.

decimalsinteger

Number of decimal places for the result (0-10). Default: 2.

Default: 2
Range: 0 - 10
math-random-integer5cr2 params(2 required)

Generate a random integer within a specified range (inclusive on both ends).

Generate a random integer within a specified range (inclusive on both ends).

min_valuerequirednumber

Minimum integer value (inclusive).

max_valuerequirednumber

Maximum integer value (inclusive). Must be greater than min_value.

math-sum5cr1 param(1 required)

Calculate the sum of an array of numbers.

Calculate the sum of an array of numbers.

numbersrequiredarray

Array 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.

Calculate the arithmetic mean (average) of an array of numbers.

numbersrequiredarray

Array 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.

Find the minimum (smallest) value in an array of numbers.

numbersrequiredarray

Array 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.

Find the maximum (largest) value in an array of numbers.

numbersrequiredarray

Array 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.

Calculate the greatest common divisor (GCD) of an array of integers.

numbersrequiredarray

Array 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?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

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\"}"
      }
    }
  }
}

How does an external agent use this tool?

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.

Looking for help integrating AI into your business? Set up a free consultation.