{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "anotiawang-awesome-decision-models--check-agent-tool-calls-before-they-run",
 "repo": "AnotiaWang/awesome-decision-models",
 "repo_url": "https://github.com/AnotiaWang/awesome-decision-models",
 "repo_slug": "anotiawang-awesome-decision-models",
 "title": "Check agent tool calls before they run",
 "page_title": "How to check agent tool calls before they run with Awesome Decision Models",
 "summary": "Score a proposed tool call against your own allowed options before the agent executes it.",
 "who": "An engineer building a Strands agent who wants a fast check on each tool call, using a model that runs on a local GPU or CPU.",
 "problem": "Agents can call the wrong tool or run a risky action, and a second full model call on every step adds latency and cost.",
 "outcome": "A probability for each allowed action on each proposed tool call, so the agent can block or ask for approval on low-probability actions.",
 "steps": [
  "Open the Open Models section and read the Strands Decider 2B entry, which describes checking Strands agent tool calls before they run.",
  "Clone the project from the strands-labs/strands-decider GitHub link and read its setup instructions.",
  "Define your allowed actions as the options and the pending tool call as the state.",
  "Add a check in your agent loop that reads the option probabilities and blocks calls below your threshold.",
  "Log blocked and allowed calls and review them against real runs."
 ],
 "agent_prompt": "Using github.com/strands-labs/strands-decider linked from github.com/AnotiaWang/awesome-decision-models, set up the Strands Decider 2B model and score the pending tool call in <tool-call-file> against the allowed actions in <allowed-actions-file>. Expected output: a probability per allowed action and a block or allow decision. Verify that a call outside the allowed list gets a low probability on every option.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README describes this model's tool-call use only through the launch post, so confirm the setup steps in the strands-decider repo itself before wiring it into an agent.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A web browser to open the repo's README and the linked provider docs",
  "An account and API key for the hosted provider you choose (for example TypeSafe console, OpenRouter, or Microsoft Foundry)",
  "For local runs: Ollama installed, or a Python environment with the package named in the model's own page",
  "A list of your own options (labels, tool names, or rubric levels) to score"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anotiawang-awesome-decision-models/check-agent-tool-calls-before-they-run/",
 "md": "https://dedupedai.com/use-cases/anotiawang-awesome-decision-models/check-agent-tool-calls-before-they-run/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anotiawang-awesome-decision-models--check-agent-tool-calls-before-they-run.json",
 "api_version": "v1"
}
