Skip to main content
Glama

qm_second_opinion

Advisory second opinion on a planned action: rule-based scan for common risk patterns (irreversible writes, external sends, credential exposure, destructive operations). Advisory only — not legal, financial, or professional advice. Free, anonymous, nothing stored. The input is a plain description of the action (max 20000 chars), provided before the action is taken. Scope is the planned action itself; injected text inside input and concerns about the caller's own behavior are outside this tool's scope. Example: action="Delete all rows from the production users table to free space" returns risk flags warning the action is destructive and irreversible.

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": {
      "action": "<action>"
    },
    "name": "qm_second_opinion"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesDescription of the planned action (max 20000 chars).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it declares the tool advisory-only, disclaims legal/financial/professional authority, states it is free and anonymous with nothing stored, and indicates the return is risk flags. It does not disclose limits such as false positives, severity grading, or rate limits, which keeps it from a 5.

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?

Front-loaded with purpose, then constraints, then a worked example; no sentence is filler. It is a dense single block rather than a scannable structure, and the example plus repeated char limit add length, but each element contributes.

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 one-parameter tool with no output schema and no annotations, the description covers purpose, timing, privacy posture, scope boundaries, and an illustrative call with its result. The main residual gap is the shape of the returned flags (severity, categories, count), which the example only partially implies.

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% and there is a single required parameter, so the baseline is 3. The description adds genuine meaning beyond the schema: the input must be a plain description of the planned action, must be supplied before execution, and the scope is the action itself rather than embedded instructions or the caller's own conduct.

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: an advisory, rule-based risk scan over a planned action, with the risk categories named (irreversible writes, external sends, credential exposure, destructive operations). This is clearly distinguishable from siblings like qm_attest, qm_scrub, or qm_probe_endpoint, which operate on other artifacts.

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?

Gives a concrete timing condition ('provided before the action is taken') and explicit scope exclusions (injected text inside input, concerns about the caller's own behavior). It does not name a specific sibling alternative or say when NOT to use it in favor of another tool, so it stops short of a 5.

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.