Skip to main content
Microsoft Foundry

API Spec Explainer

Description

What this agent manifest does

Point an agent at an API spec; get a plain-language guide — key endpoints, auth, and a worked example call.

Build an agent that reads an API specification — an OpenAPI/Swagger file, a reference doc — and explains how to actually use it. It uses File search to read the spec, then lays out the auth model, the endpoints that matter for the user's goal, the key parameters, and a worked example request and response, turning a dense reference into something a developer can build against quickly.

This is a single-tool read → developer guide pattern using markdown-header structure. Headers match how developers read reference material — Auth, Key Endpoints, Example — letting them jump to what they need. The defining design decision is grounding: every endpoint, field, and status code comes from the spec, and where the spec is silent (rate limits, error semantics, required scopes) the agent says "not specified" rather than filling it with a plausible-sounding default. Edge cases cover huge specs (scope to the user's task), malformed specs, and questions the spec doesn't cover.

This pattern applies anywhere an API reference needs translating into usable guidance. Common scenarios for this pattern:

  • Getting started against an unfamiliar API
  • Auth-flow and required-scope clarification
  • Finding the right endpoint for a task
  • Generating an example request to adapt
  • Onboarding to an internal service's API

The tools it uses

This manifest uses: File search

Use this agent manifest to understand

How to build single-shot / multi-turn agents using markdown headers prompt structure for narrative + examples output.

License

This agent manifest is sample code subject to Azure's licensing terms for Distributable Code under the Universal License Terms for Online Services .

Disclaimer

IMPORTANT! This manifest is for educational and experimentation purposes. Resulting agents are not production ready. Review all provided resources and carefully test agent behavior in the context of your use case. Agents you create may be subject to legal and regulatory requirements, may require licenses, or may not be suitable for all industries, scenarios, or use cases. By using any manifest, you are acknowledging that resulting agents and other output are solely your responsibility, and that you will comply with all applicable laws, regulations, and relevant safety standards, terms of service, and codes of conduct. Learn more .