AEO Optimization Guide
AI Engine Optimization (AEO) makes your service discoverable and usable by AI agents. This guide breaks down every scoring dimension with actionable steps.
Scan your service first →Agent Framework Integration
Integrate Clarvia AEO scoring directly into your multi-agent workflows. Use these examples as LangChain tools, CrewAI agents, or OpenAI function calls.
LangChain
@tool decoratorWrap the Clarvia API as a LangChain tool. Agents can call it to evaluate any API's agent-readiness before integration.
CrewAI
@tool + AgentDefine a CrewAI tool and assign it to an API Evaluator agent that finds the most agent-friendly APIs for your crew.
OpenAI Function Calling
tools schemaDefine the Clarvia API as an OpenAI-compatible function. Works with GPT-4, Claude, and any model that supports tool use.
Quick Wins (Under 2 Hours)
API Accessibility
25 pts maxHow easily AI agents can discover, reach, and authenticate with your API endpoints.
Ensure public reachability
Up to 10 ptsYour API must return a 2xx response at a publicly accessible URL. Agents need to reach you without manual setup.
Optimize response speed
Up to 10 ptsTarget sub-200ms p50 latency. Use CDN, connection pooling, and edge caching. Agents abandon slow APIs.
Document authentication
Up to 5 ptsPublish OpenAPI security schemes. Support Bearer tokens or API keys with clear instructions.
Data Structuring
25 pts maxHow well your data is organized for machine consumption — schemas, pricing, and error handling.
Publish OpenAPI / JSON Schema
Up to 10 ptsProvide a complete OpenAPI spec with typed schemas for every endpoint. Agents parse these to understand your API.
Make pricing machine-readable
Up to 5 ptsAdd a structured pricing endpoint or embed pricing metadata. Agents need to compare costs programmatically.
Return structured errors
Up to 10 ptsUse consistent JSON error format: { error: { code, message, docs_url } }. Never return HTML error pages.
Agent Compatibility
25 pts maxDirect support for AI agent protocols, discovery mechanisms, and robot policies.
Implement MCP support
Up to 10 ptsPublish MCP (Model Context Protocol) tool definitions. This is the fastest path to agent integration.
Set agent-friendly robot policies
Up to 5 ptsAllow AI agents in robots.txt. Publish .well-known/ai-plugin.json for ChatGPT/agent discovery.
Register on discovery platforms
Up to 10 ptsList your API on MCP registries, RapidAPI, or publish a .well-known/clarvia.json profile.
Trust Signals
25 pts maxSignals that help agents (and their users) trust your service — uptime, docs, and freshness.
Publish a status page
Up to 8 ptsUse Betteruptime, Instatus, or similar. Expose an API-accessible /health endpoint. Agents check before calling.
Write excellent documentation
Up to 10 ptsInclude interactive examples, code snippets in 3+ languages, and a quickstart guide under 5 minutes.
Show active maintenance
Up to 7 ptsMaintain a public changelog. Keep GitHub active with recent commits. Agents prefer actively maintained APIs.
Ready to measure your progress?
Follow our Quick Wins checklist — most developers improve their score by 15+ points in one afternoon.
Scan Now — Free