Skip to main content
Glama
408OS CLI MCP
by Paxton-PKJ

Build a clickable 408os 刷题 page URL (`https://www.408os.cn/exercise?...`)

408os_get_exercise_url
Read-only

Builds an authoritative 408OS practice URL for a question or full-year paper, resolving the global question ID from a question ID or year plus index for Anki/SiYuan references.

Instructions

Builds the authoritative 408os practice link for a question (or a full year paper when only year is given). Accepts either question_id or year + question_index, resolving the global question_id needed by /exercise. Use this URL whenever attaching 408OS references to Anki cards or SiYuan notes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "408os_get_exercise_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoExam year (2009-2026).
question_idNoGlobal 408os `question_id`.
offline_onlyNoSkip CLI verification and compute past-exam IDs purely locally (default false).
question_indexNoQuestion number within that year’s paper (1-47).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond them: it resolves a global question_id behind the scenes and produces an 'authoritative' link. It does not disclose the CLI-verification side effect that the offline_only parameter implies, which is the main omission.

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?

Three sentences, front-loaded with what the tool produces, followed by the input modes and then the usage rule. No filler or repetition of schema text.

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 read-only URL builder with full schema coverage and no output schema, the description covers purpose, input modes, and usage. A minor gap remains around the behavior of offline_only/CLI verification and the zero-required-parameter case where neither mode is supplied.

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 per-parameter meaning is already documented. The description adds value by stating the relationship between parameters — question_id OR year+question_index — which is a mode-selection constraint the individual schema properties do not express. It does not address conflict resolution if both modes are given.

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 artifact: 'Builds the authoritative 408os practice link', and scopes it to two cases (single question or full year paper). That is clearly distinguishable from siblings like 408os_get_question, which return content rather than a URL.

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?

Explicitly names the use case: 'Use this URL whenever attaching 408OS references to Anki cards or SiYuan notes', and explains the two input modes (question_id alone vs. year + question_index) that select between single-question and full-paper links. It stops short of stating exclusions or what happens if neither mode is supplied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.