fix: name finish title and summary, and the search query concept on q #857
No reviewers
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea!857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-746-param-descriptions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Summary
Two schema-description gaps made an MCP caller guess parameter names.
First, the
madt_finishdescription never namedtitle, which is required, orsummary. Thesummaryschema text also offered@fileand@-expansion, which the MCP surface does not do. The schema markedsummaryas required, butmadt_finishaccepts an empty summary.Second, each search-style
qparameter said only "search query". An agent that reaches forquerydid not findq. ADR 0005 says to fix this in the schema description, so I add no alias and no did-you-mean entry.What changed
internal/mcp/tools_workflow.go: themadt_finishdescription now saystitle=is REQUIRED (the one-line commit subject and PR title) andsummary=is optional (the PR summary section, as literal markdown). TheFinishInput.Summaryfield is nowjson:"summary,omitempty", so the schema marks it optional.internal/opspec/paramdocs.go: thetitleandsummarydescriptions formadt_finishare rewritten. The@fileand@-text is gone. Eachqdescription (emails, issues, teams, repos) now names the search query and shows an example.internal/mcp/prompts.go: thefinish-branchprompt argumentsummaryis now optional, to match the tool schema. Its description says "the PR summary section".docs/reference/cli-workflows.mdanddocs/reference/prompts.md: regenerated reference docs.internal/mcp/help_generated.go: regenerated help text.Tests
internal/mcp/param_concept_desc_test.go(new) has two tests.TestParamConcept_FinishNamesTitleAndSummarychecks the live schema. The tool description namestitleandsummary. The schema markstitlerequired andsummaryoptional. Each has a description. The description has no@filetext and no "not a file path" sentence. It sayssummaryfills one section of the PR body, becauseBuildPRBodyalways adds the Summary heading and the Refs and Closes lines.TestParamConcept_SearchQueryQchecks that every search-styleqdescription names the search query concept and shows an example.internal/mcp/prompts_test.goandinternal/docs/mcp_prompts_test.gonow expectfinish-branchto have no required argument../scripts/gate.shpasses on this commit.Refs #746
Refs #757
Closes #746
Closes #757