AI Agent Skills Explained: How SKILL.md Files Work
AI agent skills are SKILL.md folders that give agents procedural knowledge on demand. Here is how the format works, what it's for, and what changed in October 2026.
6 min read
MCP vs OpenAPI: MCP lets AI agents call tools at runtime, while OpenAPI describes an HTTP API ahead of time. Here is how they differ and work together.
OpenAPI describes an HTTP API in a machine-readable document, meant to be read ahead of time by developers and their tools. MCP (the Model Context Protocol) is a runtime protocol that lets an AI application discover and call tools over JSON-RPC 2.0 while a model works. In practice, a working OpenAPI document is usually the input that produces an MCP server, so the two end up on the same project more often than against each other.
Here is where OpenAPI and MCP actually diverge, drawn from the two specifications and from Scalar's own side-by-side comparison of the two.
| OpenAPI | MCP | |
|---|---|---|
| What it is | A specification for describing an HTTP API | A runtime protocol for AI applications to call tools |
| Governing body | OpenAPI Initiative, under the Linux Foundation | Agentic AI Foundation, under the Linux Foundation |
| Current version | OpenAPI Specification (OAS) v3.2.1, published 10 September 2026 | Specification revision 2026-07-28 |
| Primary consumer | Developers and their tooling, reading the document ahead of time | A language model inside a host application, reading at runtime |
| Wire format | A description of paths, parameters and schemas, not a protocol itself | JSON-RPC 2.0 messages over stdio or Streamable HTTP |
| Unit of functionality | An operation: one path plus one HTTP method | A tool, resource, or prompt |
| Discovery | Read the document once, in advance | tools/list called at runtime and read into the model's context |
| State | Depends on the API's own design | Stateless per request, since specification revision 2026-07-28 |
| Credentials | Defined per API: API keys, bearer tokens, OAuth, mTLS | Held by the server; never a tool argument the model can read |
The OpenAPI Specification (OAS) is the standard for describing HTTP APIs: paths, parameters, request and response schemas, and security schemes, all in one JSON or YAML document maintained by the OpenAPI Initiative under the Linux Foundation. The latest published version is OAS v3.2.1, dated 10 September 2026. By the specification's own description, OpenAPI "allows both humans and computers to discover and understand the capabilities of a service without requiring access to source code, additional documentation, or inspection of network traffic." It powers API reference docs, generated SDKs, mock servers and tests, built for a developer who reads it once and writes code that runs the same way every time.
The Model Context Protocol standardizes how AI applications connect to external tools and data. Anthropic introduced it in November 2024, and it is now governed by the Linux Foundation's Agentic AI Foundation. An MCP server offers tools (functions a model can call), resources (data the application can read) and prompts (templated workflows a user can pick), exchanged as JSON-RPC 2.0 messages over stdio for local servers or Streamable HTTP for remote ones.
The current specification revision, 2026-07-28, changed the protocol's shape in ways documented in its own changelog: it removed the initialize handshake and protocol-level sessions, making every request self-contained; it added a server/discover method that servers must implement to advertise supported versions and capabilities; and it reclassified the Roots, Sampling, and Logging features, along with the older HTTP+SSE transport, as Deprecated. Any host application that speaks MCP, including Claude, ChatGPT, Cursor, and VS Code, can use any MCP server without custom integration code written for that specific server.
Converting the two is mostly a mapping exercise, and most teams with an existing API start here rather than writing an MCP server from scratch. In Scalar's mapping guide, an OpenAPI operation's operationId becomes the MCP tool's name, its summary and description become the tool's description (the text a model actually reads before deciding whether to call it), its path, query and header parameters plus request body become one JSON Schema inputSchema, and its security scheme becomes server-side configuration that the model never sees. Read-only fields such as a server-assigned id are dropped from the input schema entirely, since an MCP tool input is only ever a request, never a response.
For a real GET /planets operation, Scalar's worked example shows the tool definition an MCP client actually receives from tools/list:
{
"name": "getAllData",
"title": "Get all planets",
"description": "Get all planets\n\nIt's easy to say you know them all, but do you really?",
"inputSchema": {
"type": "object",
"properties": {
"limit": { "type": "integer", "default": 10, "description": "The number of items to return" },
"offset": { "type": "integer", "default": 0, "description": "The number of items to skip" }
}
}
}Pasting the whole OpenAPI document into a model's context instead of generating tools from it does not hold up at scale. Scalar's own benchmark found the Zoom Meetings OpenAPI document ran to roughly 296,000 tokens, more than a 200,000-token context window, and every task attempted that way failed; a native MCP server with 183 tools still cost about 89,000 schema tokens, while a search-then-execute design used around 400.
A few open source tools now automate this conversion. openapi-mcp-generator, an MIT-licensed CLI with 640 stars on GitHub, takes an OpenAPI 3.x document and generates a typed TypeScript MCP server for stdio, SSE, Streamable HTTP, or a deployable Cloudflare Worker:
npx openapi-mcp-generator --input ./openapi.json --output ./my-mcpIts arguments are validated against each tool's JSON Schema before any request reaches the upstream API, and credentials fail closed when a required one is missing rather than calling the API anyway. Version 5.0 moved generated servers onto the MCP TypeScript SDK v2 and added support for specification revision 2026-07-28 while still serving older, 2025-era clients. The directory mcpservers.org lists 594 MCP servers built specifically around OpenAPI, Swagger, and Postman sources, including one from Tyk Technologies, as of this writing.
tools/list and a JSON Schema inputSchema to decide what to call, and OpenAPI alone gives it nowhere safe to hold a credential.initialize handshake and made the protocol stateless per request, added the required server/discover method, and reclassified Roots, Sampling, Logging, and the HTTP+SSE transport as Deprecated, per the protocol's own changelog.initialize handshake, among other changes in its changelog.operationId and model-friendly descriptions, is usually the fastest path to a working MCP server.No. An MCP server is usually a thin layer that calls an existing REST API on a model's behalf. REST APIs keep serving existing apps, SDKs, and partner integrations, and MCP adds another way for AI applications to reach the same capabilities, per Scalar's MCP vs API guide.
Yes. Tools such as openapi-mcp-generator take an OpenAPI 3.x document and output a ready-to-run TypeScript MCP server for stdio, SSE, Streamable HTTP, or a Cloudflare Worker, validating arguments against JSON Schema before they reach the API. Swagger 2.0 documents need converting to OpenAPI 3.x first.
Yes, slightly. An MCP tool call adds a network hop, and the model spends tokens reading the tool's definition and result, so MCP is not about speed. What it buys instead is a model that can use an API across any MCP-speaking host without custom integration code and without the API credential ever appearing in the model's context.
Both, depending on where the server runs. Local MCP servers typically use stdio, standard input and output between processes on the same machine. Remote servers use Streamable HTTP, which has replaced the older HTTP+SSE transport that specification revision 2026-07-28 now classifies as Deprecated.
Compare the MCP servers built around OpenAPI and other sources on AI Agents Listing.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.
AI agent skills are SKILL.md folders that give agents procedural knowledge on demand. Here is how the format works, what it's for, and what changed in October 2026.
6 min read
An AI agent marketplace comparison covering AWS, Google Cloud, Salesforce, Oracle, Moveworks, Kore.ai, AI Agent Store and Apify Store, and how to pick the right one.
7 min read
A comparison of six MCP server marketplaces by server count and focus, and how an MCP server marketplace differs from the official MCP registry.
6 min read