Skip to main content
Glama

Bridge statistics

bridge_stats
Read-onlyIdempotent

Reports local telemetry on calls, errors, per-function round-trip and in-Premiere timings, queue depth, recent errors, and backends; use reset to clear counters.

Instructions

Local telemetry: calls, errors, average/max time per host function (round trip and inside Premiere), queue depth, recent errors, backends.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bridge_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
resetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.3

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and idempotentHint=true, so the safety profile is carried by structured data. The description contributes the scope detail (local host only) and enumerates what is measured, including the distinction between round-trip and inside-Premiere time, which is genuinely useful context. It does not disclose cost, sampling window, retention period, or how fresh the numbers are, which are the behaviors an agent would still want for a telemetry 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 most important qualifier ("Local telemetry") comes first and the metric list follows. It is a sentence fragment rather than a structured sentence, but nothing is redundant and nothing could be cut without losing information.

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?

There is no output schema, and the description partially compensates by enumerating the fields the agent will get back, which is the right instinct. However, it says nothing about the reset parameter or the time window the metrics cover, so an agent cannot fully predict either the call's side effects or the meaning of the numbers returned.

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

Parameters2/5

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

There is one parameter, reset, with 0% schema description coverage, and the description never mentions it at all. Its semantics are therefore undefined: whether it clears counters, whether it clears before or after the stats are returned, whether clearing is persistent, and whether it conflicts with the declared idempotentHint. For a single undocumented parameter that plausibly mutates state, this is a real gap rather than a neutral baseline.

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?

The description names the resource concretely ("Local telemetry") and enumerates the exact metrics reported: calls, errors, avg/max time per host function, queue depth, recent errors, backends. That is enough for an agent to know this is a read-only diagnostics/metrics tool rather than an editing tool, which separates it from the editing-heavy sibling list. It stops short of an explicit verb or an explicit contrast with the closest sibling (jobs), so it is clear but not maximally differentiated.

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 or when-not-to-use guidance. An agent must infer that this is for debugging, performance triage, or health checks, and gets no hint about when to prefer it over diagnostics from jobs. The only implicit signal is the "Local" qualifier, which suggests it reports on the local bridge host rather than remote activity.

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