Skip to main content
Glama
Unified MCP Server

Unified MCP Server

by qingyunyupan

code_tdd

Guides development through test-driven development: write tests before implementation and cover edge cases and exception paths for Python or JavaScript tasks.

Instructions

以测试驱动开发(TDD)专家的身份,指导开发流程。确保先写测试后写实现,并覆盖所有边界情况和异常路径。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task": "<task>",
      "language": "<language>"
    },
    "name": "code_tdd"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes需要实现的开发任务
languageYes编程语言

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether files are written, whether tests are executed, or what a response looks like. The only behavioral claim — test-first ordering and full edge-case coverage — is a directive to the caller, not a disclosure of tool behavior.

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?

Two short sentences, front-loaded with the role and the rule to follow. Nothing is wasted, though the compactness comes at the cost of under-specification rather than verbosity.

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

Completeness2/5

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

With no annotations and no output schema, the description is the only source of truth about this tool's contract, and it omits the return type entirely. For a tool whose output shape determines how an agent uses it (plan vs. generated tests vs. modified source), this is a material gap.

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%, with both required parameters (task, language) and an enum for language fully documented in the schema itself. The description adds no syntax, format, or scoping detail beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete methodology (TDD) and a verb ("guide the development process"), but never states what the tool actually produces — code, tests, a plan, or a review. It also does not distinguish itself from near siblings such as code_test_generate or code_generate, which an agent could easily mistake for this operation.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no alternative is named. An agent gets no signal about whether to pick this over code_test_generate for test work or code_generate for implementation.

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