Skip to main content
Glama

Power Calculator

calculator_power
Read-only

Use this to calculate x^y. Examples: 2^3=8, 5^2=25.

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": {
      "base": "<base>",
      "exponent": "<exponent>"
    },
    "name": "calculator_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesBase x in x^y.
exponentYesExponent y in x^y.

Output Schema

NameRequiredDescriptionDefault
baseYes
resultYes
exponentYes
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, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered structurally. The description adds only worked examples (2^3=8) that confirm it is a pure computation; it says nothing about edge cases like negative or fractional exponents, overflow, or result formatting.

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 short sentences, purpose front-loaded with examples trailing as confirmation. Nothing is padded or repeated.

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?

With an output schema, full annotation coverage, and 100% schema description coverage, the tool is simple enough that a short description suffices and nothing needed to call it is missing. It falls short of 5 only because it gives no hint about edge-case behavior for a mathematical operation.

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% and the schema already defines base and exponent with examples, so baseline is 3. The description's examples (2^3=8, 5^2=25) reinforce which parameter is which but add no semantics beyond what the schema provides.

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?

States a specific verb and the exact mathematical operation ('calculate x^y'), which is more precise than the title alone. It does not, however, distinguish itself from power-adjacent siblings such as calculator_exponential, calculator_ee_power, calculator_electrical_power, or calculator_physics_power, leaving the agent to infer the distinction from names.

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 to calculate x^y' implies the usage context but gives no explicit when-to-use/when-not guidance and never names an alternative among the many sibling power/exponent calculators. The formula at least narrows the intended domain to general exponentiation.

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.