Core ConceptsREST APIs

REST APIs

REST APIs in A²D represent HTTP API contracts that you design, mock, and test alongside MCP Servers and Agent Cards.

What are REST APIs in A²D?

While MCP Servers use the Model Context Protocol (JSON-RPC) and Agent Cards use the A2A protocol, REST APIs represent traditional HTTP APIs with endpoints, methods, paths, and request/response schemas. A²D treats them as first-class agentic assets alongside MCP Servers and Agent Cards.

Key Differences from MCP Servers

AspectMCP ServerREST API
ProtocolJSON-RPC 2.0 (MCP)HTTP REST
EntitiesTools, Resources, PromptsEndpoints
Request Formattools/call with argumentsHTTP method + path + body
Response FormatMCP content arrayDirect JSON response
Test Validation Pathscontent.0.text.asJson.fieldfield (direct access)

When to Use REST APIs

Use REST APIs when you need to:

  • Design and mock HTTP API contracts before implementation.
  • Test REST endpoints with automated validations.
  • Include REST API testing in exploratory sessions alongside MCP and A2A assets.
  • Import/export API specifications as part of your design workflow.

How REST APIs Work in A²D

  1. Define — Create an API with endpoints (method, path, parameters, schemas).
  2. Mock — Configure mock scenarios with conditional responses.
  3. Test — Use the Playground, create automated A2TF tests, or run exploratory sessions.
  4. Publish — Export or publish to Anypoint Exchange.

Next Steps


REST APIs complement MCP Servers and Agent Cards as testable agentic assets in A²D.