Skip to main content
Glama

Context Tally Diagnostics

get_context_diagnostics

Returns conversation-specific context diagnostics such as category drill-downs, prompt-cache drops, what-if savings, efficiency verdicts, or anonymized environment traces to help diagnose token usage and cache issues.

Instructions

Return lazy data for the selected conversation: category drill-down, prompt-cache drops, the What-If savings catalog, an efficiency verdict, or an anonymized environment dump.

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": {
      "kind": "<kind>"
    },
    "name": "get_context_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
categoryIdNo
conversationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It hints that data is lazy and that the environment dump is anonymized, which adds some useful context, but it does not state read-only behavior, permission requirements, return format, or any limits. The privacy hint for 'env' is useful, but overall behavioral disclosure is thin.

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?

The description is a single front-loaded sentence with no wasted framing. The list is compact and readable, though it is not exhaustive enough to make the terse structure fully effective.

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?

The tool has three parameters, twelve `kind` enum values, no annotations, no output schema, and zero schema description coverage. The description names only a subset of the diagnostic modes and leaves parameter roles and most enum meanings unexplained, so it is not complete enough for reliable invocation.

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?

Schema description coverage is 0%, so the description must explain the three parameters. It maps a few listed diagnostics to some `kind` values, such as category drill-down, prompt-cache drops, What-If, efficiency, and env, but it never explains `categoryId`, barely explains `conversationId`, and omits many enum values such as trace, autopsy, waste, unused, and taxonomy.

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 states a specific verb and resource: returning lazy diagnostic data for the selected conversation. It lists several diagnostic categories, giving a clearer purpose than a vague name. However, it does not differentiate this tool from context-overview siblings such as get_corpus_overview or show_context_usage.

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 explicit when-to-use guidance, no conditions for choosing this tool over alternatives, and no exclusions. The phrase 'selected conversation' implies context but does not tell an agent when this tool is appropriate versus the sibling tools.

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