Skip to content

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

Closed

Description

@codemonkeychris

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.

Activity

  1. added
    documentation
    enhancement
    on May 14, 2026
  2. shanselman commented on May 18, 2026

    @shanselman
    Collaborator

    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.

  3. locked as resolved and limited conversation to collaborators on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationenhancement

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions