feat(mcp-proxy): improve mcp_call detail parameter documentation#41
Conversation
Make the detail parameter behavior explicit in tool description and Zod schema so LLMs understand when to use detail=true vs default. Without detail: strips metadata fields, truncates text to 500 chars, limits arrays to 5 items. With detail=true: preserves all fields, extends text to 1500 chars, returns full arrays.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughVersion bump to 1.11.0 with enhanced documentation for the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
O que muda
A description do tool
mcp_calle o schema Zod do parâmetrodetailagora explicam explicitamente o comportamento de shaping do proxy:detail(default): strip de campos de metadata (id, url, created_at, etc.), truncamento de texto em 500 chars, arrays limitados a 5 itemsdetail=true: preserva todos os campos, texto até 1500 chars, arrays completosPor que
LLMs não sabiam quando usar
detail=trueporque a description anterior era genérica ("Returns normalized, token-efficient output"). Isso causava respostas incompletas — ex: threads do Slack com 12 mensagens retornando só 5 porque campos eram stripped e dados truncados.Mudanças
server.ts: description domcp_callagora documenta o comportamento de shaping e quando usardetail=truetypes.ts: campodetailno Zod schema agora tem.describe()com explicaçãopackage.json: bump 1.10.0 → 1.11.0Summary by CodeRabbit
Release Notes