AI Glot websiteOpen AI Glot
Gestione di AI GlotCode Mode per MCP
Gestione di AI Glot

Code Mode per MCP

Utilizza il server MCP search-and-execute di AI Glot per flussi di lavoro API a più passaggi delimitati all'interno di una sandbox Cloudflare Worker isolata dalla rete.

Code Mode espone due strumenti all’indirizzo https://mcp.ai-glot.com/mcp/code:

  • search trova le operazioni pertinenti nel contratto OpenAPI senza dover caricare l’intera specifica nel contesto del modello.
  • execute esegue un programma JavaScript la cui funzione request() richiama le normali route REST di AI Glot.

Perché usarlo

Il server standard potrebbe richiedere diversi passaggi tra modello e strumento (round trip) per completare un’attività articolata. Code Mode consente all’agente di recuperare più pagine, filtrarle e restituire un riepilogo compatto in una sola chiamata allo strumento.

Esempio di programma execute
const first = await request({
  method: 'GET',
  path: '/batches',
  query: { status: 'completed', limit: 100 },
});

return first.data
  .filter(batch => !batch.archived)
  .slice(0, 10)
  .map(({ id, name, completed_at }) => ({ id, name, completed_at }));

I percorsi passati a request() sono relativi a /v1. Ogni chiamata segue le stesse logiche di route matching, convalida, applicazione degli ambiti (scope), isolamento dell’area di lavoro e limitazione della frequenza (rate limiting) di una richiesta HTTP diretta.

Limiti della sandbox

Il programma non dispone di accesso di rete in uscita, binding di ambiente o moduli aggiuntivi. Può chiamare AI Glot unicamente tramite request() sfruttando gli ambiti (scope) esistenti della connessione.

LimiteValore
Dimensione del programma64 KB
Tempo di esecuzione30 secondi
Richieste API per esecuzione100
JSON restituito256 KB
Output console200 righe / 32 KB

Ciascuna richiesta interna viene conteggiata a fronte del consueto limite di frequenza (rate limit) dell’API per la credenziale. I risultati voluminosi vengono esplicitamente contrassegnati come troncati; filtra o riepiloga i dati all’interno del programma invece di restituire pagine grezze.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search AI Glot Docs documentation and read it in full, instead of answering from memory.

https://ai-glot.com/docs/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://ai-glot.com/docs/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.