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...
This record as markdown: /tools/askacharge-mcp/askacharge-crear-tarifa.md
What askacharge_crear_tarifa does on Askacharge
AI agents call askacharge_crear_tarifa as a supporting operation in Askacharge workflows.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Nombre del grupo, el que se ve en el panel |
periods | array | — | 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 | — | Si es true, pasa a ser la tarifa por defecto de la marca y la anterior deja de serlo |
pvpc_margin | number | — | 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 | — | € por kWh entregado (modos per_kwh y combined) |
price_per_hour | number | — | € por hora conectado (modos per_hour y combined) |
price_per_session | number | — | € fijos por sesión (modo per_session) |
Parameters from the server's own tool schema.
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.
Attacks that exploit this kind of access
The rule that runs askacharge_crear_tarifa safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Askacharge, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For askacharge_crear_tarifa, this is the rule to start with:
askacharge_crear_tarifa gets a rate cap, and everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Askacharge, apply this rule, and every askacharge_crear_tarifa call is checked against it from then on.
Questions about 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. It is categorised as a Other tool in the Askacharge MCP Server, which means it performs auxiliary operations.
askacharge_crear_tarifa accepts 8 parameters: name, periods, is_default, pvpc_margin, billing_mode, price_per_kwh, price_per_hour, price_per_session. Required: name, billing_mode. The full parameter table on this page comes from the server's own tool schema.
Register the Askacharge MCP server in PolicyLayer and add a rule for askacharge_crear_tarifa: 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 Askacharge. Nothing to install.
askacharge_crear_tarifa is a Other tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the askacharge_crear_tarifa 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 askacharge_crear_tarifa. 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.
askacharge_crear_tarifa is provided by the Askacharge MCP server (javierojan/askacharge-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Askacharge, and thousands of servers like it.
This server
Across the catalogue