arXiv:2610.03213cs.AIOct 2026

Manuscript Offprint

arXiv:2610.03213

Toward SLM-based agentic task-tool intent matching

Chiara Troiani, Arash Salarian, Majed El Helou, Benjamin Ryder, Jean Diaconu, Hervé Muyal, Marcelo Yannuzzi

Abstract

Tool-equipped AI agents use tool calls to access data and act on external systems. Horizontal growth of agentic systems increases the number of these interactions, and further motivates the need for automated, per-call oversight that can operate at low latency and/or on-prem. Conventional authorization schemes can determine whether an agent is allowed to invoke a tool, but cannot assess the agent's underlying cognition, specifically, whether the tool selection represents a logical, relevant step toward satisfying the intent of the task or not. Consequently, an allowed call may still deviate from the task's intent: a rogue agent might deviate the calls or nudge other agents to make a combination of calls that would not align with the intent of the task. Therefore, every call needs to be verified. In this study we investigate the applicability of Small Language Models (SLMs) to this purpose: an SLM functions as a task-tool relevance classifier that evaluates every selected tool independently against the assigned task and returns a relevance signal for downstream enforcement. Equipped with a novel dataset with multi-tool tasks whose required tools span distinct Model Context Protocol (MCP) servers, we used prompt-optimization, supervised fine-tuning, and reinforcement learning through GRPO to optimize and specialize SLMs.

1 Introduction

Agents within a multi-agent system (MAS) rely on tool usage as the main method to interact with the environment. As these systems scale out, a trajectory highlighted by recent discourse on the Internet of Agents [1, 2] and its next evolution into the Internet of Cognition [3, 4], the research into fending off threats and ensuring the security of these systems is also advancing rapidly.

Our work extends Task Based Access Control (TBAC) to intent-based TBAC: broadly, TBAC dynamically activates, tracks, suspends, consumes, and revokes permissions as the authorization steps of a task progress [5]. In other words, a permission is available only when required by the current stage of an active task, and only for its authorized lifetime and usage. However, the original TBAC does not determine whether a tool semantically matches a user's or an agent's natural language intent. Furthermore, classical TBAC assumes that the tasks, workflow steps, dependencies, and permissions have been explicitly modeled. In agentic systems, however, due to the enormous flexibility of natural language, explicit modeling of these components ahead of time becomes impossible.

In order to assess semantic relevance of a tool to a given task a system needs to inspect both the subject query as well as the tool descriptions. Cloud-based, frontier LLMs with reasoning capability are effective for analyzing these calls (see the results section). However, in many organizations, concerns over privacy, cost, latency or organizational policies limit the practical applications of these models. The hypothesis for our study is that optimizing an SLM for this purpose is sufficient to achieve high accuracy while satisfying the operational constraints.

Code and data are available at https://github.com/outshift-open/outshift-casa-slm

Preprint.