docs(27-01): complete command tool description rewrite plan summary
This commit is contained in:
1 parent
576efde0cc
commit
aa8211c410
4 files changed
+88
-13
No files matched your search
@@ -20,7 +20,7 @@ All v1.3 requirements are complete. See archive for details.
|
||||
|
||||
Tool descriptions must include: (1) purpose verb+object front-loaded, (2) when-to-use vs. alternatives, (3) limitations and empty-result meaning, (4) parameter format + ranges, (5) concrete examples, (6) appropriate length (not truncated at the key sentence).
|
||||
|
||||
- [ ] **DESC-01**: All globe command tools rewritten to 6-component standard: `pan_globe`, `fly_to`, `focus_entity`, `toggle_layer`, `set_timeline` -- each includes sessions precondition inline and distinguishes from its nearest alternative
|
||||
- [x] **DESC-01**: All globe command tools rewritten to 6-component standard: `pan_globe`, `fly_to`, `focus_entity`, `toggle_layer`, `set_timeline` -- each includes sessions precondition inline and distinguishes from its nearest alternative
|
||||
- [ ] **DESC-02**: All data query tools rewritten to 6-component standard: `search_entities`, `get_entities_in_region`, `get_entity_details`, `get_plugin_data` -- each includes plugin-availability note and explanation of what empty results mean
|
||||
- [ ] **DESC-03**: All v1.3 tools rewritten to 6-component standard: `geocode_location`, `set_filter`, `clear_filter`, `get_plugin_filters`, `save_favorite`, `list_favorites`, `remove_favorite`
|
||||
|
||||
@@ -74,7 +74,7 @@ Tool descriptions must include: (1) purpose verb+object front-loaded, (2) when-t
|
||||
| INST-02 | Phase 26 | Complete |
|
||||
| INST-03 | Phase 26 | Complete |
|
||||
| INST-04 | Phase 26 | Complete |
|
||||
| DESC-01 | Phase 27 | Pending |
|
||||
| DESC-01 | Phase 27 | Complete |
|
||||
| DESC-02 | Phase 27 | Pending |
|
||||
| DESC-03 | Phase 27 | Pending |
|
||||
| RESP-01 | Phase 28 | Pending |
|
||||
|
||||
@@ -112,7 +112,7 @@ Full details: [milestones/v1.2-ROADMAP.md](milestones/v1.2-ROADMAP.md)
|
||||
3. Every v1.3 tool description (`geocode_location`, `set_filter`, `clear_filter`, `get_plugin_filters`, `save_favorite`, `list_favorites`, `remove_favorite`) passes the 6-component checklist: purpose, when-to-use, limitations, parameter format, example, complete length
|
||||
4. No tool description is truncated at a critical constraint; each fits within MCP client display limits while retaining all mandatory guidance
|
||||
**Plans**: 3 plans (all wave 1, parallel -- no file overlap)
|
||||
- [ ] 27-01-PLAN.md — DESC-01: rewrite 4 globe command tool descriptions (pan_globe, focus_entity, toggle_layer, set_timeline) + assertion tests
|
||||
- [x] 27-01-PLAN.md — DESC-01: rewrite 4 globe command tool descriptions (pan_globe, focus_entity, toggle_layer, set_timeline) + assertion tests
|
||||
- [ ] 27-02-PLAN.md — DESC-02: rewrite 4 data query tool descriptions with empty-result semantics + new tools.test.ts
|
||||
- [ ] 27-03-PLAN.md — DESC-03: conform 8 v1.3 tool descriptions across geocoding/filter/favorites (fly_to gets the sessions precondition) + assertion tests
|
||||
|
||||
@@ -148,7 +148,7 @@ Full details: [milestones/v1.2-ROADMAP.md](milestones/v1.2-ROADMAP.md)
|
||||
| 24. Route Wiring + Version Bump | 1/1 | Complete | 2026-05-31 |
|
||||
| 25. Documentation | 1/1 | Complete | 2026-05-31 |
|
||||
| 26. Server Instructions + Orientation | 1/1 | Complete | 2026-05-31 |
|
||||
| 27. Tool Description Rewrite | 0/3 | Planned | - |
|
||||
| 27. Tool Description Rewrite | 1/3 | In Progress| |
|
||||
| 28. Smart Response Contracts + Favorites CRUD | 0/? | Not started | - |
|
||||
| 29. Compound and Discovery Tools | 0/? | Not started | - |
|
||||
|
||||
|
||||
+9
-9
@@ -2,14 +2,14 @@
|
||||
gsd_state_version: 1.0
|
||||
milestone: v1.4
|
||||
milestone_name: Agentic Intelligence
|
||||
status: verifying
|
||||
last_updated: "2026-05-31T04:29:33.307Z"
|
||||
status: executing
|
||||
last_updated: "2026-05-31T04:51:16.896Z"
|
||||
last_activity: 2026-05-31
|
||||
progress:
|
||||
total_phases: 8
|
||||
completed_phases: 5
|
||||
total_plans: 10
|
||||
completed_plans: 10
|
||||
total_plans: 13
|
||||
completed_plans: 11
|
||||
percent: 63
|
||||
---
|
||||
|
||||
@@ -20,17 +20,17 @@ progress:
|
||||
See: .planning/PROJECT.md (updated 2026-05-31)
|
||||
|
||||
**Core value:** A single globe controllable by any AI agent via MCP -- where the agent arrives oriented, investigates intelligently, and acts with confidence.
|
||||
**Current focus:** Phase 26 — server-instructions-orientation
|
||||
**Current focus:** Phase 27 — Tool Description Rewrite
|
||||
|
||||
## Current Position
|
||||
|
||||
Phase: 26 (server-instructions-orientation) — EXECUTING
|
||||
Plan: 1 of 1
|
||||
Status: Phase complete — ready for verification
|
||||
Phase: 27 (Tool Description Rewrite) — EXECUTING
|
||||
Plan: 2 of 3
|
||||
Status: Ready to execute
|
||||
Last activity: 2026-05-31
|
||||
Resume file: None
|
||||
|
||||
Progress: [██████████] 100%
|
||||
Progress: [█████████░] 85%
|
||||
|
||||
## v1.4 Phase Map
|
||||
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
---
|
||||
phase: 27-tool-description-rewrite
|
||||
plan: "01"
|
||||
subsystem: mcp
|
||||
tags: [mcp, tool-descriptions, testing]
|
||||
dependency_graph:
|
||||
requires: []
|
||||
provides: [DESC-01]
|
||||
affects: [globeCommandTools.ts, globeCommandTools.test.ts]
|
||||
tech_stack:
|
||||
added: []
|
||||
patterns: [6-component tool description standard]
|
||||
key_files:
|
||||
modified:
|
||||
- src/app/api/mcp/globeCommandTools.ts
|
||||
- src/app/api/mcp/globeCommandTools.test.ts
|
||||
decisions:
|
||||
- "6-component order: Purpose -> When to use -> Limitations -> Parameters -> Example"
|
||||
- "Descriptions 574-687 chars, well under 1024 char hard cap"
|
||||
- "Canonical sessions/no-active-session phrasing reused verbatim from MCP_SERVER_INSTRUCTIONS"
|
||||
metrics:
|
||||
duration: "~5 minutes"
|
||||
completed: "2026-05-31T04:50:46Z"
|
||||
tasks_completed: 2
|
||||
files_modified: 2
|
||||
---
|
||||
|
||||
# Phase 27 Plan 01: Command Tool Description Rewrite (DESC-01) Summary
|
||||
|
||||
Rewrote the four globe command tool descriptions (pan_globe, focus_entity, toggle_layer, set_timeline) in globeCommandTools.ts to the 6-component standard, and added enforcement tests in globeCommandTools.test.ts.
|
||||
|
||||
## What Was Done
|
||||
|
||||
### Task 1: Rewrite four command tool descriptions
|
||||
|
||||
Each of the four tools now has a description following the fixed component order: Purpose -> When to use (with Prefer disambiguation) -> Limitations -> Parameters -> Example.
|
||||
|
||||
Mandatory substrings present in every description:
|
||||
- "globe://sessions" (sessions precondition)
|
||||
- "no active globe session to control" (no-session outcome, canonical phrasing from MCP_SERVER_INSTRUCTIONS)
|
||||
- "Prefer " (disambiguation line naming nearest alternative)
|
||||
- "Example:" (worked example call)
|
||||
|
||||
Description lengths: pan_globe 687, focus_entity 680, toggle_layer 574, set_timeline 602. All under 1024 char hard cap.
|
||||
|
||||
set_timeline also names all five timeWindow enum values ('1h','6h','24h','48h','7d').
|
||||
pan_globe states coordinate ranges and notes focus_entity entity-id resolution is not yet wired.
|
||||
|
||||
### Task 2: Add DESC-01 enforcement tests
|
||||
|
||||
New `describe("command tool descriptions (DESC-01)")` block in globeCommandTools.test.ts with data-driven `it.each` over all four tool names asserting:
|
||||
- description length > 0 and <= 1024
|
||||
- includes "globe://sessions"
|
||||
- includes "no active globe session to control"
|
||||
- includes "Prefer "
|
||||
- includes "Example:"
|
||||
|
||||
Plus a set_timeline-specific assertion that at least one timeWindow enum literal is present.
|
||||
|
||||
Updated `makeFakeServer()` to capture the schema def (second `registerTool` argument) per tool name.
|
||||
|
||||
All 65 tests pass.
|
||||
|
||||
## Deviations from Plan
|
||||
|
||||
None - plan executed exactly as written.
|
||||
|
||||
Pre-existing tsc error in src/lib/mcp/server.ts (Property 'camera' does not exist on type 'GlobeStateSnapshot') was present before this plan and is out of scope.
|
||||
|
||||
## Self-Check: PASSED
|
||||
|
||||
- src/app/api/mcp/globeCommandTools.ts: modified
|
||||
- src/app/api/mcp/globeCommandTools.test.ts: modified
|
||||
- Commits: b4f8e20 (feat), 576efde (test)
|
||||
- pnpm test -- globeCommandTools: 65 passed
|
||||
Reference in new issue
Block a user