Skip to main content
Glama
chatgpt-plugin-one-tool

chatgpt-plugin-one-tool

chatgpt-plugin-one-tool

DOI test

A minimal MCP server with one read-only tool, written to show how small a ChatGPT plugin server can be. No framework, no dependencies, no sign-in, no storage. About 180 lines of code and 12 tests.

Author: Aizhan Li, author of the Ladder method.

It comes with REVIEW.md: the step-by-step story of how our plugin Ladder by Aizhan Li went through OpenAI review and was approved for the ChatGPT plugin directory on 4 November 2026. In Russian: REVIEW.ru.md.

This repository does not contain the code of the Ladder plugin or of 108psy.com. It is a teaching example built on the same pattern.

The tool

who5_score scores the WHO-5 Well-Being Index: five answers from 0 to 5 give a score from 0 to 100 and a band (low, reduced, normal). The score is not a diagnosis, and the tool description tells the model so.

Why this tool: it is deterministic, needs no network or model, and still shows the parts reviewers look at: a clear description of when to use the tool and when not to, an input schema, an output schema, annotations, readable errors and safe wording for a low result.

Related MCP server: Personal Agent Allostatic Load Index Biomarker Skill

Run it

npm test
npm start

Then call it:

curl -s -X POST http://localhost:8787/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"who5_score","arguments":{"answers":[3,3,2,2,3]}}}'

Deploy to Cloudflare Workers with npx wrangler deploy. The endpoint is /mcp. You can also open it in MCP Inspector.

For clients that start the server themselves, run it over stdio (npm run stdio). In Claude Desktop, add to claude_desktop_config.json:

{
  "mcpServers": {
    "who5-one-tool": { "command": "node", "args": ["/path/to/chatgpt-plugin-one-tool/src/stdio.mjs"] }
  }
}

Or in a container: docker build -t who5-one-tool . && docker run -i --rm who5-one-tool.

Files

  • src/tool.mjs: the tool definition and the scoring. Start reading here.

  • src/mcp.mjs: JSON-RPC over Streamable HTTP: initialize, ping, tools/list, tools/call.

  • src/worker.mjs: Cloudflare Workers entry.

  • src/node.mjs: local run on Node 18+.

  • src/stdio.mjs: the same server over stdio, one JSON-RPC message per line.

  • Dockerfile: runs the stdio server in a container.

  • example/plugin.json, example/mcp.json: a submission package template with review test cases.

  • test/mcp.test.mjs, test/stdio.test.mjs: protocol, tool and stdio tests (node --test).

Design choices

  • Stateless. Each POST is one JSON-RPC message. No sessions, so any instance can answer.

  • Plain JSON, no SSE. The MCP spec allows a JSON response to a POST. GET returns 405.

  • Tool errors are results. Wrong input returns isError: true with a sentence the model can fix. Protocol errors (unknown method, unknown tool) are JSON-RPC errors.

  • Read-only annotations. readOnlyHint: true, destructiveHint: false, openWorldHint: false.

  • Nothing is logged. The server never writes the answers anywhere.

About the method

The Ladder method, its structure and pilot data are described in a preprint (in Russian):

Li, A. (2026). Онлайн-самопроверка внутренних препятствий на пути к цели: структура, операционализация и пилотные данные методики «Лестница». Zenodo. https://doi.org/10.5281/zenodo.23960425

Author

Aizhan Li, author of the Ladder method, 108psy.com. The plugin, the site and this repository were built by one person with Claude Code.

License

MIT, see LICENSE. WHO-5 is by the WHO Collaborating Centre in Mental Health; this repository contains only its scoring rule, not the item wording.

Available Tools

1 tool
who5_scoreWHO-5 well-being scoreA
Read-onlyIdempotent

Scores the WHO-5 Well-Being Index. Use it when the user has answered the five WHO-5 items about the last two weeks and wants their score. Pass exactly five integers from 0 (at no time) to 5 (all of the time), in item order. Returns the score from 0 to 100 and a band: low (28 or less), reduced (29 to 50) or normal. The score is not a diagnosis. Do not use it for symptoms, illnesses or medication.

Inputs: answers (required). Returns: band, score, message

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of misselection between competing options. Its purpose (scoring five WHO-5 item responses) is stated unambiguously, along with explicit negative guidance about what it must not be used for.

    Naming Consistency5/5

    The single name `who5_score` is clear snake_case, combining a domain identifier with an action noun. With one tool there is no convention mixing to evaluate, and the name reads predictably.

    Tool Count4/5

    The server is explicitly designed as a one-tool plugin, and that tool is a deterministic computation that fully earns its place. The surface is deliberately minimal rather than accidentally thin, though one more tool (e.g. returning the questionnaire items) would add value.

    Completeness4/5

    For the stated purpose of scoring WHO-5 responses, the tool covers the whole operation: input validation, 0-100 raw score, and interpretation bands. The only gap is that it cannot surface the five item texts or the band thresholds as reusable data, so an agent must supply the questionnaire itself.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers