calcular_calculadora_milhas_passagem
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...
This record as markdown: /tools/io-github-lfhillesheim-contai-mcp-server/calcular-calculadora-milhas-passagem.md
What calcular_calculadora_milhas_passagem does on Contaí — Calculadoras Fiscais Brasileiras
AI agents call calcular_calculadora_milhas_passagem to retrieve information from Contaí — Calculadoras Fiscais Brasileiras without modifying anything. It is 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.
Why calcular_calculadora_milhas_passagem is rated Low
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
The rule that runs calcular_calculadora_milhas_passagem safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Contaí — Calculadoras Fiscais Brasileiras, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For calcular_calculadora_milhas_passagem, this is the rule to start with:
calcular_calculadora_milhas_passagem is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Contaí — Calculadoras Fiscais Brasileiras, apply this rule, and every calcular_calculadora_milhas_passagem call is checked against it from then on.
Questions about calcular_calculadora_milhas_passagem
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.
More on Contaí — Calculadoras Fiscais Brasileiras, and thousands of servers like it.
Across the catalogue