Skip to content

MCP: tighten ui.* descriptions, document ## name semantics#5970

Merged
Grantim merged 1 commit into
masterfrom
mcp-ui-descriptions
Apr 23, 2026
Merged

MCP: tighten ui.* descriptions, document ## name semantics#5970
Grantim merged 1 commit into
masterfrom
mcp-ui-descriptions

Conversation

@Grantim
Copy link
Copy Markdown
Contributor

@Grantim Grantim commented Apr 23, 2026

Summary

Tool descriptions were long per-tool and didn't document the ##<suffix> convention on entry names. LLMs drop ##… and dispatch breaks.

  • One shared kPathSemantics preamble at the top of MRViewerMcp.cpp holds the path / ## / type / status vocabulary; every ui.* tool's desc gets it prepended.
  • Per-tool descs shrink to the one or two sentences unique to each tool.
  • Tool name fields go verb-first (List UI entries (one level), List UI entries (full subtree), Click UI button, Read UI <type> value, Write UI <type> value) — clearer in tools/list.
  • Read/write lambda now takes an explicit displayType (int / uint / float / string) so name and desc match the type field in listEntries output.

No behaviour change.

Test plan

  • Build Debug|x64 (clean compile).
  • tools/list via MCP — all 11 ui.* tools updated: each desc starts with the shared preamble (##, type set, status values) and carries a short tool-specific sentence; names are verb-first.

🤖 Generated with Claude Code

…ntics

Shared `kPathSemantics` preamble carries the path / `##` / type / status
vocabulary; per-tool `desc`s shrink to what each tool itself does. Tool
`name` fields become verb-first (`Click UI button`, `List UI entries
(full subtree)`, etc.). No behaviour change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Grantim Grantim merged commit 997cf2b into master Apr 23, 2026
35 checks passed
@Grantim Grantim deleted the mcp-ui-descriptions branch April 23, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants