Calcula o valor de cada milha (CPM — centavos por milha) e avalia se vale usar milhas para emitir uma passagem. Compara o custo em milhas com o preço em dinheiro e verifica se as milhas disponíveis (incluindo conversão de pontos) são suficientes. Retorna classificação do CPM (excelente/bom/regula...
AI agents call calcular_calculadora_milhas_passagem 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 |
|---|---|---|---|
milhasDisponiveis | number | — | Milhas já disponíveis no programa de fidelidade. Padrão: 0. |
milhasNecessarias | number | Yes | Número de milhas necessárias para emitir a passagem desejada. |
programaFidelidade | string | — | Programa de fidelidade utilizado: smiles, tudoazul, latampass ou outro. Opcional — apenas para contexto. |
taxasEmbarqueCents | integer | — | Taxas de embarque pagas em dinheiro mesmo ao usar milhas, em centavos. Padrão: 0. |
pontosCartaoDisponiveis | number | — | Pontos de cartão de crédito disponíveis para converter em milhas. Padrão: 0. |
taxaConversaoPontosMilha | number | — | Taxa de conversão: quantos pontos equivalem a 1 milha. Ex: 2 = 2 pontos por milha. Padrão: 1. |
valorPassagemDinheiroCents | integer | Yes | Valor da passagem em dinheiro (com dois "o") em centavos. Ex: R$ 2.500 → 250000. |
Parameters from the server's own tool schema.
This tool performs financial calculations and comparisons (miles-to-cash valuation) but only retrieves and processes data to provide advisory information. It does not execute transactions, modify accounts, transfer funds, or make irreversible changes. The output is a read-only analysis (CPM classification, savings estimate, shortfall calculation) used to inform decision-making.
From the tool's definition Tool description states it 'Calcula o valor' (calculates the value), 'avalia se vale usar' (evaluates), 'Compara o custo' (compares cost), and 'Retorna classificação' (returns classification).
Attacks that exploit this kind of access
Calcula o valor de cada milha (CPM — centavos por milha) e avalia se vale usar milhas para emitir uma passagem. Compara o custo em milhas com o preço em dinheiro e verifica se as milhas disponíveis (incluindo conversão de pontos) são suficientes. Retorna classificação do CPM (excelente/bom/regular/ruim), economia em reais e milhas que ainda faltam. It is categorised as a Read tool in the Contaí — Calculadoras Fiscais Brasileiras MCP Server, which means it retrieves data without modifying state.
calcular_calculadora_milhas_passagem accepts 7 parameters: milhasDisponiveis, milhasNecessarias, programaFidelidade, taxasEmbarqueCents, pontosCartaoDisponiveis, taxaConversaoPontosMilha, valorPassagemDinheiroCents. Required: milhasNecessarias, valorPassagemDinheiroCents. 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_calculadora_milhas_passagem: 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_calculadora_milhas_passagem 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_calculadora_milhas_passagem 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_calculadora_milhas_passagem. 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_calculadora_milhas_passagem 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 →