Skip to main content
Glama
OpenSIPS

OpenSIPS MCP Server

Official
by OpenSIPS

cleanup_test_data

Remove test subscribers matching a username prefix under a domain. Companion to gen_test_subscribers. Use confirm=true to delete; otherwise returns dry-run count of matched rows.

Instructions

Remove every subscriber matching <username_prefix>NNNN under domain. Companion to gen_test_subscribers.

Parameters

domain: Domain whose test users to remove. username_prefix: Same prefix used in generation. confirm: Must be True to actually delete. Default False returns the dry-run count of matched rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
username_prefixNotest
confirmNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It explains the pattern matching, the confirm parameter's role (dry-run vs actual deletion), and the domain scope. It lacks details on permissions or irreversibility, but the safety mechanism is disclosed, making it fairly transparent.

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

Conciseness5/5

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

The description is very concise: two short paragraphs with no fluff. The first paragraph states the core action, and the second lists parameters in a structured way. It is front-loaded with the purpose.

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

Completeness4/5

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

Given the tool's complexity (3 parameters, output schema exists), the description covers the essentials: purpose, pattern, dry-run, and parameter details. It mentions the companion tool. However, it does not describe the output schema format, but that is handled separately. It is nearly complete.

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?

Schema description coverage is 0%, so the description must compensate. It fully explains each parameter: domain (target domain), username_prefix (same as generation), confirm (controls dry-run vs deletion). This adds significant meaning beyond the raw schema.

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?

The description clearly states the tool's purpose: remove test subscribers matching a pattern under a domain. It uses a specific verb ('Remove') and resource ('subscribers'), and distinguishes itself from siblings by mentioning it is a companion to gen_test_subscribers.

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?

The description provides clear context: it is for cleaning up test data after generation with gen_test_subscribers. It also explains the dry-run safety mode. However, it does not explicitly list when not to use or mention alternative tools like subscriber_delete, so it lacks explicit exclusions.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenSIPS/opensips-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server