A gRPC server that provides chat functionality using Google's Gemini API with session-based context management
This server exposes a single tool 'SendMessage' with a gRPC transport that is NOT MCP-compliant. The tool has a basic description and input schema visible in the protobuf definitions, but critical gaps exist: (1) The tool name 'SendMessage' lacks a clear action verb prefix (should be 'send_message' following MCP conventions); (2) Input parameters lack descriptions, 'session_id' and 'user_input' are defined in the protobuf but have no explanatory text for the LLM; (3) Output schema is not documented, the response includes 'reply' and 'context' fields but no schema definition is provided to the MCP client; (4) No error handling guidance, the code catches exceptions and returns '[Gemini Error: ...]' but provides no recovery instructions; (5) No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite the tool modifying session state. The server is fundamentally a gRPC service, not an MCP server, and does not implement the MCP protocol at all.
Sends a user message within a session and receives an AI-generated reply with updated context
Tool name 'SendMessage' violates MCP naming conventions. Should be 'send_message' (lowercase, snake_case, verb_noun pattern). LLMs expect action verbs at the start.
Input parameters 'session_id' and 'user_input' lack descriptions. LLMs cannot infer parameter meaning from names alone. Each parameter must have a non-empty description explaining what it controls.
Output schema is not documented. The response includes 'reply' (string) and 'context' (array of strings) but no formal schema definition is provided to guide LLM reasoning about the response structure.
Error handling provides no recovery guidance. When Gemini API fails, the tool returns '[Gemini Error: ...]' with no actionable next steps. Errors should tell the LLM what to do: retry, ask the user, or escalate.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 25 | 2026-07-28+ | v2 |
No tool annotations. The tool modifies session state (updates context) but lacks destructiveHint or idempotentHint annotations. LLMs need to know if the tool is safe to retry.