Skip to main content
Glama

snippets_create_snippet

Creates a new snippet in the Remnawave panel via the API, enabling reusable configuration content to be stored for later use.

Instructions

POST /api/snippets Create snippet Tags: Snippets Controller

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYes
confirmNoПодтверждение выполнения не-GET операции. Без confirm:true возвращается превью запроса (метод, URL, тело) и запрос не отправляется (см. MCP_CONFIRM).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations are absent, so the description carries the full burden. It reveals only the HTTP method and route (POST /api/snippets) plus a useless 'Tags: Snippets Controller' label. It does not disclose auth requirements, whether snippet names must be unique, what happens on a name conflict, or how the confirm/preview behavior works — the latter only appears buried in a schema property description.

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

Conciseness3/5

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

It is very short and front-loaded with the endpoint, but 'Tags: Snippets Controller' is filler that carries no meaning for an agent, and the creation act is stated twice (route + 'Create snippet'). Brevity here reflects under-specification rather than disciplined conciseness.

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

Completeness2/5

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

For a write operation with a nested, largely untyped body, no annotations, and no output schema, the description is far too thin. An agent cannot tell what a valid snippet payload looks like or what the call returns without reverse-engineering the schema.

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

Parameters2/5

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

Schema description coverage is 50% and the description supplies zero parameter detail. The nested body accepts an arbitrary 'snippet' array of empty-schema objects, which is exactly the kind of opaque payload the description should explain, yet it offers no format, examples, or constraints beyond the schema's regex and length limits.

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

Purpose3/5

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

The description says 'Create snippet', which is a verb+resource, but it adds essentially nothing beyond what the tool name snippets_create_snippet already conveys. It does not say what a snippet contains or how it differs from siblings like snippets_update_snippet, snippets_sync_snippet, or snippets_delete_snippet_by_name. Adequate but minimally informative.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of alternatives. With sibling tools for getting, updating, syncing and deleting snippets, the agent gets no help deciding when creation is the right call versus an update or sync.

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

Install Server

Other Tools