Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
The server implements 26 tools with consistent naming conventions and basic schemas. All tools start with action verbs (get_, create_, update_, delete_, search_). Descriptions are present but often brief (10-50 chars), falling below the 50-200 char optimal range for LLM-assisted selection. Input schemas are defined with type information but lack granularity (no enums, min/max constraints, or format specifications). Output schemas are undocumented, there is no visibility into what fields tools return, forcing LLMs to infer response structure. Parameter descriptions are present but minimal. The server handles both READ_ONLY and WRITE/DESTRUCTIVE operations but provides no confirmation patterns, dry-run options, or error recovery guidance for destructive operations. Risk categorization (READ_ONLY, WRITE, DESTRUCTIVE) is explicit in metadata but not reflected in descriptions or tool annotations.
Output schemas completely undocumented. No visibility into response fields, types, or structure for any of the 26 tools. LLMs cannot plan downstream tool calls or extract specific fields without trial and error.
Destructive operations (deleteGroupMember, deleteRepo, deleteDoc, deleteDocTag) have no confirmation, dry-run, or undo capability. Agents can irreversibly delete resources without validation or recovery path.
Recommendations
Document output schemas for all 26 tools. Specify response fields, their types, and meanings. Example: 'getCurrentUser returns {id: number, login: string, name: string, avatar_url: string, ...}'. This is critical for LLM planning and field extraction.
Expand tool descriptions from 15-50 chars to 50-200 chars. Include WHAT the tool does, WHEN to use it vs similar tools, and WHAT it returns. Example: 'Get the authenticated user's profile information. Use this to verify API credentials and retrieve the user ID for downstream calls. Returns user metadata: id, login, name, avatar_url, follower/following counts, and timestamps.'
Add enum constraints to all parameters accepting known values. For 'public_level', specify valid values (e.g., 0=private, 1=internal, 2=public). For 'format', specify (markdown|lake). For repository 'type', specify allowed values. This prevents hallucinated invalid inputs.
Expand parameter descriptions beyond single-word modifiers. Replace 'Optional role filter' with 'Optional role filter (0=owner, 1=member, 2=guest). Pass role number to filter members by permission level.' Include the constraint and rationale.
Add pagination guidance to all list tools. Specify: default limit (suggest 20-50), max limit (prevent token explosion), and whether next_cursor or total_count is returned. Example: 'offset: Starting position for pagination (default 0). limit: Number of items per page (default 20, max 100).'
Implement confirmation workflow for destructive operations (deleteGroupMember, deleteRepo, deleteDoc, deleteDocTag). Add a dry-run parameter (dry_run: boolean) or a separate 'confirm_delete_*' tool that requires explicit confirmation before irreversible deletion.
Parameter descriptions are consistently minimal (15-30 chars), below the 50-200 char optimal range. Descriptions like 'Optional role filter' lack context for when/why to use the parameter, forcing LLMs to guess.
No enum constraints on parameters that accept known values. 'public_level' (0 or other numeric values), 'format' (markdown vs others), 'type' (repository type filter), 'scope' (search scope) are unconstrained strings, inviting hallucinated invalid values.
No pagination details in descriptions. Tools accepting 'offset' and 'limit' parameters do not specify default limits, max page size, or total count behavior. LLMs cannot reliably paginate through large result sets.
No error handling guidance. Tool descriptions do not state what errors can occur, which are retryable, or what the LLM should do if a call fails (e.g., 'User not found, try search_users()' pattern is absent).
Tool descriptions do not state when to use one tool over a similar alternative. E.g., what distinguishes getUserDocs from getRepoDocs? When should an LLM call getUserRepos vs getGroupRepos? Ambiguity forces wasted discovery calls.
No parameter validation constraints (min/max for numeric, length/pattern for strings, required vs optional clarity). 'offset' and 'limit' accept unbounded numbers; no guidance on min=0, max=1000. LLMs can pass invalid values that cause API errors.
Add error recovery hints to all tool descriptions. For example, 'If user not found, call searchUsers() with a partial name first.' For 'If namespace invalid, call getUserRepos() to list valid namespaces.' This guides the LLM's recovery path.
Clarify tool distinctions in descriptions. State: 'getUserDocs returns all documents the authenticated user owns; getRepoDocs returns documents in a specific repository (pass namespace parameter). Use getUserDocs for user-scoped discovery, getRepoDocs for repository-scoped queries.'
Add min/max constraints and validation examples to numeric parameters. Example: 'offset: Pagination starting position (min 0, must not exceed total count). limit: Items per page (min 1, max 100, default 20).'
Add readonly/destructive hints to tool metadata. MCP supports toolAnnotations (readOnlyHint, destructiveHint). Decorate deleteGroupMember, deleteRepo, deleteDoc, deleteDocTag with destructiveHint: true to signal irreversibility.
Consider batch variants for high-frequency operations. Add addTagsToDoc(namespace, slug, tags: string[]) to tag multiple items in one call instead of repeated createDocTag calls. This reduces token overhead and latency.