Skip to main content
Glama

Check document-analysis runtime

doc_health

Diagnose document-analysis failures by reporting Python, parser dependencies, bundled scripts, and supported formats so you can identify the cause and choose a fix.

Instructions

Report Python, parser dependencies, bundled scripts, and supported formats. Run this when a document tool fails.

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": "doc_health"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. "Report" implies a non-mutating environment check, but it never explicitly states that it changes nothing, requires no auth, or is cheap/safe to call repeatedly. The disclosure of what is inspected (interpreter, dependencies, scripts, formats) is the main added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with what is reported and followed by the trigger condition. No filler or redundant restatement of the title.

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 zero-parameter diagnostic with no output schema, the description covers both content and trigger adequately. A brief note on the shape of the report (e.g., text vs. structured key/value) would fully close the gap, since no output schema documents returns.

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

Parameters4/5

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

The schema has zero parameters, which is the baseline-4 case; there is nothing for the description to clarify. The empty object with additionalProperties=false is consistent with the described parameterless diagnostic.

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?

"Report Python, parser dependencies, bundled scripts, and supported formats" names a specific verb and enumerates exactly what the tool surfaces. It is clearly a diagnostics tool, distinct in kind from the doc_extract/doc_map/doc_prepare processing siblings, though it never explicitly contrasts itself with them.

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?

"Run this when a document tool fails" gives a concrete trigger condition that an agent can act on. It stops short of stating when not to run it or what to do with the results, but the usage context is unambiguous.

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

Deploy Server

Other Tools