Skip to main content
Glama

add_ppp_secret

Create a PPP/PPPoE secret on MikroTik RouterOS with dial-in name, password, and optional service, profile, or remote address. Preview first, then confirm to write; existing names are rejected.

Instructions

Create a PPP/PPPoE secret (/ppp/secret add) - name/password are the dial-in login credentials for a PPPoE/PPTP/L2TP/OpenVPN/SSTP service. service (default "any") restricts which PPP service the secret may authenticate for - one of "pppoe"/"pptp"/"l2tp"/"ovpn"/ "sstp"/"any". profile (an existing /ppp/profile name, e.g. to assign an address pool or rate limit), remote_address (a literal IP handed to the client on connect), and comment are all optional.

PASSWORD IN THE RESULT: like add_hotspot_user's voucher password, this tool's password is DELIBERATELY present in its result (the caller supplied it and gets it echoed back as confirmation) - but still never written to the audit journal. See guard.add_ppp_secret's docstring for exactly how that asymmetry holds.

WRITE tool, guarded: blocked entirely unless the server is running with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the default) to get a preview without changing anything; call again with confirm=True to actually create it. Errors clearly (without creating anything) if name already exists on the device - it never creates a duplicate or resets an existing secret's password.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
commentNo
confirmNo
profileNo
serviceNoany
passwordYes
device_nameYes
remote_addressNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.11.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden and does so well: it discloses the write gate (server must run with MIKROTIK_ALLOW_WRITE=true), the preview/confirm dry-run behavior, duplicate-name error semantics ('never creates a duplicate or resets an existing secret's password'), and the deliberate password-echo-in-result-but-not-audit asymmetry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and well organized into purpose / password-handling / write-gating paragraphs, but it leans on cross-references ('See guard.add_ppp_secret's docstring', the add_hotspot_user comparison) that carry little value for an agent selecting and invoking the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter guarded write with an output schema, the description covers everything an agent needs: prerequisites, confirmation flow, failure modes, and an explanation of the surprising password field in the result. Return values need not be described since an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate and largely does: it defines the login semantics of name/password, supplies the enum values for `service` that the schema itself lacks (pppoe/pptp/l2tp/ovpn/sstp/any), and explains `profile`, `remote_address`, `comment`, and `confirm`. Only `device_name` is left implicit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Create a PPP/PPPoE secret') and even names the underlying RouterOS path `/ppp/secret add`, which clearly distinguishes it from the sibling readers `ppp_secrets`/`ppp_active` and the writer `remove_ppp_secret`.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives strong when-to-use context: it is a guarded WRITE requiring MIKROTIK_ALLOW_WRITE=true, and it prescribes the two-step flow (confirm=False for preview, confirm=True to commit). It stops short of explicitly routing the agent to siblings (e.g. use ppp_secrets to inspect, remove_ppp_secret to delete) when this tool is the wrong choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools