Skip to content

API Testing: Agent-Optimized Design Cuts Token Costs - Sebastian Małyska

August 13, 2026 · 35 min

Show notes

When end-to-end automation is the answer and when it is the wrong question

With Sebastian Malyska I talk about what sits behind the APIs testers often take for granted. We get into why REST is still on top but not the whole story, how GraphQL and webhooks fit into the picture, and what actually happens when an AI agent talks to a real system through MCP. There is a practical argument running through all of it: if you understand the protocol layer, you can make smarter decisions about where to test, how to structure automation, and how to avoid burning unnecessary tokens and budget. Sebastian also makes the case that front-end testers are already closer to this world than they think, and that the next step in the career is simply to look one layer down.

"Improving is not like giving you know golden card to AWS, give me more resources. But this is the hard way, this is engineering way." - Sebastian Małyska

Sebastian Małyska is a software quality enthusiast with over 20 years of experience proving that “it works on my machine” is not a testing strategy. Has worked as a manual tester, automation engineer, QA Lead, and QA Manager, basically wherever quality (or patience) was missing. Speaker at national and international conferences and a program committee member who enjoys talking about QA almost as much as reporting other people’s bugs. Codes mainly in Python, because life is too short for bad code and even worse languages. President of the Polish Quality Board, Secretary of the ISTQB® Board, member of the IREB® community, and co-founder of ŁuczniczQA in Bydgoszcz. On a daily basis, fights for better quality, fewer critical defects, and more common sense in IT projects.

Highlights:

  • APIs optimized for agent use require fewer requests to retrieve the same data, which directly reduces token consumption and lowers operational costs.
  • REST is a set of recommendations, not a strict protocol, so teams can and do deviate from its conventions without violating a formal standard.
  • MCP works by having the MCP server send a description of its available tools and resources to the LLM at the start of a session, which is how the model learns what actions it can call.
  • API-level tests offer greater stability and faster execution than end-to-end browser tests, and the right testing strategy names the layer where each scenario is best covered rather than defaulting to front-end automation.
  • Starting API test design from documentation such as a Swagger spec, before the front end exists, removes the wait time at the end of the development cycle and eliminates idle waste.

🚀 Do you like the podcast? Then please rate and share it. And feel free to send feedback to [email protected]

All episodes of Software Testing Unleashed – QA, DevEx & Quality Engineering

Settings

Display

Language

Decides which stations you see first on the home page.

History

Recently played stations and episodes and your latest searches are only stored in this browser.

Notifications

A short notice when a podcast you follow has a new episode. Turn off single podcasts with the bell on their page.

Account

Save favorites – in the app and on the website.

Keyboard shortcuts

/
Open search
Space
Play or pause
← →
In the player: back 15 s, forward 30 s (episodes) · in a row: next tile
↑ ↓
In a row: target within the tile
Home / End
In a row: first or last tile
Esc
Close window or menu
?
This overview
Now playing

Go to station page

Play next

    Add episodes with “Play next” – they play after the current episode.