Skip to main content
Glama

Подключить или настроить ИИ-сервис

ai_save

Connect new AI services or update existing configurations with provider-specific API keys, model selection, and response parameters.

Instructions

Без параметра provider подключает новый сервис, с ним — меняет настройки. Какие ключи нужны: gigachat — authorization_key (обязательно), scope (по умолчанию GIGACHAT_API_PERS); yandexgpt — api_key (обязательно), folder_id (обязательно); openai — api_key (обязательно); openrouter — api_key (обязательно); custom — api_key (по желанию); обязателен base_url. При изменении переданные ключи дописываются поверх прежних, а стереть ключ пустой строкой нельзя — только перезаписать.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
kindNoВид сервиса. Обязателен при создании, сменить его потом нельзя.
nameNoНазвание подключения в панели.
modelNoМодель. Известные: gigachat — GigaChat, GigaChat-Pro, GigaChat-Max, GigaChat-2 (по умолчанию GigaChat); yandexgpt — yandexgpt-lite, yandexgpt, yandexgpt-32k (по умолчанию yandexgpt-lite); openai — gpt-4o, gpt-4o-mini, gpt-4.1, gpt-4.1-mini, o4-mini (по умолчанию gpt-4o-mini); openrouter — openai/gpt-4o-mini, anthropic/claude-3.5-sonnet, google/gemini-2.0-flash-001, meta-llama/llama-3.3-70b-instruct, deepseek/deepseek-chat; custom — зависит от вашего сервера; поле обязательно заполнить вручную
activeNoВключено ли подключение.
base_urlNoАдрес сервера. Обязателен для вида custom.
providerNoКакое подключение менять. Не указывайте, чтобы создать новое.
max_tokensNoПредел длины ответа. По умолчанию 1024.
credentialsNoКлючи доступа. Состав зависит от вида сервиса — см. описание инструмента.
temperatureNoРазброс ответов: 0 — строго по делу, 2 — свободно. По умолчанию 0.7.
history_depthNoСколько прошлых реплик подмешивать в запрос. По умолчанию 10.
system_promptNoПостоянная подсказка модели: как себя вести и о чём говорить.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description reveals important behavioral details beyond the annotations: passed keys are appended onto existing ones, and an empty string cannot erase a key—only overwrite it. This gives the agent a concrete understanding of side effects for a non-idempotent, non-destructive mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured: it opens with the core create/update rule, then moves to provider-specific key requirements, and closes with the merging caveat. Every sentence carries necessary information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with 12 parameters, a nested `credentials` object, and no output schema, the description adequately covers the trickiest aspects: the create/update distinction, per-provider credential requirements, and key-merge behavior. It does not explain return values, but this is a minor omission for a save operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already covers all 12 parameters (100% coverage), but the description adds essential semantics by explaining the `credentials` structure per provider, including required fields and the default `scope` for gigachat. This compensates for the schema's generic 'see description' note and adds value beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: it creates a new AI service connection when `provider` is omitted and modifies an existing one when `provider` is specified. It also distinguishes itself from sibling tools like `ai_list`, `ai_test`, and `ai_delete` by focusing on save/configure operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides explicit conditions for use: without `provider` to create, with `provider` to update. It also lists required credentials per provider, giving concrete guidance on what inputs are needed for each service type. However, it does not explicitly mention alternative tools for reading/testing/deleting, so it lacks an explicit exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/uk-kd/operbots-mcp'

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