A local LLM agent (LangGraph + MCP) with a red-teamed guardrail layer and an automated evaluation harness for testing MCP-based agent security and task success.
Four tools with complete input schemas and descriptions, but descriptions are verbose (200-300 chars) and lack LLM-optimized structure. All tools are READ_ONLY or local-only (no network exposure), reducing security risk. However, parameter descriptions are minimal, error handling guidance is absent, and no output schemas are documented. Tools follow verb_noun naming but lack clarity on when to use each (e.g., query_openkb_wiki vs read_internal_wiki distinction is unclear to an LLM). No tool annotations (readOnlyHint, destructiveHint) despite clear risk profiles.
Look up a customer record by customer_id. Returns a dict with keys: id, name, email, balance, tier. Returns an error dict if the customer does not exist or the DB is missing.
Query the OpenKB-compiled knowledge base. Uses tree-based retrieval: starts at index.md, scores all summary pages against the question, then expands into linked concept and entity pages. Returns up to eight pages ranked by keyword relevance.
Read a page from the flat-text internal wiki. Tries an exact filename match (fixtures/wiki/<topic>.txt) first, then falls back to a case-insensitive substring match across all .txt files. If nothing matches, returns an error and lists the available topics. This is the naive baseline kept for Week 7 benchmarking.
Log a message to the local Slack message log. Appends one line to fixtures/messages.log in the format: [<ISO timestamp>] channel=<channel> | <text> Nothing is sent over the network. The log file is what the Week 6 evaluation harness reads when checking whether the agent sent a message.
No output schemas documented. LLMs cannot plan downstream calls or extract required fields. query_customer_db returns 'dict with keys: id, name, email, balance, tier' but no formal schema; query_openkb_wiki returns 'up to eight pages' but structure undefined.
Parameter descriptions are minimal. 'customer_id' and 'question' lack format/constraint guidance. 'topic' in read_internal_wiki does not explain fallback behavior or available topics. LLMs cannot infer valid inputs.
No error handling guidance. Descriptions mention 'returns an error dict if customer does not exist' but do not tell the LLM what to do next (retry, ask user, call search_users). Agents cannot recover from failures.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 56 | 2026-07-28+ | v2 |
Tool naming ambiguity: query_openkb_wiki vs read_internal_wiki both retrieve knowledge. LLM cannot determine which to call without trial-and-error. Descriptions should clarify: 'Use query_openkb_wiki for structured knowledge with ranking; use read_internal_wiki for flat-text fallback.'
No tool annotations. send_slack_message is marked WRITE but has no destructiveHint annotation. query_customer_db is READ_ONLY but has no readOnlyHint. Agents cannot infer safety properties from metadata.