Medium Risk

gastos_flow_create_gasto

Crea un nuevo gasto para el usuario autenticado. Args: - moneda_id (number): ID de la moneda (obligatorio). - categoria_gasto_id (number): ID de la categoría (obligatorio). - monto (number): Monto ≥ 0.01 (obligatorio). - periodo_mes (number): Mes del período 1–12 (obligatorio). - perio...

High parameter count (14 properties)

Part of the Gastos Flow MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.

AI agents use gastos_flow_create_gasto to create or modify resources in Gastos Flow. Write operations carry medium risk because an autonomous agent could trigger bulk unintended modifications. Rate limits prevent a single agent session from making hundreds of changes in rapid succession. Argument validation ensures the agent passes expected values.

Without a policy, an AI agent could call gastos_flow_create_gasto repeatedly, creating or modifying resources faster than any human could review. Intercept's rate limiting ensures write operations happen at a controlled pace, and argument validation catches malformed or unexpected inputs before they reach Gastos Flow.

Write tools can modify data. A rate limit prevents runaway bulk operations from AI agents.

gastos-flow.yaml
tools:
  gastos_flow_create_gasto:
    rules:
      - action: allow
        rate_limit:
          max: 30
          window: 60

See the full Gastos Flow policy for all 55 tools.

Tool Name gastos_flow_create_gasto
Category Write
Risk Level Medium

View all 55 tools →

Agents calling write-class tools like gastos_flow_create_gasto have been implicated in these attack patterns. Read the full case and prevention policy for each:

Browse the full MCP Attack Database →

Other tools in the Write risk category across the catalogue. The same policy patterns (rate-limit, validate) apply to each.

What does the gastos_flow_create_gasto tool do? +

Crea un nuevo gasto para el usuario autenticado. Args: - moneda_id (number): ID de la moneda (obligatorio). - categoria_gasto_id (number): ID de la categoría (obligatorio). - monto (number): Monto ≥ 0.01 (obligatorio). - periodo_mes (number): Mes del período 1–12 (obligatorio). - periodo_anio (number): Año del período ≥ 2000 (obligatorio). - cuenta_id (number, opcional): ID de la cuenta. - fecha (string, opcional): Fecha en formato YYYY-MM-DD. - descripcion (string, opcional): Descripción, máx. 255 caracteres. - es_cuota (boolean, opcional): Si es pago en cuotas. - cuota_numero (number, opcional): Número de cuota que se está registrando (defecto 1 si se omite). - cuota_total (number, opcional): Total de cuotas del gasto. - gasto_recurrente_id (number, opcional): ID de gasto recurrente asociado. - es_prestamo_tarjeta (boolean, opcional): Si es préstamo de tarjeta. - persona_id (number, opcional): ID de persona asociada. Comportamiento de cuotas (es_cuota=true y cuota_total > 1): - monto es el IMPORTE POR CUOTA (total del gasto dividido por cuota_total). Si el usuario dice "$10.000 en 3 cuotas", pasar monto=3333.33 (10000/3). - El servidor crea automáticamente TODAS las cuotas restantes en periodos consecutivos. Solo hay que enviar UNA llamada con la cuota ancla. - periodo_mes y periodo_anio indican el periodo de la cuota que se está registrando (identificada por cuota_numero). - La respuesta devuelve solo el registro de la cuota enviada (las demás se crean en background). - fecha, si se envía, se guarda solo en la cuota ancla; las demás quedan sin fecha. Returns: El gasto creado con su ID asignado (solo la cuota ancla si es pago en cuotas).. It is categorised as a Write tool in the Gastos Flow MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on gastos_flow_create_gasto? +

Add a rule in your Intercept YAML policy under the tools section for gastos_flow_create_gasto. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Gastos Flow MCP server.

What risk level is gastos_flow_create_gasto? +

gastos_flow_create_gasto is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit gastos_flow_create_gasto? +

Yes. Add a rate_limit block to the gastos_flow_create_gasto rule in your Intercept 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.

How do I block gastos_flow_create_gasto completely? +

Set action: deny in the Intercept policy for gastos_flow_create_gasto. 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.

What MCP server provides gastos_flow_create_gasto? +

gastos_flow_create_gasto is provided by the Gastos Flow MCP server (gastos-flow-mcp-server). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Let agents act without letting them run wild.

Deterministic policy on every MCP tool call. Per-identity grants. Full audit log.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.