Showing the last saved plugin snapshot.

← Leaderboard / Other / Plugin
Last repository activity November 11, 2026 · Created November 10, 2026

bushizhanghan/dsh-arg-guard

“Validates every tool call against that tool's own parameters schema before it runs, and denies with the exact path and…”

Star rank
#5904
declared plugin rank
In Other
#1264
category rank
Stars
1
GitHub repository
Forks
0
GitHub repository
Watchers
0
GitHub subscribers
Open on GitHub ↗
TL;DR

Validates every tool call against that tool's own parameters schema before it runs, and denies with the exact path and type. The host renders a tool's parameters into the prompt but never checks a call against them, so a wrong-typed value reaches the tool body: a number lands in path.join and the caller gets a raw TypeError instead of an answer. This plugin hooks tools/pre-execute, resolves the definition, and returns a deny whose reason reads "demo_tool.dir: expected string, got number (123)". Covers primitive types and unions, required, enum/const, nested properties, array items, additionalProperties:false, and oneOf/anyOf/allOf. Fails open on purpose: an internal error, an unknown tool, or a schema construct it cannot read allows the call. mode deny or warn, plus a skip list. Two read-only tools, arg_guard_status and arg_guard_check.

30 days of GitHub stars
+0 stars
+0% observed change
Oct 14Oct 28Nov 12