Skip to main content
Glama

p6_diagnose

Read-onlyIdempotent

Diagnose configuration issues by displaying active server settings, detected P6 schema/version, running status, backup/edit folders, cache state, and data source; works without a database.

Instructions

Start here when a tool reports a configuration problem. Shows the server settings in force (database, tool profile, writes allowed, restart needed), the P6 schema and version detected, whether P6 is running, the backup and edit log folders, the network cache of the CPM engine (engine_cache: on or off, projects kept, hits and misses) and data_source (the source in use, the saved choice, and since when this server process was switched with p6_use_database). Works without a database.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.5.0
    • removedInput schema / title
      Removed value: -"p6_diagnoseArguments"
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds context the annotations cannot: it works even with no database configured, it surfaces whether a restart is needed, and it reports the in-memory CPM engine cache with hit/miss counters. That is meaningful operational context beyond the structured fields.

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 trigger is front-loaded in the first clause, and the remainder is a compact inventory of reported values with no filler sentences. The long parenthetical list is dense but every item is a distinct piece of diagnostic output, so it earns its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no parameters, no output schema, and read-only annotations, the description carries the burden of explaining what comes back, and it does so item by item. An agent knows both when to call it and what information it will receive, including the database-free case.

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 tool takes no parameters, so the baseline for this dimension is 4. The description correctly introduces no parameter concepts, and the reference to p6_use_database clarifies how the reported data_source state arises without implying any input to this call.

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 opens with a specific trigger and then enumerates exactly what the tool reports: server settings (database, tool profile, writes allowed, restart needed), P6 schema/version, P6 running state, backup and edit-log folders, engine_cache stats, and data_source. That is far more concrete than a restatement of the name. It stops short of explicitly contrasting with p6_health_check, the closest sibling, so it does not fully earn 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?

"Start here when a tool reports a configuration problem" gives a clear entry condition for the agent, and "Works without a database" removes a common precondition worry. There is no explicit when-not guidance and no named alternative for general health checks, which keeps it below 5.

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