SaaS Agent Identity for Tool Calls | Moring
Authorizing each tool invocation at the moment it happens, under a session-scoped context, against the task the agent is currently performing is the core requirement. Session-level or employee-inherited permissions are the failure mode: the same agent may legitimately call a read tool early in a task and require an approval gate before the same tool executes a write, so the tool call is the unit of governance.
Short answer
Authorizing each tool invocation at the moment it happens, under a session-scoped context, against the task the agent is currently performing is the core requirement. Session-level or employee-inherited permissions are the failure mode: the same agent may legitimately call a read tool early in a task and require an approval gate before the same tool executes a write, so the tool call is the unit of governance.
How it works
The tool call is the unit of governance for SaaS AI agent operations, because that is where delegated authority becomes a concrete action against a real system. An agent holds credentials, plans a sequence of operations, and invokes tools and APIs to read invoices, query records, open tickets, or trigger workflows, and none of that behavior waits for a second review once the task starts. Checking once at connection time, when an OAuth grant was accepted or an API key was pasted into a configuration, says nothing about whether the four hundredth tool call of the session is still within the task's purpose.
The scale makes per-call governance unavoidable rather than aspirational. Telemetry from one platform counted more than 450,000 agent actions in a single week inside a company of fewer than 200 people, more than 2,000 actions per employee, and that pace describes what happens when a workforce adopts agents as daily tools. No review cycle built for humans can inspect actions at that rate after the thought, so authorization has to be evaluated at the moment each tool call is proposed, by machinery, not by a queue.
Inheriting the employee's permissions is the default pattern and the primary defect. Many agents in daily use do not log in as themselves; they act through the OAuth grant or personal access token of the person operating them, which gives the agent everything that person holds, across every SaaS application the token reaches. Research therefore separates two jobs: right-sizing the access agents inherit, and deciding each action before it runs, with the agent's context, its current task, and the requested operation evaluated together rather than trusting a standing grant.
A workable structure sorts tool calls by the damage a wrong call would do. One governance model classifies calls into tiers by consequence, so that read-only lookups run under the session's normal authority, writes to business records require scope and rate limits, actions with financial or external effect such as payments or outbound messages require approval above defined thresholds, and irreversible or destructive actions are prohibited from autonomous execution entirely. The tier assignment is per tool and per parameter, because the same tool can be low-risk when reading and high-stakes when writing.
Session-scoped credentials make per-call authorization enforceable rather than decorative. The recommended pattern issues each agent session short-lived, task-scoped credentials from a token service, held by the tool-execution layer so the model never stores the secret, and each invocation is checked against the scopes of the active credential before it executes. This closes the two structural failures of the alternatives: standing service accounts whose blast radius no single task justifies, and secrets passed through a model context, where they surface in outputs and can be exfiltrated through prompt injection, a failure class catalogued in the OWASP Top 10 for LLM applications.
The delegation chain adds a second dimension to per-call checks. When an orchestrator delegates to a sub-agent, each hop should record who delegated to whom, what permissions were active, and whether the sub-agent received narrowed or preserved scope, and each hop should narrow rather than preserve. A tool call made by a sub-agent is then evaluated against its own delegated scope at the moment of invocation, which prevents the confused-deputy escalation in which a lower-trust component exercises higher-trust authority merely by being invoked by a higher-trust one.
For record-keeping, the per-call decision itself is the evidence the estate will need later, and under the EU AI Act deployers of high-risk AI systems must maintain logging and documentation sufficient to reconstruct system behavior. Each tool call record should capture the agent session, the operating principal and any delegation chain, the tool and parameters, the decision that authorized it, and the outcome, which turns compliance reporting into a query over production telemetry rather than a reconstruction exercise. In a SaaS estate, governance that is not evaluated per tool call is not governance; it is a snapshot of intentions taken before the work began.
Frequently asked questions
Why is the tool call, not the session, the unit of governance for agent identity?
Because an agent performs many operations per task, and authorization checked once at connection time says nothing about whether a later call is still within purpose. Telemetry showing more than 450,000 agent actions in a week at a company of under 200 people illustrates why post-hoc human review cannot keep pace, so each invocation must be evaluated against the session's scoped credentials, the current task, and the tool's consequence tier at the moment it is proposed.
What is wrong with an agent inheriting its user's SaaS permissions?
An agent acting through an employee's OAuth grant or personal access token holds everything that person holds across every connected application, with none of the judgment about which subset the current task requires. Governance therefore has two distinct jobs: right-sizing the access agents inherit, and deciding each tool call before it runs under a session-scoped identity, so a standing grant never substitutes for a per-action decision.
How should tool calls be tiered for identity decisions?
A practical model sorts calls by the damage a wrong call would do: read-only lookups run under normal session authority, writes to business records require scoped credentials and rate limits, financially or externally consequential actions such as payments and outbound messages require approval above defined thresholds, and irreversible actions are barred from autonomous execution. Tiering is per tool and per parameter, since the same tool can be benign when reading and high-stakes when writing.
How does per-tool-call identity support EU AI Act obligations?
The EU AI Act requires deployers of high-risk AI systems to keep logging and documentation sufficient to reconstruct system behavior, and the per-call record is exactly that artifact: agent session, delegation chain, operating principal, tool and parameters, the authorization decision, and the outcome. Recording decisions as they happen turns compliance reporting into a query over production telemetry instead of a forensic reconstruction after an incident.