Skip to main content
Glama

Site Doctor — WordPress diagnosis

kb_record

Write what you learned into the CROSS-SITE knowledge base, so the next diagnosis on a DIFFERENT site starts ahead. Call this when you found something reusable: a root cause, a probe op that turned out to be decisive, a fix that did NOT work, or a false positive that nearly misled you. Reuse an existing slug to update it (that bumps seen, which is how a pattern graduates into an automatic check). NEVER put client data here — no domains, IPs, credentials or file/DB contents; say "a WooCommerce on WP Engine", not the name. The specific case belongs in record_action. Use record_action for what you did on THIS site; use kb_record for what it teaches about any site.

Input Schema

NameRequiredDescriptionDefault
bodyYesMarkdown. Cover: síntoma / causa raíz (o "NO confirmada" + hipótesis) / cómo confirmarlo con ops concretas / fix + rollback / falsos positivos / señal de producto.
slugYeskebab-case, stable id (e.g. "wp-cron-stalled"). Existing slug = update.
statusNoactive (default) | refuted. Do not delete a disproved pattern — mark it refuted and say what disproved it.
triggerYesThe observable symptom in one line — this is how the next session finds it.
severityNocritical | warning | info (default info)
bump_seenNodefault true. Set false when you are only correcting the write-up, not reporting a new occurrence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the side effect of reusing a slug (bumps `seen`, which feeds graduation into an automatic check), warns against deletion of refuted patterns, and imposes a hard privacy constraint about client data. It stops short of describing what a write returns or any permission/ownership requirements, which keeps it below 5.

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?

Front-loads the action and the cross-site payoff, then gives trigger criteria, the update mechanism, the privacy prohibition, and the sibling routing rule. Dense but every sentence carries a distinct instruction with no filler.

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 6-parameter mutation tool with no annotations and no output schema, the description covers purpose, trigger, update semantics, safety constraints, and routing. Only the absence of any return-value or failure-mode indication leaves a small gap.

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?

Schema coverage is 100%, so the baseline is 3; the description adds meaning beyond schema by explaining that reusing an existing slug performs an update and increments `seen`. It also clarifies the intended content of the body (reusable lessons, not client specifics), which the schema's markdown field outline alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Write what you learned into the CROSS-SITE knowledge base') and explicitly differentiates from the nearest sibling: 'Use record_action for what you did on THIS site; use kb_record for what it teaches about any site.' An agent can route between the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit call conditions ('when you found something reusable: a root cause, a probe op that turned out to be decisive, a fix that did NOT work, or a false positive') plus the update path via slug reuse, and names the alternative (record_action) with a clear dividing rule.

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.