Skip to main content
Glama
OpenSIPS

OpenSIPS MCP Server

Official
by OpenSIPS

perf_sample_window

Sample OpenSIPS runtime statistics over a short window to detect proxy load pressure. Collects data at evenly-spaced points and returns raw time-series for delta computation. Limited to 10 minutes and 60 samples for manageable responses.

Instructions

Sample runtime statistics at a fixed cadence over a short window.

Useful for "is the proxy under pressure right now?" snapshots. Pulls the statistic groups at sample_count evenly-spaced points and returns the raw time-series — the caller (or LLM) computes deltas.

For long-running observation use a real TSDB (Prometheus, Graphite) via proto_hep or prometheus module — this tool is capped at 10 minutes / 60 samples to keep MCP responses manageable.

Parameters

duration_sec: Total sampling window in seconds. Clamped to 1..600. sample_count: Number of equally-spaced samples. Clamped to 2..60. groups: Statistics group prefixes to capture. Default: core health indicators (core, shmem, tm, sl, usrloc, dialog, net).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
duration_secNo
sample_countNo
groupsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations provided, so description carries full burden. It discloses it samples evenly-spaced points, returns raw time-series requiring delta computation, and has clamping ranges. Could be more explicit about non-destructive nature but adequately transparent.

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?

Description is structured with overview, use case, alternative, and parameter details. Front-loaded with purpose. Slightly verbose but every sentence adds value; could be tightened slightly.

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 tool complexity (sampling) and presence of output schema, description is adequate. It explains the raw time-series return, no need to detail output schema structure. Could mention synchrony or side effects, but overall 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 description must explain parameters. It does so thoroughly: duration_sec range, sample_count range, groups default prefixes. Adds significant meaning beyond schema types and defaults.

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 it 'Sample runtime statistics at a fixed cadence over a short window' and provides a specific use case ('is the proxy under pressure right now?'). It distinguishes from sibling tools like perf_hotspots by contrasting with long-term TSDB solutions.

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

Usage Guidelines5/5

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

Explicitly tells when to use (short-term pressure checks) and when not (long-term observation, suggesting alternatives proto_hep or prometheus). Mentions caps (10 min/60 samples) to manage MCP response size.

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