Skip to main content
Glama

Opsphere — DevOps & SRE Intelligence

Azure Service Bus Queue Dead Letter Metrics

azure_servicebus_queue_deadletter
Read-only

Gets dead letter queue metrics (failed messages)

Input Schema

NameRequiredDescriptionDefault
namespaceYesService Bus namespace name
queueNameYesQueue 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)

Output Schema

NameRequiredDescriptionDefault
okYes
dataYes
contractVersionYes
dataSchemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changed
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +false
    • removedOutput schema / properties / data / properties / count
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / data / properties / deadLetterCount
      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"
      +}
    • addedOutput schema / properties / data / properties / queueName
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / data / properties / resourceGroup
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / data / properties / sampleMessages
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bodyPreview": {
      +        "type": "string"
      +      },
      +      "enqueuedAt": {
      +        "type": "string"
      +      },
      +      "messageId": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / data / properties / subscriptionId
      Removed 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",
      +  "queueName",
      +  "deadLetterCount",
      +  "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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only the '(failed messages)' gloss on dead-letter semantics and says nothing about what metrics are returned, time window, per-queue vs aggregate scope, or permissions — with annotations carrying the load, that is a thin addition.

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 sentence with zero filler. It is efficient, though the brevity borders on under-specification rather than optimal tightness.

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 5-parameter tool inside a dense Service Bus tool family, the description does not say what the metrics represent or how they differ from queue_metrics/topic_sub_metrics. The output schema covers return values and annotations cover safety, but the routing information an agent needs to pick this tool is absent.

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% and all five parameters (namespace, queueName, context_id, resourceGroup, azure_tenant_id) are documented in the schema itself. The description contributes no additional parameter meaning, so the baseline 3 applies.

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) and resource (dead letter queue metrics), and the parenthetical '(failed messages)' clarifies what a dead-letter queue holds. It implies a distinction from azure_servicebus_queue_metrics and azure_servicebus_dlq_content but never names those siblings, leaving the boundary to inference.

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?

There is no when-to-use guidance, no prerequisite statement, and no mention of alternatives such as azure_servicebus_queue_metrics (normal queue metrics) or azure_servicebus_dlq_content (message payloads). The agent must guess which of the several Service Bus tools to call.

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