Skip to main content
Glama
OpenSIPS

OpenSIPS MCP Server

Official
by OpenSIPS

cfg_migrate

Migrate OpenSIPS configuration between versions by applying behavior-preserving rewrite rules across the version chain. Reports warnings for changes requiring manual intervention, with optional syntax validation.

Instructions

Migrate a configuration between OpenSIPS versions.

Walks the hop chain (2.4 → 3.0 → ... → 4.0) applying every behaviour-preserving rewrite rule. Anything that cannot be safely auto-applied is reported as a warning — the engineer must apply those manually.

When validate is true and an opensips binary is available, the migrated config is also run through opensips -C -f.

Parameters

config_content: The current OpenSIPS configuration text. from_version: Current OpenSIPS version. to_version: Target OpenSIPS version. validate: Run the migrated config through opensips -C when available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
config_contentYes
from_versionYes
to_versionYes
validateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Discloses key behaviors: hop chain walking, automatic rewrites, warning reporting, and validation step. Lacks explicit statement about output format or side effects, but with no annotations, this adds significant value beyond the schema.

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?

Efficient two-paragraph structure: purpose + process, then parameter list. No wasted sentences, front-loaded with 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?

Adequately describes what the tool does and its output (migrated config, warnings). Given that an output schema exists, the description covers the essential aspects without needing full return details.

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%, but the description fully compensates by explaining each parameter's role (current config text, source/target versions, validation toggle). Adds meaning beyond the schema's type/title only.

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?

Clearly states 'Migrate a configuration between OpenSIPS versions', providing a specific verb and resource. Differentiates from sibling tools like cfg_migrate_plan and cfg_diff through the hop chain description.

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?

Provides clear context on when to use: automatic migration with hop chain traversal and manual fallback for warnings. Mentions optional validation. Could explicitly contrast with cfg_migrate_plan but still effective.

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