Skip to main content
Glama

detect_weakening

Read-onlyIdempotent

Scan a supplied unified diff for focused or skipped tests, removed assertions, lowered thresholds, hook bypass flags, widened allowlists and deleted guard files. A text pattern scan: none_found does not prove nothing was weakened. Requires Mind access. No project is inspected and no checks run.

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": {
      "diff": "<diff>"
    },
    "name": "detect_weakening"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the supplied annotations (readOnly, idempotent, closed-world, non-destructive), it discloses the key limitation that none_found is not proof of no weakening, states no project is inspected and no checks are run, and notes the Mind access prerequisite. These are exactly the traits an agent needs to interpret results safely.

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 tight sentences: the detection scope is front-loaded, then the caveat and prerequisites. No filler, and every clause adds information the agent cannot get from the schema or annotations.

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?

With no output schema, the description still implies a result shape via "none_found" and warns about false negatives, which is the critical interpretive guidance. Minor omission: it does not describe other possible result statuses or what matched findings look like.

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 0%, so the description must carry the meaning, and it does by specifying that the single input is a unified diff text, which tells the agent what format to supply. It stops short of clarifying encoding or size expectations for the diff string.

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?

The description gives a specific verb ("Scan") and resource ("a supplied unified diff") and then enumerates exactly the classes of weakening it looks for: focused/skipped tests, removed assertions, lowered thresholds, hook bypass flags, widened allowlists, deleted guard files. An agent knows precisely what this tool does and what it does not do.

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?

It establishes the operating context clearly: a text pattern scan over a diff that requires Mind access and inspects no project. That tells the agent when this is appropriate (static diff review) versus a real verification pass, though it does not name a sibling alternative for deeper policy/evaluation work.

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.

Resources