Skip to main content
Glama

get_qa_context

Extract business rules, historical bugs, and standard assertions from your project's QA knowledge file to provide context for test generation. Falls back to standard testing principles if unavailable.

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 名稱清單。
Behavior4/5

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

No annotations are provided, so the description bears the full burden. It explains what the tool reads, the fallback behavior, and the optional parameter's effect. However, it does not mention any side effects, rate limits, or idempotency, though as a read operation these are less critical. The description is fairly transparent.

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 a single dense paragraph that packs a lot of information. While it is concise, the flow could be improved by splitting usage instructions from fallback behavior. Still, every sentence serves a purpose.

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 the tool has only one optional parameter, no output schema, and no annotations, the description is remarkably complete. It explains the return value (whole file with section list or single section), the fallback content, and the integration with sibling tools (generate_test, init_qa_knowledge). No gaps are apparent.

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 input schema has 100% coverage, but the description adds significant value: it explains the optional 'section' parameter is case-insensitive, supports partial matching, and when omitted returns the whole file plus a list of section names. This goes beyond the schema's basic description.

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 it reads 'qa-knowledge.md' for business context and provides a specific verb ('讀取') and resource. It distinguishes itself from siblings like 'init_qa_knowledge' (creates the file) and 'generate_test' (uses context), making its role unambiguous.

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

Usage Guidelines5/5

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

The description gives explicit usage guidance: first call to get content, then pass as business_context to generate_test. It also explains the fallback to built-in knowledge if the file is missing and suggests running 'init_qa_knowledge' later, providing clear when-to-use and alternatives.

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