# askacharge_crear_tarifa

Crea un grupo de tarifa y devuelve el grupo creado con su id. Rellena solo el precio del modo elegido: per_kwh usa price_per_kwh, per_hour usa price_per_hour, per_session usa price_per_session, combined suma los de kWh y hora, pvpc_margin suma pvpc_margin al PVPC (solo España), market_margin suma pvpc_margin al mercado diario de la zona de la marca (solo zonas con precio y marcas que cobran en EUR; si no, 400), tou cobra por franjas horarias que defines en periods (hora local de la marca; price_per_kwh es el precio de las horas sin franja), cost_plus suma pvpc_margin a lo que le cuesta la luz a la marca en cada momento (exige haberlo configurado) y free no cobra nada. Los modos que cambian con la hora cobran cada kWh a su precio. CUIDADO: con is_default en true, la que fuera tarifa por defecto deja de serlo. Para ver las que ya existen, askacharge_listar_tarifas.

Agent View of the PolicyLayer registry record for `askacharge_crear_tarifa`. HTML page: https://policylayer.com/tools/askacharge-mcp/askacharge-crear-tarifa

## Facts

- Tool: `askacharge_crear_tarifa`
- Server: Askacharge (`javierojan/askacharge-mcp`) — https://policylayer.com/tools/askacharge-mcp.md
- Homepage: https://github.com/javierojan/askacharge-mcp
- Risk category: Other (Low risk)
- Registry record: grade F, identity unverified
- Server auth posture: open
- Server rate-limited: no
- Parameters: 8 (2 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | Nombre del grupo, el que se ve en el panel |
| `periods` | array | no | Solo tou: franjas {period_type: valley\|flat\|peak, price_per_kwh, hour_start 'HH:MM', hour_end 'HH:MM' (igual = todo el día), weekdays '12345' (1=lunes; vacío = |
| `is_default` | boolean | no | Si es true, pasa a ser la tarifa por defecto de la marca y la anterior deja de serlo |
| `pvpc_margin` | number | no | Margen por kWh sobre el PVPC (pvpc_margin), el mercado diario (market_margin) o el coste de la luz de la marca (cost_plus) |
| `billing_mode` | string | yes | Cómo se cobra la sesión; decide cuál de los precios de abajo se usa |
| `price_per_kwh` | number | no | € por kWh entregado (modos per_kwh y combined) |
| `price_per_hour` | number | no | € por hora conectado (modos per_hour y combined) |
| `price_per_session` | number | no | € fijos por sesión (modo per_session) |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "askacharge_crear_tarifa",
    "arguments": {
      "name": "<name>",
      "billing_mode": "<billing_mode>"
    }
  }
}
```

## Why askacharge_crear_tarifa is rated Low

Without any rule in front of it, every call an agent makes to askacharge_crear_tarifa happens silently: no trail, no cap, no way to know it misbehaved until something breaks downstream.

## Use case

AI agents call askacharge_crear_tarifa as a supporting operation in Askacharge workflows.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Askacharge:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "askacharge_crear_tarifa": {
      "limits": [
        {
          "counter": "askacharge_crear_tarifa_rate",
          "window": "minute",
          "max": 60,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Askacharge (24)

- `askacharge_cargadores_simulados` — Destructive — https://policylayer.com/tools/askacharge-mcp/askacharge-cargadores-simulados.md
- `askacharge_reiniciar_cargador` — Destructive — https://policylayer.com/tools/askacharge-mcp/askacharge-reiniciar-cargador.md
- `askacharge_arrancar_carga` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-arrancar-carga.md
- `askacharge_cambiar_disponibilidad` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-cambiar-disponibilidad.md
- `askacharge_crear_cargador` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-crear-cargador.md
- `askacharge_crear_cliente` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-crear-cliente.md
- `askacharge_crear_tag_rfid` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-crear-tag-rfid.md
- `askacharge_desbloquear_conector` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-desbloquear-conector.md
- `askacharge_diagnosticos` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-diagnosticos.md
- `askacharge_estado_comando` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-estado-comando.md
- `askacharge_estado_en_vivo` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-estado-en-vivo.md
- `askacharge_limites_de_potencia` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-limites-de-potencia.md
- `askacharge_listar_clientes` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-listar-clientes.md
- `askacharge_listar_incidencias` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-listar-incidencias.md
- `askacharge_listar_sesiones` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-listar-sesiones.md
- `askacharge_listar_tarifas` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-listar-tarifas.md
- `askacharge_llamar_api` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-llamar-api.md
- `askacharge_parar_carga` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-parar-carga.md
- `askacharge_precio_pvpc_hoy` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-precio-pvpc-hoy.md
- `askacharge_refrescar_estado` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-refrescar-estado.md
- `askacharge_resumen` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-resumen.md
- `askacharge_traza_de_actividad` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-traza-de-actividad.md
- `askacharge_ver_cargador` — Other — https://policylayer.com/tools/askacharge-mcp/askacharge-ver-cargador.md
- `askacharge_listar_cargadores` — Read — https://policylayer.com/tools/askacharge-mcp/askacharge-listar-cargadores.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=askacharge-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/askacharge-mcp
