A FastAPI-based HTTP server for querying transaction status, fetching logs from external APIs, analyzing them with Gemini AI, and retrieving database information about orders and matched swaps.
This server has critical definition gaps. Tool descriptions are present but lack actionable detail for LLM selection. Input schemas are visible in the code but lack proper JSON Schema structure with type definitions and constraints. Parameters are documented but many lack descriptions or type info. No output schemas are documented. Error handling is minimal, responses return generic error strings without recovery guidance. The server is not registered as an MCP server; it's a FastAPI HTTP service without MCP protocol compliance. Tool names are reasonable (verb_noun pattern) but descriptions are verbose narrative summaries rather than concise, LLM-optimized guidance.
Uses Gemini AI to determine if a specific create_id was created based on EVM relay logs. Returns boolean indicating presence of create_id in logs.
Analyzes logs using Google Gemini AI to provide a detailed narrative summary of transaction progress. Filters unique logs for specific containers (staging-cobi-v2, stage-bit-ponder) and applies chain-specific interpretation rules.
Queries the matched order API endpoint to retrieve matched order information for a given create_id.
Queries the PostgreSQL database to retrieve create_orders record by create_id or initiator_source_address, returning order details including chains, timestamp, and secret hash.
Fetches logs from a specified container using regex pattern matching for multiple identifiers (create_id, source_swap_id, destination_swap_id, secret_hash). Implements pagination with configurable limits and handles rate limiting.
No MCP protocol implementation. Server is a plain FastAPI HTTP service, not an MCP server. No tool registration via MCP, no _meta handling, no stateless request/response envelope.
Output schemas not documented. No tool returns a documented schema, LLMs cannot predict response structure or plan downstream calls. Responses are ad-hoc dictionaries.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 31 | <=2025-11-25 | v2 |
Queries the PostgreSQL database to retrieve source_swap_id and destination_swap_id from matched_orders table using create_order_id.
Filters and deduplicates logs for staging-cobi-v2 or stage-bit-ponder containers. Keeps the most recent JSON log based on timestamp for duplicates and one instance of each non-JSON log.
Retrieves transaction status by querying database for order information, fetching matched order IDs, retrieving logs from multiple containers (EVM relay, Bit Ponder, Cobi V2, Starknet, Solana), analyzing logs with Gemini AI, and checking matched order API.
Descriptions are verbose narrative summaries (100+ chars) rather than concise LLM-optimized guidance. E.g., 'Retrieves transaction status by querying database for order information, fetching matched order IDs, retrieving logs from multiple containers...' buries the core action. Should be: 'Get transaction status and logs for a create_id or address.'
Input schemas lack proper JSON Schema structure. Parameters have type and description in the spec, but no constraints (enums, min/max, patterns). E.g., 'container' accepts free-form strings instead of an enum of valid container names.
Error handling returns generic error strings without recovery guidance. E.g., 'Server error: <str(e)>' tells the LLM nothing about what went wrong or what to try next. Should categorize errors (retryable, user-fixable, fatal) and suggest next steps.