Starter SDK for building MCP tools that require payment before they run. Provides definePaidTool + enforcePayment + runPaidTool utilities. Zero runtime dependencies.
Single tool 'get_weather' has a clear verb-noun name and basic schema, but lacks critical production-grade documentation. Description is minimal (47 chars, below 50-200 char baseline for LLM optimization). Input schema present but parameters lack individual descriptions, LLMs cannot infer what 'city' means or its constraints. No output schema documented. No error handling guidance. Tool is a library helper, not a full MCP server implementation, limiting real-world assessment.
Get current weather. Costs $0.01 per call.
Parameter 'city' lacks description and constraints. LLMs cannot infer format, length limits, or valid values. Should document: 'City name (string, 1-100 chars, e.g. Tokyo, New York).'
No output schema documented. Callers cannot predict response structure. Should document: 'Returns {content: [{type: string, text: string}]}'.
Tool description (47 chars) is below LLM-optimized baseline (50-200 chars). Lacks context on when to use, what it returns, and cost implications. Expand to: 'Fetch current weather for a city. Returns temperature and conditions. Costs $0.01 per call, requires valid payment proof.'
No error handling guidance. Payment denial returns a generic error message. Should categorize errors (missing_payment, insufficient_amount, expired) and guide recovery: 'Payment required. Ensure amountUsd >= 0.01 and expiresAt is in the future.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 47 | 2026-07-28+ | v2 |
This is a library/SDK, not a runnable MCP server. No transport layer, no tool registration with MCP protocol, no request/response handling. Starter example is standalone Node.js, not integrated into an MCP server framework.