Skip to main content
Glama

Logarithm Calculator

calculator_logarithm
Read-only

Use this for log10, natural ln, or custom-base logarithm. Examples: log10(100)=2, ln(e)=1.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "log_type": "<log_type>",
      "value": "<value>"
    },
    "name": "calculator_logarithm"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoCustom base when log_type=logb (must be >0 and !=1).
valueYesPositive number to take the logarithm of.
log_typeYeslog (base 10), ln (natural), or logb (custom base).

Output Schema

NameRequiredDescriptionDefault
baseNo
valueYes
resultYes
log_typeYes
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds the computational semantics via worked examples (log10(100)=2, ln(e)=1), which helps interpret results, but says nothing about behavior on invalid input (value<=0, base=1) or error/return handling.

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

Conciseness5/5

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

Two sentences, zero filler, with the primary purpose stated first and confirming examples second. Nothing could be cut without losing information.

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 tool is simple, the output schema exists so return values need no explanation, and the schema fully documents all three parameters plus the conditional base. The only missing piece is edge-case behavior for invalid inputs, which is minor for a pure numeric calculator.

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?

Schema description coverage is 100%, with each parameter documented including the base>0 and !=1 constraint and the enum mapping of log_type. The description only restates the three modes the schema already defines, so it provides no syntax or conditional detail beyond structured data — baseline 3.

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 names the specific operation (log10, natural ln, custom-base logarithm) and gives worked examples, so the agent knows exactly what computation is performed. It does not explicitly distinguish itself from nearby siblings such as calculator_exponential or calculator_root, but the stated math domain is narrow enough to be unambiguous.

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

Usage Guidelines3/5

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

'Use this for log10, natural ln, or custom-base logarithm' implies the triggering condition (an agent needs a logarithm) but names no alternatives and gives no when-not guidance. With ~130 sibling calculator tools, a pointer to e.g. calculator_exponential for inverse operations would have been valuable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.