Skip to main content
Glama

run_diagnostics_tool

Run deterministic diagnostics on a draft slug to verify source provenance, anchor integrity, image limits, readability, and WeChat HTML compliance.

Instructions

Run deterministic checks: provenance, anchor integrity, image limits, readability & WeChat HTML checks.

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": {
      "slug": "<slug>"
    },
    "name": "run_diagnostics_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 full burden. "Deterministic" usefully signals repeatable, non-random behavior, implying the result is stable and safe to re-run, but it never states whether any state is written, whether the tool requires the article to exist first, or what failure modes look like. For a zero-annotation tool that is a meaningful but incomplete disclosure.

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?

One short sentence, front-loaded with the action and followed by the check list. Every clause earns its place and there is no filler or restatement of the tool name.

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?

The presence of an output schema removes the need to describe return values, which the description correctly does not attempt. However, with no annotations and an unexplained required slug, the definition leaves out the invocation context an agent needs — what the slug identifies and what circumstances warrant a run.

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?

The single parameter "slug" has 0% schema description coverage and the description never mentions it. An agent cannot tell from either source whether the slug refers to an article, a source, or a workspace, nor whether it must already be ingested. With one undocumented parameter, the description needed to compensate and does not.

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?

"Run deterministic checks" pairs a specific verb with a specific resource, and the enumeration (provenance, anchor integrity, image limits, readability, WeChat HTML) tells an agent exactly what class of validation happens. It does not explicitly distinguish itself from siblings like ingest_source_tool or propose_patch_tool, but the read-check framing is clear enough to separate it in practice.

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 guidance on when to run diagnostics — before publishing, after ingest, on failure — and no mention of when not to use it or what alternative to prefer. The agent must infer the trigger conditions entirely from the check names.

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