<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw" -->

---
title: REST is for Agents: Rediscovering Spring HATEOAS by Adib...
description: A conference talk argues that instead of wrapping legacy APIs with MCP servers to make them agent-accessible, teams can rediscover Roy Fielding's HATEOAS...
canonical: https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026 | daily.dev
og:description: A conference talk argues that instead of wrapping legacy APIs with MCP servers to make them agent-accessible, teams can rediscover Roy Fielding's HATEOAS...
og:url: https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw
og:image: https://api.daily.dev/og/posts/ZU9ZlPVuw.png
og:image:alt: REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026

**[Spring I/O](https://daily.dev/sources/springio)** · 42 min read · 0 upvotes · 0 comments

## Summary

A conference talk argues that instead of wrapping legacy APIs with MCP servers to make them agent-accessible, teams can rediscover Roy Fielding's HATEOAS pattern using Spring HATEOAS to build hypermedia-driven REST APIs that AI agents can navigate directly. Using a live demo against the Open Bank Project API and the Goose agent, the speaker shows an agent discovering available actions, forms, and permissions purely by following HAL forms links and agents.md profile hints, with no custom MCP server or agent code written. The talk contrasts MCP's tool-bloat and context-window costs with HATEOAS's server-controlled, permission-aware navigation, and then demonstrates fixing credential handling by combining HATEOAS with an MCP server backed by OAuth/OIDC and token exchange via Spring Authorization Server. The speaker concludes both approaches have their place depending on whether actions are resource/identity-specific (HATEOAS) or general-purpose (MCP).

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=WZK_r87m5bw>

## Questions this post answers

### Should I use MCP or HATEOAS to expose my existing REST APIs to an AI agent?

Use HATEOAS when actions depend on the identity of the resource or user, such as permission-based banking operations, because the server can dynamically render or omit forms like a transfer-money action based on the caller's permissions. Use MCP for general-purpose actions like sending an email or generating a PDF, where a single reusable tool suffices across contexts.

_daily.dev surfaces architecture debates like this one for teams weighing MCP against hypermedia APIs for agent integration._

### How does MCP tool calling consume the context window and why does it get expensive with many tools?

Every MCP tool list, including each tool's name and description, gets included in the context window sent to the model, and each tool call result is appended and resent on every subsequent turn of the agentic loop, so context grows with every tool and every result. Anthropic has documented this tool-bloat problem, noting it burns tokens, adds latency, and can confuse the model when too many tools are listed, prompting patterns like a single tool-search tool.

_developers optimizing agent token costs can track these context-window tradeoffs on daily.dev._

### How do I let an AI agent discover legacy REST API actions without writing a custom MCP server or agent code?

Add Spring HATEOAS to a Spring Boot REST API and return HAL forms responses with _links for self, profile, and about, where profile points to an agents.md file describing the API contract and about describes the resource's semantic meaning. An agent like Goose, when simply given the API's root URL, follows these links, reads the forms describing required inputs like username and password, and navigates the API without any hand-written tool integration.

_engineers exploring hypermedia-driven agent access can follow implementation walkthroughs like this on daily.dev._

## Similar posts on daily.dev

- [Understanding HATEOAS in Simple Terms](https://daily.dev/posts/understanding-hateoas-in-simple-terms-pgzmce89u) · C\# Corner · 1 upvotes · 0 comments
- [4 API Architectural Styles You Should Know](https://daily.dev/posts/4-api-architectural-styles-you-should-know-har5jvoyo) · Nordic APIs · 44 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp)

[View this post on daily.dev](https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026","url":"https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw"},"datePublished":"2026-09-27T07:26:33.658Z","dateModified":"2026-09-27T07:27:31.909Z","description":"A conference talk argues that instead of wrapping legacy APIs with MCP servers to make them agent-accessible, teams can rediscover Roy Fielding's HATEOAS...","image":"https://i.ytimg.com/vi/WZK_r87m5bw/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/WZK_r87m5bw/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,mcp","timeRequired":"PT42M","video":{"@type":"VideoObject","name":"REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026","description":"A conference talk argues that instead of wrapping legacy APIs with MCP servers to make them agent-accessible, teams can rediscover Roy Fielding's HATEOAS...","thumbnailUrl":"https://i.ytimg.com/vi/WZK_r87m5bw/sddefault.jpg","uploadDate":"2026-09-27T07:26:33.658Z","duration":"PT42M","url":"https://api.daily.dev/r/ZU9ZlPVuw","embedUrl":"https://www.youtube.com/embed/WZK_r87m5bw"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"REST is for Agents: Rediscovering Spring HATEOAS by Adib Saikali @ Spring I/O 2026"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/rest-is-for-agents-rediscovering-spring-hateoas-by-adib-saikali-spring-i-o-2026-zu9zlpvuw#faq","mainEntity":[{"@type":"Question","name":"Should I use MCP or HATEOAS to expose my existing REST APIs to an AI agent?","acceptedAnswer":{"@type":"Answer","text":"Use HATEOAS when actions depend on the identity of the resource or user, such as permission-based banking operations, because the server can dynamically render or omit forms like a transfer-money action based on the caller's permissions. Use MCP for general-purpose actions like sending an email or generating a PDF, where a single reusable tool suffices across contexts. daily.dev surfaces architecture debates like this one for teams weighing MCP against hypermedia APIs for agent integration."}},{"@type":"Question","name":"How does MCP tool calling consume the context window and why does it get expensive with many tools?","acceptedAnswer":{"@type":"Answer","text":"Every MCP tool list, including each tool's name and description, gets included in the context window sent to the model, and each tool call result is appended and resent on every subsequent turn of the agentic loop, so context grows with every tool and every result. Anthropic has documented this tool-bloat problem, noting it burns tokens, adds latency, and can confuse the model when too many tools are listed, prompting patterns like a single tool-search tool. developers optimizing agent token costs can track these context-window tradeoffs on daily.dev."}},{"@type":"Question","name":"How do I let an AI agent discover legacy REST API actions without writing a custom MCP server or agent code?","acceptedAnswer":{"@type":"Answer","text":"Add Spring HATEOAS to a Spring Boot REST API and return HAL forms responses with _links for self, profile, and about, where profile points to an agents.md file describing the API contract and about describes the resource's semantic meaning. An agent like Goose, when simply given the API's root URL, follows these links, reads the forms describing required inputs like username and password, and navigates the API without any hand-written tool integration. engineers exploring hypermedia-driven agent access can follow implementation walkthroughs like this on daily.dev."}}]}
```

