Skip to main content
Glama
tanishra

Mathematics MCP Server

by tanishra

logarithm

Compute the logarithm of any positive number with a custom base, defaulting to base 10 and supporting natural logs via base e. Returns the result or an error for invalid inputs.

Instructions

Calculate the logarithm of a value with a specified base. Args: data (LogOperation): An object containing the value and base for logarithm. Returns: Dict[str, Any]: A dictionary containing the operation result or an error message. Raises: ValueError: If value is non-positive or base is invalid. Notes: - Default base is 10 (common logarithm). - Use base 'e' (2.718...) for natural logarithm. - Logs the operation and result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full behavioral burden and does reasonably well. It discloses that invalid inputs raise ValueError, that the operation is logged, and that the result is returned in a dictionary, providing useful behavior beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with Args, Returns, Raises, and Notes sections, and the core purpose is front-loaded in the first sentence. Each section adds useful detail without significant redundancy, though some repetition with the schema is present.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the expected inputs, error behavior, default configuration, natural logarithm alternative, return shape, and logging side effect. It is complete enough for a simple mathematical operation, though it could be improved by defining what makes a base 'invalid' and by referencing the natural_log sibling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is reported as 0%, so the description must compensate. It explains that value must be positive, that base defaults to 10, that base 'e' performs natural logarithm, and that invalid bases raise an error. This adds meaningful semantic information beyond the raw schema types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific operation: 'Calculate the logarithm of a value with a specified base,' with the tool name and resource clearly aligned. It does not explicitly distinguish itself from the sibling natural_log tool, though the natural logarithm handling is mentioned indirectly via base 'e'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance is given about when to choose logarithm over natural_log or other math siblings. The note about base 'e' implies how to do natural logs, but it does not tell an agent when to use this tool versus the dedicated natural_log sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/tanishra/math-mcp-server'

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