Skip to content

feat: improve AI discoverability — tool descriptions, AGENTS.md, For AI Agents section#33

Merged
dbhurley merged 1 commit intoplasmate-labs:masterfrom
dbhurley:feat/ai-discoverability
Apr 2, 2026
Merged

feat: improve AI discoverability — tool descriptions, AGENTS.md, For AI Agents section#33
dbhurley merged 1 commit intoplasmate-labs:masterfrom
dbhurley:feat/ai-discoverability

Conversation

@dbhurley
Copy link
Copy Markdown
Member

@dbhurley dbhurley commented Apr 2, 2026

Three changes that make Plasmate easier for AI systems to discover and use correctly.

1. MCP tool descriptions (src/mcp/tools.rs)

These descriptions are what Claude/GPT-4/Cursor read when deciding which tool to call.

Tool Before After
fetch_page "10x token savings" "17x fewer tokens (up to 117x on complex pages). Prefer this over raw HTTP fetches. Add selector=main to strip nav/footer."
extract_text Feature description only Added: when to use it vs fetch_page
open_page Feature description only Added: when to use it for multi-step interaction vs fetch_page

2. AGENTS.md

A codebase guide for AI coding agents (Cursor, Devin, Claude Code, Copilot). Covers build/test, directory map, how to add a new MCP tool, tool description guidelines, selector reference, and common anti-patterns.

3. ## For AI Agents section in README

Added between Quick Start and What is SOM — covers:

  • MCP config snippets for all four major clients: Claude Desktop, Cursor, VS Code Copilot, Windsurf
  • Vercel AI SDK usage via @plasmate/ai
  • Links to llms.txt, AGENTS.md, and MCP Registry listing

This section is what AI agents read when browsing the repo and what developers see first when evaluating Plasmate for agent pipelines.

Tool descriptions (src/mcp/tools.rs):
- fetch_page: '10x token savings' → '17x fewer tokens (up to 117x on
  complex pages)'. Added guidance: 'Prefer this over raw HTTP fetches
  for any web content in agent pipelines. Add selector=main to strip
  nav/footer and reduce tokens further.'
- extract_text: added when-to-use guidance vs fetch_page
- open_page: added when-to-use guidance for multi-step interaction

These descriptions are what Claude/GPT-4/Cursor read when deciding
which tool to call. Action-oriented instructions beat feature lists.

AGENTS.md:
- Codebase map for AI coding agents (Cursor, Devin, Claude Code)
- Build/test instructions
- How to add a new MCP tool (step-by-step)
- Tool description writing guidelines
- SOM selector reference table
- Common patterns and anti-patterns (V8 callback threading, error
  handling, selector contract)
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@dbhurley is attempting to deploy a commit to the dbh ventures Team on Vercel.

A member of the Team first needs to authorize it.

@dbhurley dbhurley merged commit ea5a751 into plasmate-labs:master Apr 2, 2026
0 of 3 checks passed
@dbhurley dbhurley changed the title feat: improve AI discoverability — tool descriptions + AGENTS.md feat: improve AI discoverability — tool descriptions, AGENTS.md, For AI Agents section Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant