A Next.js web application for the GBLIN Protocol - an autonomous central bank on Base blockchain. Provides dashboard, trading, rebalancing, and vault management interfaces.
This is a Next.js web application exposing 6 HTTP endpoints as MCP tools. Tool definitions are inferred from route handlers rather than explicitly registered via MCP SDK. Naming follows REST conventions (GET /api/...) but lacks action verbs (get_, list_, etc.). Descriptions are present but generic, most lack context on WHEN to use the tool or what downstream actions it enables. Input schemas are partially visible for 2 tools; 4 tools have no visible schema definitions. Output schemas are undocumented. No error handling guidance. Security concerns: POST /api/aureus/auth accepts a password parameter (should use server-side injection). Overall, this reads as a web API retrofitted as MCP tools rather than purpose-built agent tools.
Counters of the x402 payments received by the fee wallet, for the AI Agents section. Returns cumulative paid calls, unique agents, and USDC earned, split between organic (external) and internal (operator) wallets.
Public read-only stats for the Aureus agent. Retrieves agent statistics JSON from Upstash Redis under the key 'aureus:stats'.
GBLIN transaction history for a single address. Returns transactions and ERC-20 transfers for the specified address on the GBLIN contract.
Recent activity of the GBLIN contract. Returns transactions that touch the contract and the ERC-20 transfers they produce. Backs the recent-transactions table and keeper leaderboard.
Auction watch endpoint. Reports the state of the vault's Dutch auction for rebalancing. The vault opens an auction when a row drifts past the opening band. This endpoint only reports state; it does not execute transactions.
Authentication endpoint for the Aureus agent. Validates password and sets an HTTP-only session cookie.
No action verbs in tool names. Names like 'GET /api/agent-stats' follow REST conventions but not MCP naming patterns. Should be 'get_agent_stats', 'get_aureus_stats', etc. LLMs infer intent from verb_noun patterns.
POST /api/aureus/auth exposes 'password' as a tool parameter. Credentials must never be tool parameters, use server-side secret injection via environment variables. Agent traces log all parameters, leaking secrets.
Output schemas are not documented for any tool. LLMs cannot plan downstream calls or extract required fields without knowing response structure. E.g., does get_agent_stats return {paid_calls, unique_agents, usdc_earned} or a different shape?
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 38 | 2026-07-28+ | v2 |
Input schemas missing or not visible for 4 of 6 tools (agent-stats, aureus, cron/rebalance). Without schemas, LLMs cannot validate inputs or understand parameter constraints.
Descriptions lack WHEN-to-use context and downstream dependencies. E.g., 'Counters of x402 payments' does not explain when an agent should call this vs other stats tools, or what it enables next.