---
title: "Discussion on \"Pin baseUrl in the Gateway, Not in the Agent's Prompt\" | Hashnode"
description: "Discussion on \"Pin baseUrl in the Gateway, Not in the Agent's Prompt\". The OpenAPI spec lists prod as the first server. Your agent reads it and calls prod on every test run. The fix is not another line in the system prompt."
url: "https://hashnode.com/posts/pin-baseurl-in-gateway-not-agent-prompt/6ad51cdfd3a59593774e39d2"
---

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

Discussion

# [Pin baseUrl in the Gateway, Not in the Agent's Prompt](https://blogs.powerduck.com/pin-baseurl-in-gateway-not-agent-prompt?utm_source=hashnode&utm_medium=feed)

The OpenAPI spec lists prod as the first server. Your agent reads it and calls prod on every test run. The fix is not another line in the system prompt.

Oct 18 · 4 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#mcp](https://hashnode.com/tag/mcp)
-   [#apigateway](https://hashnode.com/tag/apigateway)
-   [#devtools](https://hashnode.com/tag/devtools)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
