Skip to main content
Glama
tanishra

Mathematics MCP Server

by tanishra

natural_log

Compute the natural logarithm (base e) of a positive number, returning the result or an error for non-positive inputs.

Instructions

Calculate the natural logarithm (base e) of a given number. Args: data (SingleNumberOperation): An object containing the input number a. Returns: Dict[str, Any]: A dictionary containing the operation result or an error message. Raises: ValueError: If the input is non-positive. Notes: - Natural log uses base e (approximately 2.718). - 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.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden and does it reasonably well: it documents the non-positive input domain via `ValueError` and notes that the operation is logged. It also states that the return is a dictionary with either a result or an error message, giving the agent a clear expectation.

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 uses a clear Args/Returns/Raises/Notes structure and front-loads the core purpose in the first sentence. It is appropriately sized, though the note about base e slightly repeats what the opening sentence already states.

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

Completeness5/5

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

For a one-parameter pure numeric operation, the description covers the input wrapper, error behavior, return shape, and logging side effect. Combined with the available output schema, the agent has enough information to invoke and interpret the tool correctly; the only real gap is sibling differentiation, which is already scored under usage guidelines.

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

Parameters3/5

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

The schema description coverage is 0%, so the description must compensate; it identifies `data` as a `SingleNumberOperation` object containing the field `a` and states that `a` is the input number. However, the positive-number requirement is only mentioned in the raises clause rather than attached to the parameter, and the description adds little depth beyond the schema's minimal 'Input number' text.

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

Purpose5/5

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

The description opens with a specific verb and object, 'Calculate the natural logarithm (base e) of a given number,' which unambiguously identifies the operation and distinguishes it from the generic `logarithm` sibling. It also names the single data argument, so purpose is clear.

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?

There is no statement about when to prefer this tool over related siblings such as `logarithm`, nor any exclusionary guidance. The only implied signal is the tool name and opening sentence, which is insufficient when a closely related `logarithm` tool exists.

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