Skip to main content
Glama

Diagnose connection and safely repair expired reservations

diagnostics
Idempotent

Use after capacity/transport errors. Reports online state, account quota, active account/device leases and current-epoch verified native capacity/version; old agents conservatively use one slot. repairSafe releases only this grant's expired, never-dispatched reservations and never releases unknown executions or changes local permissions. Connection health does not prove command authorization.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "deviceId": "<deviceId>"
    },
    "name": "diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdYes
repairSafeNoRelease up to 100 expired reservations owned by this connection only when they have never acquired a dispatch lease. Never retries work or changes local permissions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / deviceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare idempotent=true, destructiveHint=false, and readOnlyHint=false, so the mutation surface is partly documented. The description adds meaningful guardrails – repairSafe only releases this grant's expired, never-dispatched reservations and never touches unknown executions or local permissions – which is genuinely useful behavior context. However, with readOnlyHint=false, it doesn't explain the side effects of the default path versus repairSafe=true beyond the summary sentence.

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?

Front-loads the triggering condition, then the report contents, then the safety guarantees. Dense but efficient, with each clause carrying real information; minor density makes it a 4 rather than 5.

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?

For a two-parameter diagnostic with no output schema, the description covers what is reported and the safety boundaries of the mutation, which is enough to call it correctly. Minor gap: no explicit statement of what the tool returns or whether repairSafe affects the reported values.

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 50%: repairSafe is already documented in the schema, and deviceId has no description. The description clarifies 'this grant's' scope, implying deviceId identifies the connection, but adds little deviceId format or semantics beyond that. Baseline 3 is appropriate.

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 and a concrete set of reported resources (online state, account quota, active account/device leases, verified native capacity/version), which separates it from usage_status and session tools. It doesn't explicitly name a sibling it supersedes, so it stops short of a 5.

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?

'Use after capacity/transport errors' gives a clear triggering condition, and the closing caveat about connection health not proving authorization signals when the diagnosis is insufficient. No explicit when-not guidance or named alternative tool, so not a 5.

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.