signafAIde
Documentation menu

Tool rules

What an agent is shown of a tool can instruct the model: "ignore previous instructions", "you must always call this tool first", "do not tell the user". The tool rules read every tool's description, title and schema wording before the agent is shown it or calls it. They are plain rules, the same file in both SDKs (tool-rules.json), so every machine gives the same answer. No model reads the tool and no text leaves your machine: a record keeps only what was found, as codes, and the tool's fingerprints.

What they look for #

rulefinds
override-instructionstext that tells the model to ignore or replace its instructions
role-claimtext that pretends to be a system, developer or assistant message
fake-tool-resulta fake tool result or message block
model-addresstext addressed to the model
call-coerciontext that tells the model to always call this tool, or how to call others
secrecytext that tells the model to keep something from the user
exfiltrationrequests for secrets, or for data to be sent elsewhere
zero-width, bidi-control, tag-charactersinvisible characters, and characters that reorder the text shown
mixed-scriptsa word that mixes Latin letters with look-alike letters of other scripts
hidden-markup, whitespace-paddingcomments, hidden markup, and padding that pushes text out of view
encoded-bloba long base64 blob
web-address, email-addressa web or email address
long-description, repeated-texta description over 4,000 characters, or the same text many times
added-instructiona sentence that instructs the model, added since this machine approved the tool

Each rule has cases it must flag and cases it must not, and a set of ordinary tool descriptions that no rule may flag; both SDKs run them in their tests.

A flagged tool #

A finding blocks in enforce mode: a protected tool is withheld from the agent's tool list at the gateway and its calls are refused. The error names each rule and its reason. In the console, Tools, Held calls, Flagged tools lists them by code; read the definition on your own machine. Approve this definition publishes it as reviewed in the rule set, and the tool is shown and called again. Any change to its description or schema flags it again until a person reviews the new one.