Skip to main content
Glama

Power

power

Raise a base to a chosen exponent, including fractional or negative values, to compute exponentiation, square roots, and reciprocals in calculations.

Instructions

Raise a base to a given exponent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseYesThe number to be raised to a power.
exponentYesThe power to raise ``base`` to. Can be fractional (e.g. ``0.5`` for square root) or negative (for reciprocal powers).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden, but a pure arithmetic function has almost no behavioral traits to disclose. It is silent on determinism, domain restrictions (e.g. negative base with fractional exponent), and error behavior, which is a modest gap for a tool with zero annotation coverage.

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?

A single front-loaded sentence with zero waste. Nothing extraneous, nothing missing syntactically.

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?

An output schema exists and both parameters are fully documented, so return values and argument meaning are covered. The only shortfall is the missing pointer on when to prefer sqrt or multiply, a minor gap for a two-parameter math function.

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%, including the note that the exponent can be fractional or negative, so the schema does the heavy lifting. The description adds no meaning beyond the schema, making the baseline 3 appropriate.

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 resource (raise a base to an exponent), which unambiguously identifies exponentiation. It does not differentiate from siblings such as sqrt, which overlaps for exponent 0.5, but the operation is otherwise self-evident.

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 guidance on when to use this instead of multiply, sqrt, or repeated add. The overlap with sqrt (0.5 exponent) is a real routing decision that the description ignores.

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

Deploy Server

Other Tools