AGLedger MCP Server: thin API pass-through for AI agents via MCP protocol
Three tools with mixed quality. agledger_discover and agledger_verify have clear, concise descriptions (50-80 chars) and READ_ONLY semantics. agledger_api is a generic pass-through with a broad description but lacks parameter descriptions entirely, critical gap for an LLM trying to understand what each parameter controls. All three tools have input schemas visible in the source, but parameter descriptions are missing or minimal. The server correctly avoids exposing secrets as parameters (API key injected server-side via options). Error handling is present (errorResult, credentialErrorResult functions) but not integrated into tool responses shown in the schema.
Make any AGLedger API call; the API guides you via nextSteps
Returns API health, your identity, and available scopes
Verify an audit export offline (hash chain + signatures)
agledger_api parameters lack descriptions. 'method', 'path', 'query', 'body' are defined as strings but LLMs cannot infer what values are valid, what format query/body expect (JSON object string?), or when to use each parameter.
agledger_api is a generic pass-through that violates single-responsibility principle. It accepts any HTTP method and path, making it impossible for LLMs to reason about what the tool does or when to call it vs. other tools. This is a composition anti-pattern.
agledger_verify parameter 'auditExport' and 'outOfBandKeys' are described as 'JSON as a string' but lack format guidance. LLMs cannot determine the expected structure, required fields, or validation rules without seeing examples or a schema reference.
No output schemas documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., does agledger_discover return a 'scopes' array? a 'health' status?). This forces agents to guess at response structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2025-06-18+ | v2 |
Error handling is implemented in the server (errorResult, credentialErrorResult) but not surfaced in tool definitions. LLMs see no guidance on what errors are retryable, what recovery steps to take, or how to interpret error codes.