Calcula a diferença entre duas datas em dias corridos, dias úteis, semanas, meses e anos. Dias úteis: exclui sábados e domingos (feriados nacionais/estaduais não são modelados). Útil para prazos de contratos, vencimentos, contagem regressiva.
AI agents call calcular_dias_entre_datas to retrieve information from Contaí — Calculadoras Fiscais Brasileiras without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataFim | string | Yes | Data de fim no formato YYYY-MM-DD |
dataInicio | string | Yes | Data de início no formato YYYY-MM-DD |
currentDate | string | — | Data de referência YYYY-MM-DD para tabelas fiscais (INSS/IRRF/IOF/etc.). Default: hoje. |
diasUteisApenas | boolean | Yes | Se true, retorna apenas dias úteis (exclui fins de semana); não modela feriados |
Parameters from the server's own tool schema.
This tool is a pure computational utility that takes two dates as input and returns calculated time differences. It has no side effects, does not modify any state, and does not trigger external operations. It is purely informational/analytical in nature, fitting the 'Read' category for tools that retrieve or query data without side effects.
From the tool's definition Tool 'calcular_dias_entre_datas' performs a calculation that 'Calcula a diferença entre duas datas em dias corridos, dias úteis, semanas, meses e anos.' No modification, deletion, or external operations occur—it only retrieves or computes a derived result…
Attacks that exploit this kind of access
Calcula a diferença entre duas datas em dias corridos, dias úteis, semanas, meses e anos. Dias úteis: exclui sábados e domingos (feriados nacionais/estaduais não são modelados). Útil para prazos de contratos, vencimentos, contagem regressiva. It is categorised as a Read tool in the Contaí — Calculadoras Fiscais Brasileiras MCP Server, which means it retrieves data without modifying state.
calcular_dias_entre_datas accepts 4 parameters: dataFim, dataInicio, currentDate, diasUteisApenas. Required: dataFim, dataInicio, diasUteisApenas. The full parameter table on this page comes from the server's own tool schema.
Register the Contaí — Calculadoras Fiscais Brasileiras MCP server in PolicyLayer and add a rule for calcular_dias_entre_datas: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Contaí — Calculadoras Fiscais Brasileiras. Nothing to install.
calcular_dias_entre_datas is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the calcular_dias_entre_datas rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for calcular_dias_entre_datas. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
calcular_dias_entre_datas is provided by the Contaí — Calculadoras Fiscais Brasileiras MCP server (@contai-evoluke/mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →