Skip to main content
Glama
ayatec

AI Gateway MCP Server

by ayatec

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AI_GATEWAY_API_KEYYesVercel AI Gateway API key
ZERO_DATA_RETENTIONNoSet to 'true' to enable Gateway-level Zero Data Retention

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
askA

Ask a single AI model a question (no web search, cannot retrieve latest/real-time information). Default: openai/gpt-5.4 (flagship, $2.50/$15, 1.05M ctx). For multiple perspectives on a question, prefer research tool with mode:ask synthesize:false. For code: openai/gpt-5.3-codex. For mid-tier: openai/gpt-5.4-mini ($0.75/$4.50, strong reasoning). For cheaper: openai/gpt-5-mini ($0.25/$2) or google/gemini-3.1-flash-lite-preview ($0.25/$1.50). For cheap with coding: openai/gpt-5.4-nano ($0.20/$1.25). For cheapest: openai/gpt-5-nano ($0.05/$0.40).

searchA

Web search with a single model. Use for real-time lookups. For multi-model parallel research, use the research tool.

Query tips (major accuracy improvement):

  • NEVER include specific years (e.g. "2024", "2025") — use "latest", "current", or "newest" instead. The search engine returns recent results automatically; hardcoded years risk missing newer content or retrieving outdated info

  • One topic per query — split broad questions into multiple calls

  • Prefer English for technical topics (official docs are mostly English). Use Japanese when searching for Japan-specific services or local information

  • Include exact terms: version numbers, API names, config keys

  • Yes/No form for fact checks: "Does X support Y?" prevents false assertions

  • Add site: prefix to target official docs

Model guide ($ = cheapest, $$$ = most expensive):

  • perplexity/sonar ($): Extremely cheap (~1/20 cost of others). Fastest. Best for single-fact lookups and GitHub Issue searches

  • openai/gpt-5.4-nano ($$): Latest gen nano with web search, cheaper than gpt-5-mini ($0.20/$1.25 vs $0.25/$2). Search quality comparable to gpt-5-mini for simple lookups, concise output

  • openai/gpt-5-mini ($$): More thorough/comprehensive search results. Best for deep technical docs — migration guides, changelogs, CVE details

  • google/gemini-3-flash ($$ default): General queries, broad coverage, good all-around

  • openai/gpt-5.4-mini ($$$): Strong reasoning + search ($0.75/$4.50). Concise, high-confidence answers. Better cost-performance than claude-haiku-4.5

  • anthropic/claude-haiku-4.5 ($$$): Last resort when other models lack needed info. Most expensive search model ($1/$5) — only use for a different perspective

For parallel multi-model results or diverse perspectives, use the research tool.

researchA

Multi-model parallel research. Queries 2-4 AI models simultaneously, then optionally synthesizes results. Use instead of search when: (1) you need higher confidence via cross-validation across sources, (2) you want diverse perspectives on a topic. mode:search (default): web research with grounding across 3 models (sonar, gemini-3-flash, gpt-5.4-nano). mode:ask: multi-model Q&A without web search — for architecture decisions, trade-off analysis, diverse expert opinions (uses gpt-5.4, claude-opus-4.6, gemini-3.1-pro-preview, sonar-reasoning-pro). synthesize:true (default): merges all responses into one comprehensive answer. synthesize:false: shows each model side-by-side with latency and cost — useful for comparing perspectives or when you want raw answers. Query tip: prefer English for technical topics, one focused topic per query. NEVER include specific years in queries — use "latest"/"current"/"newest" instead. Same best practices as the search tool apply.

list_modelsA

List available AI models with capabilities, pricing, and web search costs. Use this to choose the right model for your task.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ayatec/ai-gateway-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server