Skip to main content
Glama
vipankumar87

MCP Multi-Tool Server

by vipankumar87

calculate_percentage

Calculate a percentage of a value by providing the base number and percentage to compute. This tool performs the mathematical operation to determine the percentage amount.

Instructions

Calculate a percentage of a value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYes
percentageYes

Implementation Reference

  • The handler function for the 'calculate_percentage' tool, decorated with @mcp.tool() for registration in the MCP server. It calculates (value * percentage) / 100.
    @mcp.tool()
    def calculate_percentage(value: float, percentage: float) -> float:
        """Calculate a percentage of a value."""
        return (value * percentage) / 100

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vipankumar87/MCP-Example'

If you have feedback or need assistance with the MCP directory API, please join our Discord server