Calcula média escolar aritmética ou ponderada e verifica aprovação. Aritmética: soma das notas / quantidade. Ponderada: soma(nota × peso) / soma(pesos). Retorna: média calculada, se passou, e diferença necessária para atingir a média mínima.
AI agents call calcular_media_escolar 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 |
|---|---|---|---|
notas | array | Yes | Lista de notas com valor e peso |
formula | string | Yes | Tipo de média: aritmetica (pesos ignorados) ou ponderada (usa pesos) |
currentDate | string | — | Data de referência YYYY-MM-DD para tabelas fiscais (INSS/IRRF/IOF/etc.). Default: hoje. |
mediaMinima | number | Yes | Média mínima para aprovação (ex: 5.0 ou 6.0) |
Parameters from the server's own tool schema.
This tool purely retrieves/computes a mathematical result from provided inputs (grades and weights). It performs arithmetic calculations and logical checks (approval verification) but produces no side effects on any data store, system, or external service. This is a straightforward calculation utility with informational output only, characteristic of Read category operations.
From the tool's definition Tool performs calculation operations: 'Calcula média escolar', 'soma das notas / quantidade', 'soma(nota × peso) / soma(pesos)'. Returns computed results: 'média calculada, se passou, e diferença necessária'.
Attacks that exploit this kind of access
Calcula média escolar aritmética ou ponderada e verifica aprovação. Aritmética: soma das notas / quantidade. Ponderada: soma(nota × peso) / soma(pesos). Retorna: média calculada, se passou, e diferença necessária para atingir a média mínima. It is categorised as a Read tool in the Contaí — Calculadoras Fiscais Brasileiras MCP Server, which means it retrieves data without modifying state.
calcular_media_escolar accepts 4 parameters: notas, formula, currentDate, mediaMinima. Required: notas, formula, mediaMinima. 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_media_escolar: 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_media_escolar 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_media_escolar 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_media_escolar. 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_media_escolar 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 →