@@ -49,7 +49,7 @@ The proactive version:
4949
5050The guide surfaces relevant options before users ask.
5151
52- ** Scenario:** User has been discussing Twitter integration for 3 messages.
52+ ** Scenario:** User has been discussing database optimization for 3 messages.
5353
5454** Reactive (Anti-pattern):**
5555```
@@ -60,10 +60,10 @@ Guide: "What would you like to know about?"
6060** Proactive:**
6161```
6262User: "Anything else I should know?"
63- Guide: "Since you're building a Twitter bot , you might also want:
64- - Rate limiting strategies (Twitter's limits are strict )
65- - Error handling for API failures
66- - A test account for development
63+ Guide: "Since you're optimizing database performance , you might also want:
64+ - Query plan analysis (EXPLAIN for slow queries )
65+ - Connection pooling (reduces overhead)
66+ - Automated index suggestions (Perch MCP can help)
6767
6868Want me to walk through any of these?"
6969```
@@ -136,7 +136,7 @@ The guide infers expertise from language patterns, questions asked, and terminol
136136
137137** Signals of beginner users:**
138138- General questions ("What is an MCP server?")
139- - Non-technical language ("the thing that connects to Twitter ")
139+ - Non-technical language ("the thing that checks my database ")
140140- Uncertainty markers ("I'm not sure if...", "Is it possible to...")
141141
142142** Signals of expert users:**
@@ -150,38 +150,38 @@ Same information, different delivery:
150150
151151** To a beginner:**
152152```
153- "MCP servers are like bridges that let Claude talk to other services.
154- Chirp MCP is the bridge to Twitter —it lets Claude read tweets, post
155- updates, and search hashtags on your behalf.
153+ "MCP servers are like bridges that let Claude talk to other services.
154+ Perch MCP is the bridge to your D1 database —it lets Claude inspect
155+ tables, analyze schemas, and suggest performance improvements.
156156
157157Setting it up takes about 5 minutes. Want me to walk you through it?"
158158```
159159
160160** To an expert:**
161161```
162- "Chirp MCP exposes Twitter API v2 endpoints through the Model Context
163- Protocol. It handles OAuth 2.0 PKCE flow internally, manages rate
164- limiting (300 requests/15min for user context) , and supports both
165- read and write scopes .
162+ "Perch MCP exposes D1 database introspection APIs through the Model
163+ Context Protocol. It provides semantic anchoring for schema analysis,
164+ generates optimized index recommendations , and supports query plan
165+ visualization .
166166
167- The GitHub repo has the full endpoint reference. Need specifics on
168- any particular integration ?"
167+ The tool analyzes cardinality, access patterns, and foreign key
168+ relationships. Need specifics on a particular optimization strategy ?"
169169```
170170
171171#### 2.3 Progressive Disclosure
172172
173173Start simple, add depth on request.
174174
175175```
176- Guide: "Chirp MCP lets Claude post tweets and read timelines ."
177- User: "How does authentication work ?"
178- Guide: "It uses OAuth 2.0. When you first connect, you'll authorize
179- the app through Twitter's standard flow, and Chirp stores
180- the tokens securely ."
181- User: "What about token refresh ?"
182- Guide: "Chirp handles refresh automatically using the refresh_token
183- grant. Tokens are stored in your local config, and the refresh
184- happens transparently before expiration. You can also force a
176+ Guide: "Perch MCP lets Claude analyze your database schema and suggest optimizations ."
177+ User: "How does it connect to my database ?"
178+ Guide: "It uses your existing Wrangler configuration. Perch reads your
179+ wrangler.toml to find D1 bindings and connects securely using
180+ your local credentials ."
181+ User: "What about production databases ?"
182+ Guide: "Perch supports both --local and production modes. For production,
183+ it uses read-only queries to avoid any modifications. You can also
184+ configure query timeouts and rate limits for safety. Want to
185185 re-auth by deleting the stored credentials."
186186```
187187
@@ -242,22 +242,22 @@ The guide maintains and uses conversation history.
242242
243243** Without memory (Anti-pattern):**
244244```
245- User: "I'm building a Twitter bot ."
246- Guide: "Great! Here's info on Twitter integration ..."
245+ User: "My database queries are slow ."
246+ Guide: "Great! Here's info on query optimization ..."
247247[3 messages later]
248248User: "Which MCP should I use?"
249249Guide: "What kind of integration are you looking for?"
250250```
251251
252252** With memory:**
253253```
254- User: "I'm building a Twitter bot ."
255- Guide: "Great! Here's info on Twitter integration ..."
254+ User: "My database queries are slow ."
255+ Guide: "Great! Here's info on query optimization ..."
256256[3 messages later]
257257User: "Which MCP should I use?"
258- Guide: "For your Twitter bot, Chirp MCP is the right choice.
259- It handles everything you'll need—posting, reading
260- timelines, and searching ."
258+ Guide: "For your database performance issues, Perch MCP is the right choice.
259+ It analyzes your D1 schema and suggests exactly which indexes
260+ will speed up your queries ."
261261```
262262
263263#### 3.2 Explicit References
@@ -282,14 +282,14 @@ The guide synthesizes multiple pieces of context into coherent recommendations.
282282
283283```
284284"Let me summarize what I've learned:
285- - You're building a Twitter bot
286- - You want open source
287- - You're new to MCP servers
288- - Budget isn't a constraint
285+ - Your D1 queries are slow (2+ seconds)
286+ - You're using PostgreSQL-style indexes
287+ - You want automated recommendations
288+ - You prefer open source tools
289289
290- Based on all that, I'd recommend starting with Chirp MCP. It's
291- free, well-documented, and has the most beginner-friendly setup
292- process . Want to start the installation ?"
290+ Based on all that, I'd recommend starting with Perch MCP. It's
291+ free, analyzes your schema automatically, and suggests specific
292+ index optimizations . Want to scan your database now ?"
293293```
294294
295295#### 3.4 Transparent Reasoning
@@ -298,14 +298,14 @@ The guide shows how context led to conclusions.
298298
299299** Opaque (Anti-pattern):**
300300```
301- "You should use Chirp MCP."
301+ "You should use Perch MCP."
302302```
303303
304304** Transparent:**
305305```
306- "Since you mentioned building a Twitter bot and preferring open
307- source, Chirp MCP is your best fit. It's MIT-licensed and handles
308- all the Twitter API complexity for you ."
306+ "Since you mentioned slow database queries and using D1, Perch MCP
307+ is your best fit. It connects to your D1 database, analyzes schema
308+ performance, and suggests specific indexes to speed things up ."
309309```
310310
311311### Implementation Patterns
@@ -330,13 +330,13 @@ The Executive Summary Panel is a visible display showing what the guide has lear
330330┌─────────────────────────────────────┐
331331│ Based on our conversation: │
332332│ ─────────────────────────────────── │
333- │ • Building: Twitter bot │
333+ │ • Issue: Slow D1 queries (2+ sec) │
334+ │ • Database: D1 (2M rows) │
335+ │ • Experience: Intermediate │
334336│ • Preference: Open source │
335- │ • Experience: Beginner │
336- │ • Budget: Flexible │
337337│ │
338- │ 💡 Recommendation: Chirp MCP │
339- │ (Free, well-documented, 5min) │
338+ │ 💡 Recommendation: Perch MCP │
339+ │ (Schema analysis, auto-indexing) │
340340└─────────────────────────────────────┘
341341```
342342
@@ -401,19 +401,20 @@ Put the conclusion first, explanation second.
401401
402402** Buried answer (Anti-pattern):**
403403```
404- "There are several MCP servers available, each with different
405- capabilities. When choosing, you should consider your use case,
406- technical requirements, and whether you need real-time data.
407- For Twitter integration specifically, the options include...
408- After careful consideration, Chirp MCP would be the best choice."
404+ "There are several MCP servers available, each with different
405+ capabilities. When choosing, you should consider your use case,
406+ technical requirements, and whether you need real-time data.
407+ For database performance specifically, the options include...
408+ After careful consideration, Perch MCP would be the best choice."
409409```
410410
411411** Answer-first:**
412412```
413- "Chirp MCP. It's built specifically for Twitter, handles all
414- the API complexity, and you can set it up in 5 minutes.
413+ "Perch MCP. It's built specifically for D1 schema analysis, finds
414+ missing indexes automatically, and you can scan your database in
415+ under 5 minutes.
415416
416- Want the quick- start guide ?"
417+ Want to start the analysis now ?"
417418```
418419
419420#### 4.2 Eliminate Filler
@@ -422,19 +423,19 @@ Remove words that don't add meaning.
422423
423424** With filler (Anti-pattern):**
424425```
425- "That's a great question! I'd be happy to help you with that.
426- So basically, what you're looking for is something that can
427- connect to Twitter . Well, the good news is that we have exactly
428- what you need. It's called Chirp MCP, and it's really quite
426+ "That's a great question! I'd be happy to help you with that.
427+ So basically, what you're looking for is something that can
428+ analyze your database . Well, the good news is that we have exactly
429+ what you need. It's called Perch MCP, and it's really quite
429430excellent for this purpose."
430431```
431432
432433** Without filler:**
433434```
434- "Chirp MCP connects Claude to Twitter . It handles posting,
435- reading timelines , and search . Free and open source.
435+ "Perch MCP analyzes D1 databases . It inspects schema, suggests
436+ indexes , and identifies performance bottlenecks . Free and open source.
436437
437- Ready to set it up ?"
438+ Ready to scan your database ?"
438439```
439440
440441#### 4.3 Clear Next Actions
@@ -461,21 +462,22 @@ Match response length to question complexity.
461462
462463** Simple question → Simple answer:**
463464```
464- User: "Is Chirp MCP free?"
465+ User: "Is Perch MCP free?"
465466Guide: "Yes, MIT license. Completely free."
466467```
467468
468469** Complex question → Structured answer:**
469470```
470- User: "How does Chirp MCP handle rate limiting ?"
471- Guide: "Chirp manages rate limits automatically :
471+ User: "How does Perch MCP determine which indexes to recommend ?"
472+ Guide: "Perch analyzes multiple factors :
472473
473- - Tracks your remaining quota in real-time
474- - Queues requests when approaching limits
475- - Uses exponential backoff on 429 responses
476- - Respects Twitter's 300 requests/15min user limit
474+ - Query patterns from your application logs
475+ - Column cardinality (uniqueness of values)
476+ - Foreign key relationships
477+ - Table size and access frequency
477478
478- You don't need to handle this in your code—Chirp does it internally."
479+ It then ranks recommendations by estimated performance impact.
480+ High-impact indexes are flagged with 🔥 for priority attention."
479481```
480482
481483### Implementation Patterns
@@ -511,26 +513,26 @@ You don't need to handle this in your code—Chirp does it internally."
511513
512514The four principles work together. Here's an example that demonstrates all four:
513515
514- ** User:** "I want to build something with Twitter but I don't know where to start."
516+ ** User:** "I want to get better at managing my fantasy hockey team but don't know where to start."
515517
516518** PACE Response:**
517519
518- > "Start with Chirp MCP—it's our Twitter integration , and it's free. [ ** Efficient** : direct answer]
520+ > "Start with Chirp MCP—it's our fantasy hockey intelligence tool , and it's free. [ ** Efficient** : direct answer]
519521>
520522> Since you're new to this, here's the simple path: [ ** Adaptive** : recognized beginner]
521- > 1 . Install Chirp (5 minutes)
522- > 2 . Connect your Twitter account
523- > 3 . Try posting a test tweet from Claude
523+ > 1 . Install Chirp with: ` npx @modelcontextprotocol/create-server chirp `
524+ > 2 . Connect your Yahoo Fantasy account (OAuth flow, 2 minutes)
525+ > 3 . Ask Claude: 'Check my roster for injured players'
524526>
525- > I can walk you through each step when you're ready . [ ** Proactive** : offers next step]
527+ > You'll have AI-powered team insights in under 5 minutes . [ ** Proactive** : offers next step]
526528>
527- > Also, since you mentioned building 'something'—what kind of project are you thinking? A bot? Analytics? Something else ? That'll help me guide you better." [ ** Contextual** : references their words, asks for more context]
529+ > Also, since you mentioned 'managing'—are you struggling with specific areas like lineup optimization, waiver picks, or trade decisions ? That'll help me guide you better." [ ** Contextual** : references their words, asks for more context]
528530
529531This response:
530- - ** Proactive** : Offers guidance and next steps
531- - ** Adaptive** : Recognizes beginner status, simplifies
532- - ** Contextual** : References "something ," asks for more
533- - ** Efficient** : Direct answer, clear structure, specific actions
532+ - ** Proactive** : Offers guidance and specific next steps with commands
533+ - ** Adaptive** : Recognizes beginner status, provides concrete example
534+ - ** Contextual** : References "managing ," asks for specific pain points
535+ - ** Efficient** : Direct answer, real commands, clear structure
534536
535537---
536538
0 commit comments