Skip to content

Cut the ~15k-token tool surface: server instructions, opt-in toolsets, and consolidating overlapping tools #214

Closed

Description

@TMHSDigital

Why it matters

Every session pays for the whole tool list before the agent does anything, and tool-selection accuracy drops as near-duplicate tools pile up. For many users, screencast-mcp is one server among several.

Evidence

  • A live tools/list is 41 tools and 58,260 bytes, about 14.6k tokens. pipeline alone is 7.2 KB because it repeats the schemas of 8 standalone tools. start_recording is 3.2 KB.
  • new McpServer(...) (src/index.ts:68) sets no instructions, so the intended record → sample → edit loop is not described anywhere on the wire.
  • Overlapping tools:
    • trim vs clip
    • convert (gif) vs export_gif
    • compress vs convert mp4 vs export_preset
  • Inconsistent parameters:
    • callout uses from/to; every other tool uses start/end.
    • quality exists only on pipeline and start_recording.
    • convert width accepts non-integers, and its fps/width are silently ignored for mp4/webm. export_gif takes an integer width of 64–1920.
  • The server already declares tools.listChanged: true, so dynamic toolsets are cheap to add.

Suggested approach

  1. Add server instructions (the core loop, which tool to use when, and a sensitivity note).
  2. Add SCREENCAST_TOOLSETS (for example capture,watch,edit,produce,audio), defaulting to all. Optionally add an enable_toolset tool that uses listChanged.
  3. Consolidate or alias the overlaps above in the next minor release, keeping old names as deprecated aliases for one cycle.
  4. Normalize the parameter names and units, and trim the descriptions. Then measure the token count again with a CI budget check.

Done when

  • Instructions are present.
  • Toolsets are documented.
  • The default surface is measurably smaller, and a CI check fails if it grows past a set budget.

Activity

  1. added
    enhancement
    effort: medium
    impact: high
    dx
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxeffort: mediumenhancementimpact: highpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions