Borrowing it
Nothing to install: this file belongs to lewing/helix.mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lewing/helix.mcp/main/.squad/skills/mcp-strict-param-rejection/SKILL.mdgit clone --depth 1 https://github.com/lewing/helix.mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lewing/helix.mcp/mcp-strict-param-rejection)<a href="https://agentmods.dev/skills/lewing/helix.mcp/mcp-strict-param-rejection"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-strict-param-rejection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lewing/helix.mcp/mcp-strict-param-rejection"><img src="https://agentmods.dev/badge/skills/lewing/helix.mcp/mcp-strict-param-rejection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.01778 |
| Opus 5 | $0.00019 | $0.00889 |
| Sonnet 5 | $0.00008 | $0.00356 |
| Haiku 4.5 | $0.00004 | $0.00178 |
Grade A, and why
mcp-strict-param-rejection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Context
Use when adding strict unknown-parameter rejection so callers receive a structured McpException instead of silent data loss when they pass a hallucinated or misspelled parameter name.
Two complementary layers — deploy both for best UX + safety:
- Stage A — SDK-level
UnmappedMemberHandling.Disallow(stopgap; no hints) - Stage B —
AddUnknownParameterFilterCallToolFilter (polished UX with "did you mean" hints)
Stage A — SDK Strict Rejection (Stopgap)
SDK Mechanism
Microsoft.Extensions.AI.Abstractions 10.5.2 (shipped with MCP 1.3.0+) includes a strict check in ReflectionAIFunction.InvokeCoreAsync:
if (SerializerOptions.UnmappedMemberHandling == Disallow && !HasCustomParameterBinding)
throw ArgumentException(paramName: "arguments",
message: "The arguments dictionary contains an unexpected key 'X' that does not correspond to any parameter of 'Y'.");
HasCustomParameterBinding is true only when a tool parameter has a non-null BindParameter callback (DI injection). Plain value-type and string params have HasCustomParameterBinding = false → strict check fires.
How to Enable
Pass a JsonSerializerOptions with UnmappedMemberHandling = Disallow and TypeInfoResolver = new DefaultJsonTypeInfoResolver() to WithToolsFromAssembly:
using System.Text.Json.Serialization.Metadata;
.WithToolsFromAssembly(typeof(MyTools).Assembly, new JsonSerializerOptions
{
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
TypeInfoResolver = new DefaultJsonTypeInfoResolver(), // ← required companion; see below
})
Apply to both HTTP and stdio transport registrations if both are used.
Why TypeInfoResolver is required
AIFunctionFactory.GetOrCreate (in Microsoft.Extensions.AI.Abstractions) calls MakeReadOnly() on the passed JsonSerializerOptions before the tool descriptor is constructed. The constructor then calls AIJsonUtilities.CreateFunctionJsonSchema → CreateJsonSchemaCore, which contains:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 161 lines · 39 tokens per session scan A 37401825178e
mcp-strict-param-rejection is a skill published in the GitHub repository lewing/helix.mcp (4 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,778 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
diagrams
Mermaid diagrams following the C4 model: context, container, component, sequence, ER and deployment. Use when saying "diagram", "visualize", or "architecture diagram".
e2e
Generate and run Playwright E2E tests traced to spec.md acceptance criteria, with an optional accessibility audit. Use when saying "e2e tests" or "a11y audit".
release-expert
Multi-repo release coordination: version alignment, RC lifecycle, release waves, rollback planning. Use when saying "release", "version alignment", or "cut an RC".
tdd-cycle
Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".
debug
Systematic 4-phase debugging with escalation protocol. Use when saying "debug", "investigate bug", "find root cause", "why is this failing", or "fix this bug".
increment
Plan a unit of work as a SpecWeave increment - spec.md with Problem, Scope, numbered ACs and an Approach, plus tasks.md. Use when starting a feature, bug, hotfix or refactor.