Skip to main content
Glama

get_qa_context

Retrieve QA knowledge from a project's knowledge base to provide business context for test generation, ensuring tests reflect real-world rules and history.

Instructions

讀取受測專案的 qa-knowledge.md(業務規則 / 歷史 Bug / 標準斷言文字 / User Journeys 等領域知識),用 ## H2 區段拆分。用法:先 call 拿到整份或指定 section,再把相關段落以 business_context 傳給 generate_test,產出的 test 就會自帶業務知識註解 — 跳脫 monkey testing。若檔案不存在會 fallback 到內建的 ISTQB 七大原則 + 等價分割 + 邊界值 + 決策表 + 狀態轉換 + Mobile checklist 通用知識,先用著也可以;之後跑 init_qa_knowledge 建立專案專屬版本。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNo選填,只取單一 H2 section(不區分大小寫、支援部分匹配)。省略則回整份檔 + 所有 section 名稱清單。
Behavior5/5

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

With no annotations provided, the description fully covers behavioral traits: fallback to built-in knowledge, case-insensitive partial section matching, and the output structure (whole file with section list when no section specified). No contradictions.

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?

The description is reasonably concise in Chinese (4-5 sentences), front-loading the core purpose and usage. While every sentence adds value, it could be slightly more compact without losing meaning.

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

Completeness5/5

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

Given one optional parameter, no output schema, and no annotations, the description is fully adequate. It explains fallback, usage, and output, making the tool's behavior predictable for an AI agent.

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

Parameters5/5

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

The single optional parameter 'section' has 100% schema description coverage. The description adds significant value by explaining matching behavior (case-insensitive, partial match) and the effect of omission vs. specification, which goes beyond the schema.

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?

The description clearly states the tool reads a project-specific qa-knowledge.md file, which distinguishes it from sibling tools like init_qa_knowledge (which creates the file). The verb '讀取' (read) and specific resource are well-defined.

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?

The description explicitly outlines the usage pattern: call this tool first to get knowledge, then pass sections to generate_test. It also notes fallback behavior when the file doesn’t exist. While it doesn’t explicitly state when not to use it or list alternatives, the guidance is clear for the intended workflow.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kao273183/mk-qa-master'

If you have feedback or need assistance with the MCP directory API, please join our Discord server