Skip to main content
Glama

PHQ-9 憂鬱症狀計分

score_phq9
Read-onlyIdempotent

PHQ-9 憂鬱症狀計分:9 題 0–3 分,回傳嚴重度與第 9 題警示。不是診斷。

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": {
      "answers": "<answers>"
    },
    "name": "score_phq9"
  }
}

Input Schema

NameRequiredDescriptionDefault
answersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral content: scoring range, that severity is returned, and that item 9 (suicidality) triggers a warning — important for downstream handling. It does not say how short/invalid answer arrays are treated.

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?

A single compact sentence plus a short caveat, with the essentials (instrument, item count, score range, outputs) front-loaded. No filler or redundancy.

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 correctly explains what comes back (severity plus item-9 warning) and sets interpretation limits. Remaining gaps are input validation details and whether the returned severity uses standard PHQ-9 cutoffs, which would matter for a clinical scoring tool.

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% for the single 'answers' parameter, so the description must carry the burden — and it largely does: nine values, each 0–3. It does not state ordering (items 1–9), whether fractional or out-of-range values are rejected, or what happens with fewer than 9 entries.

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 names a specific verb (計分/scoring) and resource (PHQ-9), and states the instrument's structure (9 items, 0–3 points) plus its outputs (severity, item-9 alert). Naming the exact instrument implicitly separates it from score_gad7 and score_mood_thermometer, though it never explicitly routes the agent away from those siblings.

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

Usage Guidelines3/5

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

Usage is implied by the instrument name and item/scoring spec, but there is no explicit when-to-use or when-not guidance relative to score_gad7 or score_mood_thermometer. The closing caveat '不是診斷' does frame interpretation scope (screening, not diagnosis), which is a useful usage boundary but not tool-selection guidance.

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