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

Search 408os questions by subject, knowledge point, year, source, or keyword

408os_search_questions
Read-only

Search 408os.cn question summaries by keyword, subject, year range, type, or knowledge point to find past-exam and practice questions with tags, excerpts, and links for detailed review.

Instructions

Searches question summaries via questions_search (defaults to past-exam papers PAST_EXAM). Every result includes year, question_index, excerpt, 3-level anki_tags, and exercise_url. Follow up with 408os_get_question or 408os_get_questions for full text, answers, and explanations.

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_search_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoExact exam year (e.g. `2024`).
keywordNoKeyword to match in question stems.
subjectNo408 subject name (`数据结构` / `计算机组成原理` / `操作系统` / `计算机网络`).
page_numNoPage number (1-20, default 1).
year_endNoEnd exam year (inclusive).
page_sizeNoPage size (1-50, default 20).
year_startNoStart exam year (inclusive).
source_typesNoQuestion sources (default `["PAST_EXAM"]`; non-past-exam sources require account entitlement).
question_typeNo`1` = choice question, `2` = comprehensive/essay question.
knowledge_point_idsNoUp to 20 knowledge-point IDs (level 1 subject, level 2 chapter, or level 3 point).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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. Beyond that the description adds real value: it names the default source filter and enumerates the exact fields each result carries (`year`, `question_index`, `excerpt`, 3-level `anki_tags`, `exercise_url`), which matters because there is no output schema. It does not mention pagination behavior or the entitlement boundary for non-PAST_EXAM sources (that detail lives only in the schema).

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?

Three short sentences, front-loaded with the core action and ending with the follow-up path; nothing is padded. The one blemish is the internal reference to `questions_search`, which is neither the tool name nor a sibling and could mildly confuse an agent about what is being invoked.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-parameter search with no output schema, the description covers purpose, default scope, and return fields well. However, it says nothing about how filters combine (subject vs. knowledge_point_ids vs. year range), nothing about pagination across `page_num` (max 20) / `page_size`, and nothing about where to obtain valid `knowledge_point_ids` (e.g., `408os_list_knowledge_points`). Those are meaningful omissions for a faceted search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all ten parameters including defaults, ranges, and enums. The description's only parameter-adjacent statement ('defaults to past-exam papers `PAST_EXAM`') repeats what the `source_types` schema entry already says. Baseline 3 applies since the schema carries the semantic load.

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 gives a specific verb and resource ('Searches question summaries') plus its default scope ('defaults to past-exam papers `PAST_EXAM`'). It distinguishes itself from the retrieval siblings by stating results are summaries only and that `408os_get_question`/`408os_get_questions` supply full text, answers, and explanations. It does not differentiate itself from other search-adjacent siblings such as `408os_get_collection_questions`, but the core purpose is unambiguous.

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?

The only routing guidance is post-hoc: 'Follow up with `408os_get_question` or `408os_get_questions` for full text.' That tells the agent what to do after a search but not when to choose this tool over, say, `408os_get_exams_and_papers` or `408os_list_knowledge_points`. Usage is implied rather than stated, and there is no explicit when-not condition.

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