VOOZH about

URL: https://thenewstack.io/how-agentic-ai-is-reshaping-api-self-discovery/

⇱ How Agentic AI Is Reshaping API Self-Discovery - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-07-31 13:00:02
How Agentic AI Is Reshaping API Self-Discovery
sponsor-ibm,sponsored-post-contributed,
AI / AI Agents / Large Language Models

How Agentic AI Is Reshaping API Self-Discovery

Designing for agent-first consumption is the foundation for intelligent automation and adaptive workflows in the age of AI-native development.
Jul 31st, 2025 1:00pm by Nazrul Islam
👁 Featued image for: How Agentic AI Is Reshaping API Self-Discovery
Featured image by Triff on Shutterstock.
IBM sponsored this post.

Generative AI (GenAI) is already transforming how we interface with APIs, and the spotlight is shifting to the next leap in AI evolution: agentic AI.

Agentic AI refers to intelligent systems that can reason, plan and act autonomously. These agents can interpret user goals, discover tools (APIs), reason about when and how to use them and then execute workflows. This can change how APIs are consumed, documented and exposed.

Agentic AI can fundamentally change API consumption by enabling natural language-driven, autonomous API discovery and execution.

API Consumption Challenges Agentic AI Addresses

APIs must be discoverable, descriptive and context-aware for AI agents to work correctly. Here are some of the issues that may occur otherwise and potential solutions.

1. Ambiguity in Intent Mapping

Most users don’t speak in structured API schemas. They express what they want in natural language:

“Place an order for two iPhone 16s for customer John.”

Traditional API integrations require explicit knowledge of which endpoint to call, which parameters are needed and what format is required. This can lead to friction, errors and slow integration development.

Agentic AI uses structured metadata to solve this by grounding natural language intent into executable function calls. It can parse the user’s request, search for relevant tools and generate the correct API invocation.

Example

The agent maps the intent to the correct function based on a semantic match to the tool’s description and schema.

2. Lack of Structured, Self-Describing APIs

Most APIs were built for human developers: swagger specs, Markdown docs and examples. However, AI agents need machine-readable schemas to reason about capabilities, input requirements and constraints.

Agentic AI works when APIs expose the following in a structured format:

  • Function name and description
  • Input parameters with types and constraints
  • Authentication requirements
  • Output schema
  • Errors and limits

Example Tool Schema

This structure enables agents to:

  • Validate inputs before execution.
  • Build dynamic user interfaces (UIs).
  • Choose tools based on context and task type.

3. Inconsistent Tool Invocation and Planning

In traditional workflows, APIs are manually stitched into automation logic. With agentic AI, planning and execution are dynamic. The agent:

  • Reads the tool catalog.
  • Matches the current user’s goal to the most relevant tool.
  • Fills in parameters from context or prompts.
  • Authenticates security.
  • Executes the tool and observes outcomes.

Example

User prompt: “Log a ticket for user 1234 saying their shipment didn’t arrive.”

Agent Invocation

4. Choosing the Right Tool from Similar Options

APIs often have overlapping functionality:

  • getWeatherToday vs. getWeatherForecast
  • searchFlights vs. recommendFlights

Agents use semantic similarity to select the right tool. However, excessive similarity can confuse the agent.

Solution

  • Use detailed, disambiguated descriptions.
  • Include capabilities or intent tags.
  • Score tool relevance based on embedding similarity plus historical success rate.

Example Catalog With Capabilities

By matching user input to capabilities, agents can disambiguate and select more accurately.

How Structured Metadata Enables Dynamic Agent Behavior

Structured tool schemas help agents in the following ways:

description: Intent grounding; maps prompt to tool usage.
parameters: Input validation, UI generation, prompt slot filling.
auth: Execution occurs only with valid credentials.
capabilities: Enable multistep planning and chaining of compatible tools.
rate limits: Let agent reason about retry policies or tool availability.

This metadata is the foundation for declarative, self-discoverable APIs, consumable by agents without manual programming.

Example: End-To-End Planning by an Agent

User prompt: “Translate ‘Good morning’ to Spanish and send it as a message to Carlos.”

Tools in the catalog:

Agent Reasoning

  1. Detect task requires translation → translateText.
  2. Store output → use as input to sendMessage.
  3. Construct a plan:

Let’s explore tool calling with and without large language models (LLMs) involved.

Here’s an example HTTP GET endpoint from the OpenAPI spec to retrieve details about a specific order based on the orderNumber:

Here’s an example Model Context Protocol (MCP) server snippet from the above specification that returns details about a specific order based on the orderNumber:

Here’s a code snippet for an MCP client discovering the tools:

This example shows an MCP calling an MCP server without involving an LLM.

And here’s an agent calling with a user request that uses an LLM:

User request: “Get order details for order number 1.”

Add another order API to the MCP server. This time, make the description a bit more specific.

The MCP client now detects two endpoints:

This time, for the same user request, the agent uses the new, updated API:

User request: “Get order details for order number 1.”

Conclusion

The metadata influences how agents pick an API over the other. Tweaking the metadata can have undesired consequences.

Agentic AI is rapidly redefining the way APIs are consumed:

  • APIs must be self-describing, machine-readable and intent-grounded.
  • Tool catalogs must expose metadata such as schema, parameters, capabilities and constraints.
  • Agents can dynamically reason, plan and invoke APIs — unlocking fast, smart and more autonomous integrations.

As we move into the age of AI-native development, designing for agent-first consumption is not optional — it’s the foundation for intelligent automation and adaptive workflows in hybrid environments, and protocols like MCP play a crucial role in this evolution.

IBM is working to bring autonomy, intelligence and collaboration to enterprise integration. Learn more about IBM webMethods Hybrid Integration.

Cut complexity, fuel growth. IBM automation transforms tangled IT stacks into intelligent, streamlined systems. By infusing AI into integration, observability, and identity, leaders gain agility, resilience, and confidence to scale innovation without the drag of inefficiency.
Learn More
Hear more from our sponsor
TRENDING STORIES
Nazrul serves as the Chief Architect for AI, IBM Integration Platform, where he strategically guides innovation and architectural excellence across the organization's AI-driven initiatives. In his current role, Nazrul is pivotal in steering the strategic direction and innovation of the...
Read more from Nazrul Islam
IBM sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Enable.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.