Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Azure Service Bus Topic Subscription Metrics

azure_servicebus_topic_sub_metrics
Read-only

Gets metrics of a topic subscription (messages, dead letters)

Input Schema

NameRequiredDescriptionDefault
namespaceYesService Bus namespace name
topicNameYesTopic name
context_idNoOptional explicit Connection Hub work context (ctx_*). Omit to use the conversation's active workspace; global Hub tools ignore it.
resourceGroupNoResource Group (optional)
azure_tenant_idNoAzure tenant ID (optional — defaults to AZURE_TENANT_ID from tenant config)
subscriptionNameYesSubscription name

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +false
    • addedOutput schema / properties / data / properties / activeMessageCount
      Added value: +{
      +  "type": "integer"
      +}
    • removedOutput schema / properties / data / properties / count
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / data / properties / deadLetterMessageCount
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / data / properties / gaps
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / data / properties / items
      Removed value: -{
      -  "items": {
      -    "additionalProperties": true,
      -    "properties": {},
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / data / properties / namespace
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / nextLink
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / partial
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / resourceGroup
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / subscription
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / subscriptionId
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / topic
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / truncated
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / data / properties / value
      Removed value: -{
      -  "$ref": "#/properties/data/properties/items"
      -}
    • addedOutput schema / properties / data / properties / warnings
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "namespace",
      +  "topic",
      +  "subscription",
      +  "partial",
      +  "truncated",
      +  "warnings",
      +  "gaps"
      +]
    • addedOutput schema / properties / dataSchemaVersion
      Added value: +{
      +  "const": 2,
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "contractVersion",
      -  "ok",
      -  "data"
      -]New value: +[
      +  "contractVersion",
      +  "dataSchemaVersion",
      +  "ok",
      +  "data"
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this is a non-destructive, closed-world read, so the safety profile is covered. The description adds that output covers messages and dead letters, but says nothing about metric time window, freshness, or whether the subscription must exist — meaningful gaps for a metrics call.

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?

A single front-loaded clause with no filler; the resource is stated before the parenthetical detail. It is efficient, though so terse that the parenthetical is doing most of the disambiguation work.

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

Completeness3/5

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

An output schema exists, so return values needn't be explained, and the schema fully documents inputs. However, for a metrics tool the description omits any notion of the measurement window or aggregation, which an agent needs in order to interpret results correctly.

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

Parameters3/5

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

Schema description coverage is 100% across all six parameters (namespace, topicName, subscriptionName, resourceGroup, azure_tenant_id, context_id), so the schema carries parameter semantics. The description adds no extra meaning such as naming conventions or whether context_id affects scope, which is the baseline-3 outcome.

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

Purpose4/5

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

States a specific verb ("Gets metrics") and a specific resource ("a topic subscription"), plus the kinds of metrics returned (messages, dead letters). It is clear enough to distinguish from queue metrics by resource, but it never names or contrasts with siblings like azure_servicebus_topic_subscriptions or azure_servicebus_queue_metrics.

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

Usage Guidelines3/5

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

Usage is only implied: an agent infers it should call this when it needs metrics for one specific topic subscription. There is no explicit when-to-use/when-not guidance and no mention of alternatives such as the subscriptions list or the namespace health overview, which sit close to this tool in the catalog.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources