Skip to content
Foo GuardDocs
DOCUMENTATION

AG-029

Credentials Beyond Declared Tool Needs

medium

Page text and source link for your AI assistant. Nothing is sent automatically.

When this rule triggers

A tool declares supplied credential references that are not in its required list. This is a declaration mismatch, not evidence that credentials were transmitted or used.

How to fix

Check which credentials the tool needs, then remove unused credentials from its environment. Keep the required list accurate; adding an unused credential to that list only hides the mismatch.

Example change

Supplied: [read-token, admin-token]; required: [read-token] → remove the unused admin-token binding

Verify the change

Run the intended operation with the remaining credentials, then rescan. The extra-credential finding should clear when the supplied and required lists match.

Related rules

Build confidently. Keep your agents accountable.Get help ↗
Search Foo Guard Docs