Commit 25272a0
committed
mcp(refactor[display_message]): sharpen description + title for LLM discoverability
why: the name 'display_message' reads to an LLM like "show a
notification to the user" — the opposite of what the tool does
(evaluate a tmux format string and return the expanded value).
_BASE_INSTRUCTIONS already had corrective prose to compensate, which
is structural evidence the name is doing the wrong job. Rewording the
docstring summary and the MCP title lets the description carry the
meaning without touching the wire-name. A hard rename to
evaluate_format is deliberately deferred behind telemetry.
what:
- Rewrite the first sentence of display_message's docstring so
FastMCP-indexed description leads with 'Evaluate a tmux format
string... and return the expanded value.' — FastMCP pulls
description from the docstring when no description= kwarg is given
(fastmcp/tools/function_tool.py:225-227).
- Change the mcp.tool registration title from 'Display Message' to
'Evaluate tmux Format String' in pane_tools/__init__.py.
- Refresh the corrective sentence in _BASE_INSTRUCTIONS to match the
new wording and name-check the title shift.
- Complete the truncated '## Act' section in display-message.md and
lead with the new framing; retitle the page to reflect the MCP
title.1 parent bbfffae commit 25272a0
4 files changed
Lines changed: 18 additions & 13 deletions
File tree
- docs/tools/pane
- src/libtmux_mcp
- tools/pane_tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments