Hot AI News

REST APIs explained: How software talks to web services, and why agents get tool servers

A REST API lets software request and change data on a web service through plain web addresses. Here is how it works and how it differs from the tool servers built for AI agents.

REST APIs explained: How software talks to web services, and why agents get tool servers
Photo illustration: Aiholics

A REST API is a set of web addresses that lets one program ask another program to read or change data. When an app shows your calendar or a script files your email, it often does so by calling a REST API. The term comes from a 2000 dissertation, not from a product.

It matters now because Google is reportedly steering AI agents away from this familiar door. The Information reported that, from February, agents should reach Workspace apps through MCP servers instead. Google has not publicly confirmed that requirement, so it should be treated as reported, not settled.

A restaurant menu, but for software

Think of a restaurant. The menu lists what you can order, and the waiter carries your order to the kitchen. You never walk into the kitchen. A REST API is the menu and the waiter for a web service. A developer sends a request to a specific address, and the service sends back a result.

Each address names a thing, such as a mail thread or a calendar event. The request also names an action. Reading uses GET, creating uses POST, replacing uses PUT and removing uses DELETE. The reply usually arrives as structured text, most often JSON, which is a plain format for labeled data.

Advertisements

Where the idea came from

An angled touchscreen in a bright research atrium shows architectural image cards linked by arrows on an abstract interface.
Photo illustration: Aiholics

Roy Fielding introduced REST in his 2000 doctoral dissertation at the University of California, Irvine, titled Architectural Styles and the Design of Network-based Software Architectures. REST stands for representational state transfer. Fielding presented it as a named set of constraints for the Web, not as a protocol or a product.

The dissertation says the goals include scalability, generality of interfaces and independent deployment of parts. One constraint is a stateless server: each request carries everything needed to handle it. Another is a uniform interface, so every service is addressed in the same general way. Chapter 6 applies these ideas to HTTP, the protocol of the Web.

In practice, many services that call themselves REST follow these rules loosely. That looseness is part of the story, because each service decides its own addresses, fields and rules.

What a developer has to do with it

A REST API is written for a human developer who reads the documentation first. The developer picks the endpoints, decides the order of calls, handles errors and writes the code that glues the steps together. The service does not need to explain itself at run time, because the programmer already knows what it offers.

Access is usually controlled with OAuth, a standard for delegated permission. The app asks the user to approve specific scopes, such as read-only mail access, and receives a token to present with each request. The scope limits what the token can do, whichever door the app uses.

The result is flexible. A developer can combine many small calls into any workflow the API allows. It is also demanding, because the developer carries all the knowledge about how the service works.

Why agents are offered a different door

An AI agent is not a developer reading documentation in advance. It is a model that decides at run time which action to take next. It needs to discover what is available and call it with arguments it writes itself. That is the gap the Model Context Protocol, or MCP, was built to fill.

In MCP, a server publishes a list of named tools, each with a description and a defined input format. According to the official specification, a client discovers tools by sending a tools/list request and runs one with a tools/call request that carries the tool name and arguments. Messages use JSON-RPC 2.0, a simple request-and-reply format. The agent reads the list and chooses.

QuestionREST APIMCP server
Who reads the manual?A developer, ahead of timeThe model, at run time
What is exposed?Endpoints for data and actionsA chosen list of tools
How is it discovered?Documentationtools/list
Advertisements

What Google has published so far

Google’s public documentation shows the MCP route already exists. Its Gmail MCP reference lists tools such as search_threads, which lists threads from the signed-in user’s account, filters them with a query and supports pagination. The reference says the tool requires the gmail.readonly scope and that results do not include full message bodies. A separate tool, get_thread, fetches those by thread ID.

The news story also cites Google’s setup guide and Workspace Updates post. They describe a public developer preview of the Workspace MCP server from May 2026. They also say OAuth client IDs used with these servers must be marked for use by an AI-powered agent. The Gmail documentation warns about indirect prompt injection, where hidden instructions inside an email could steer an agent.

That context suggests one reason for a narrower door. A fixed tool list limits what an agent can do, which is consistent with those warnings. This is an inference from the documentation, not a statement from Google about the reported change.

Trade-offs and what to watch

A tool server is easier for a model to use and easier for a provider to restrict. The cost is flexibility. The Gmail tool list in Google’s documentation is narrower than a full mailbox interface, so a developer who needs an action that is not a tool may be stuck. That would plausibly explain developer concern, though the public text of the report does not say what developers object to.

Several questions remain open, and Google’s public documentation cited above does not answer them:

  • Whether existing REST integrations keep working for software that is not an agent.
  • How Google would tell agent traffic from other traffic.
  • Whether the preview servers reach general availability before any deadline.

Nothing here makes REST obsolete. It remains the standard way ordinary software talks to web services. The open question is whether, for AI agents, providers will treat it as a back entrance and tool servers as the front door.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Daniel ReedAI Research, Safety & Ethics Analyst

Daniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like