---
title: "Discussion on \"Authorise AI agent tool calls from the JWT, not the prompt\" | Hashnode"
description: "Discussion on \"Authorise AI agent tool calls from the JWT, not the prompt\". The JWT was valid. The model still picked the customer ID. Move identity into the state so a fooled model can't reach the wrong data."
url: "https://hashnode.com/posts/authorise-ai-agent-tool-calls-from-the-jwt-not-the-prompt/6acf486daa2c4a28a534588d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Authorise AI agent tool calls from the JWT, not the prompt](https://grounded-engineering.hashnode.dev/authorise-ai-agent-tool-calls-from-the-jwt-not-the-prompt?utm_source=hashnode&utm_medium=feed)

The JWT was valid. The model still picked the customer ID. Move identity into the state so a fooled model can't reach the wrong data.

Oct 14 · 10 min read · grounded-engineering.hashnode.dev  
Read the article

## Written by

[Rakesh Kumar](https://hashnode.com/@rakeshnitb)

@rakeshnitb · Bangalore, India

  
[View profile](https://hashnode.com/@rakeshnitb)

AI developer building production RAG and agent systems. Writing about auth, grounding, and reliability.

AI Developer at Genpact, previously a backend engineer building high-volume systems for Shutterfly. I build production RAG and AI agent systems with a focus on security, grounding, and reliability. My current project, GroundedDocs, is a document Q&amp;A service that answers only with exact citations or abstains. Here I write the "Grounded RAG in Production" series: practical design notes from shipping real systems.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
