Skip to main content
Glama

Moedux — Finanças Brasileiras

calcular_horas_extras

Read-onlyIdempotent

Quanto valem as horas extras: valor da hora normal, valor das horas extras com o adicional de 50% (dias úteis) ou 100% (domingos e feriados) e o DSR que o banco de horas costuma esquecer, a partir do salário bruto, da jornada mensal e das horas extras do mês. Use quando o usuário perguntar quanto vale a hora extra, quanto ele recebe por horas extras ou quanto dá de horas extras no mês. Não calcula adicional noturno nem banco de horas acumulado. Devolve o valor da hora, o total das horas extras, o DSR e o link da calculadora com os números preenchidos.

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": {
      "salario_bruto": "<salario_bruto>",
      "horas_mensais": "<horas_mensais>",
      "horas_extras": "<horas_extras>"
    },
    "name": "calcular_horas_extras"
  }
}

Input Schema

NameRequiredDescriptionDefault
percentualNoAdicional: 50 para dias úteis (padrão) ou 100 para domingos e feriados
horas_extrasYesHoras extras no mês; aceita frações, como 10,5
horas_mensaisYesJornada mensal em horas (44h por semana = 220)
salario_brutoYesSalário bruto mensal em reais

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?

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description builds on a covered baseline. It usefully discloses the return payload (hour value, overtime total, DSR, prefilled calculator link), but does not cover edge cases such as zero overtime or how fractions are rounded.

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 first sentence is long and front-loads several ideas (rate, premium, DSR, inputs) in one breath. The usage, exclusion and return sentences are efficient, but lightly restructuring the opening clause would improve readability without losing content.

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 no output schema, the description correctly compensates by listing the return values and the calculator link, and all inputs are covered. Only minor gaps remain regarding rounding and default-percentage behavior when the parameter is omitted.

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 coverage is 100%, so all four parameters are already documented, including the 50/100 enum and the 220-hour example; the description merely restates these inputs and its 50-versus-100 mapping. Baseline 3 applies because the schema does the heavy lifting.

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 names the specific computation (overtime pay: base hourly rate, 50%/100% premium, plus DSR) and enumerates the inputs it consumes (gross salary, monthly hours, overtime hours). It also separates itself from related payroll calculators by declaring what it does not compute (night premium, accumulated hour bank).

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?

It gives explicit trigger phrasing ("Use quando o usuário perguntar quanto vale a hora extra, quanto ele recebe por horas extras ou quanto dá de horas extras no mês") and clear out-of-scope statements. It does not name a sibling tool to route to instead, keeping it just short of full alternative guidance.

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.