Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
This server exhibits mediocre definition quality with inconsistent schema completeness and descriptions that lack strategic depth. Tool naming follows verb_noun patterns (good), but parameter documentation is sparse and output schemas are largely absent. Error handling returns JSON success/failure patterns without actionable guidance. Descriptions are present but generic, averaging ~60 chars where production baselines expect 150-200 chars with WHEN-to-use context. 5 of 16 tools are marked deprecated, creating redundancy. Schema validation is present (enums, type declarations) but descriptions of constraints are missing from parameter annotations. No output schema documentation is visible across any tool, violating the requirement that LLMs know what fields to expect downstream.
Deprecated tools still exposed in public API. build_bazi_from_lunar_datetime and build_bazi_from_solar_datetime are marked deprecated but remain callable. LLMs may select them instead of the canonical get_bazi_detail, creating confusion and tech debt.
Output schemas completely undocumented. No tool declares what fields its response contains, their types, or structure. LLMs cannot plan downstream tool chaining or know what data to extract. Violates baseline: '100% of A+ tools have documented return types.'
Remove or hide build_bazi_from_lunar_datetime and build_bazi_from_solar_datetime. Deprecated tools confuse LLMs. If migration is necessary, use a feature flag to hide them from MCP tool registration.
Document output schema for every tool. Create a JSON response example or a prose description for each tool's response, including all top-level fields, types, and what downstream tools expect. Example: 'get_bazi_detail returns {success: boolean, data: {bazi_string, ganZhi: {...}}}, which is required by get_solar_times(bazi: string).'
Expand tool descriptions to 100-200 chars with WHAT/WHEN/WHY. Example for get_events_by_date: 'Retrieve calendar events within a date range (today, tomorrow, this week, this month, or custom range). Use this to find existing events before creating, updating, or checking for conflicts. Returns list of events with IDs for downstream updates/deletions.'
Replace example values in parameter descriptions with formal constraints. Change 'Date type: \'today\', \'tomorrow\', \'week\', \'month\'' to enum declaration: {type: string, enum: [today, tomorrow, week, month]}. This is machine-parseable and prevents LLM literal-value reuse.
Add explicit min/max to numeric parameters. For volume: {type: integer, minimum: 0, maximum: 100}. For reminder_minutes: {type: integer, minimum: 1, maximum: 1440}. For delay: {type: integer, minimum: 1, maximum: 3600}.
Implement dry-run confirmation for delete_event and delete_events_batch. Add optional 'dry_run: boolean' parameter (default false). When true, return a preview of what would be deleted without executing. Baseline: 'Irreversible operations should support dry-run or confirmation.'
Sparse parameter descriptions. Most parameters have descriptions but lack constraint details. Example: 'date_type' param in get_events_by_date says "Date type: 'today', 'tomorrow', 'week', 'month'" but examples should be replaced with enum constraint. Parameter descriptions average ~35 chars vs baseline 72 chars.
Tool descriptions lack WHEN-to-use guidance. Descriptions are purely functional (what) but omit when to call this tool vs alternatives or what problem it solves. Baseline: descriptions should be 150-200 chars with WHAT/WHEN/PREREQUISITES. Average here: ~60 chars.
Destructive operations lack confirmation/dry-run pattern. delete_event and delete_events_batch (marked DESTRUCTIVE) offer no confirmation mechanism. Agents may accidentally delete calendars. Baseline: 'Irreversible operations should support dry-run or confirmation step.'
Error responses are generic JSON success/failure patterns. No actionable guidance. Example: 'solar_datetime和lunar_datetime必须传且只传其中一个' (both must pass exactly one). LLMs get no hint on what to do next: should they retry? Call a discovery tool? Baseline: 'Error responses must tell LLM what to do next.'
start_countdown_timer expects 'command' parameter as 'MCP tool call command (JSON format with name and arguments)'. This is an opaque serialized JSON string, not a tool reference. LLMs cannot reliably serialize nested MCP commands into a JSON string, this invites parse failures and command injection risk.
Calendar tool does not return event_id in create_event or get_events_by_date responses (visible schema). If responses lack event_id, agents cannot chain to update_event or delete_event. Baseline: 'Tool A output must contain IDs that Tool B needs.'
create_eventget_events_by_date
Enhance error messages with actionable guidance. Instead of 'solar_datetime和lunar_datetime必须传且只传其中一个', return '{success: false, message: \'Provide exactly one of solar_datetime or lunar_datetime\', hint: \'If you have a lunar date, use lunar_datetime; for Gregorian calendar, use solar_datetime. See get_chinese_calendar() to convert.\'}'
Refactor start_countdown_timer to accept structured tool reference instead of JSON string. Change 'command: string (JSON)' to a structured object: {tool_name: string, tool_args: object}. This prevents serialization errors and is safer for injection attacks.
Ensure create_event and get_events_by_date return event_id in all responses. If responses are wrapped in {success, data}, ensure data includes event_id so agents can immediately call update_event(event_id=...) without a lookup.
Add missing parameter descriptions. Tools like get_categories and get_volume should document that inputs are read-only and have no parameters (or empty object). Clarify in description: 'This endpoint takes no parameters and returns all available categories.'
Specify idempotency guarantees. Is create_event idempotent if called twice with same title/time? Is update_event safe to retry? Document this so agents know when to retry vs when to fail-fast. Baseline: 'Make tools produce same result on repeated calls with same input.'