Skip to main content
Glama

calcular_porcentaje

Read-only

Realiza cálculos con porcentajes. Cinco modos disponibles: (1) percentOf: ¿cuánto es el X% de Y?, (2) whatPercent: ¿qué % es X de Y?, (3) increase: aumentar X en Y%, (4) decrease: disminuir X en Y%, (5) variation: variación porcentual de X a Y.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modoYesTipo de cálculo: percentOf = ¿cuánto es el X% de Y?, whatPercent = ¿qué % es X de Y?, increase = aumentar X en Y%, decrease = disminuir X en Y%, variation = variación porcentual de X a Y
valor1YesPrimer valor. Según el modo: percentOf → porcentaje (ej: 15 para 15%), whatPercent → cantidad parcial, increase/decrease → valor inicial, variation → valor inicial
valor2YesSegundo valor. Según el modo: percentOf → cantidad base, whatPercent → cantidad total, increase/decrease → porcentaje a aplicar, variation → valor final

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The description accurately indicates the tool performs calculations, consistent with the readOnlyHint annotation. It adds minimal behavioral context beyond the annotation, but there is no contradiction.

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

Conciseness3/5

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

The description is a single sentence that conveys the purpose and modes, but it is somewhat lengthy (65 words). It could be more concise or structured (e.g., using bullet points) for easier scanning.

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?

For a calculation tool with three parameters and no output schema, the description adequately explains all modes and parameter roles. No critical information is missing.

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 input schema covers 100% of parameters with descriptions. The tool description restates the modes but does not add additional semantic meaning beyond what the schema already provides. Baseline 3 is appropriate.

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 clearly states the tool performs percentage calculations with five distinct modes, each briefly explained. It effectively distinguishes from sibling tools (other calculators) by specifying its unique functionality.

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

Usage Guidelines4/5

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

The description lists five modes and their use cases, providing clear guidance on when to use each. However, it lacks explicit instructions on when not to use this tool or comparisons to alternatives, which would make it more comprehensive.

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.

Resources