Skip to main content
Glama

arsenal_learn

Records tool failures and successes with repo, task, and fix details so future selections avoid broken packages and recommend verified alternatives.

Instructions

Adaptive Mistake Learning: Teach FAZAH AI Arsenal about a tool failure or success on this machine so future tool selections automatically avoid broken packages and recommend verified alternatives.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>",
      "task": "<task>",
      "outcome": "<outcome>"
    },
    "name": "arsenal_learn"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
repoYesowner/repo that failed or succeeded
taskYesThe task you were attempting
outcomeYes
learned_fixNoSolution, workaround, or prerequisite
error_reasonNoSpecific failure or error trace
alternative_repoNoWorking replacement repo (owner/repo)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.5.1

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: this writes persistent, machine-local state that alters future tool selection. It does not say whether entries are overwritten or appended, whether the learning is scoped per-user or global, or how conflicts between a recorded failure and a later success are resolved.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that puts the mechanism ('Teach ... about a tool failure or success') ahead of the benefit. The 'Adaptive Mistake Learning: Teach FAZAH AI Arsenal' framing is brand padding that could be dropped without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter persistent-learning tool with no annotations and no output schema, the description explains the purpose but not the mechanics an agent needs: what happens on repeated learns for the same repo, whether a success overwrites a prior failure, and whether anything is returned to confirm the record was stored.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 71%, so most fields are already documented in the schema and the baseline applies. The description only loosely gestures at parameters ('tool failure or success' maps to outcome, 'broken packages' and 'verified alternatives' hint at error_reason and alternative_repo) but never explains why repo and task are required together or how note differs from learned_fix.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action: record a tool failure or success for a repo/task so future tool selections avoid broken packages and surface verified alternatives. That is concrete enough to distinguish it from inspection siblings like arsenal_inspect_repo or arsenal_audit_repo, though it never explicitly names which sibling it complements or supersedes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent learns this is called after experiencing a failure or success 'on this machine', with the stated payoff of influencing future recommendations. There is no explicit when-not guidance, no prerequisite (e.g., must a scan have run first), and no routing against arsenal_memory or arsenal_bookmark, which plausibly overlap with recording findings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.