openclaw-windows-node icon indicating copy to clipboard operation
openclaw-windows-node copied to clipboard

[deep-review] C11: Four MCP tools advertised but undescribed in tools/list

Open codemonkeychris opened this issue 6 months ago • 1 comments

Summary

The local MCP server's tools/list is built from McpToolBridge.CommandDescriptions. Four capabilities are registered with WindowsNodeClient (and thus served on MCP) but have no entries in the descriptions table and no sections in the shipped skill.md:

  • location.get
  • device.info
  • device.status
  • browser.proxy

The drift test (SkillMdDriftTests) only enforces symmetry between skill.md and McpToolBridge.CommandDescriptions. It cannot catch "missing from both files."

Where

  • Capability registration: src/OpenClaw.Tray.WinUI/Services/NodeService.cs:266-381
  • Descriptions table: src/OpenClaw.Shared/Mcp/McpToolBridge.cs:184-273
  • Drift test: tests/OpenClaw.WinNode.Cli.Tests/SkillMdDriftTests.cs:20-40
  • Capabilities affected: src/OpenClaw.Shared/Capabilities/LocationCapability.cs:14, DeviceCapability.cs:22-26, BrowserProxyCapability.cs:18

Why it matters

Agents connecting via MCP use tools/list for cold-start discovery. Tools with no description and a permissive additionalProperties input schema are essentially undiscoverable — the agent has to guess parameter shapes from the name. For device.status, that means an agent has no idea the sections array argument exists, or what values it accepts.

Proposed fix

  1. Add CommandDescriptions entries for the four missing tools. The descriptions for location.get, device.info, device.status, and browser.proxy should describe:
    • The tool's purpose in one sentence.
    • Each parameter, its type, and any constraints.
    • The shape of the success payload.
    • Any privacy-sensitive aspects (device.status reveals battery / network type).
  2. Extend SkillMdDriftTests to walk every INodeCapability.Commands value via reflection over the registered capabilities, and assert each appears in both CommandDescriptions and skill.md. This catches future drift.
  3. Add corresponding skill.md sections.

Related findings

This is the most visible symptom of the broader AI-ergonomics gap: MCP tools have permissive inputSchema: {type:"object", additionalProperties:true} regardless of the actual parameter shape. A separate issue (A2) tracks moving to typed schemas.

Severity

Medium — discoverability gap; agent cold-start fails for four real tools.

codemonkeychris avatar May 13 '26 23:05 codemonkeychris

Closing during the post-refactor deep-review cleanup. MCP tool metadata/docs work is consolidated into the #372 post-refactor tracker for a fresh pass. This keeps the signal while reducing stale one-off issue noise.

shanselman avatar May 18 '26 00:05 shanselman