Skip to main content
Glama

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

ai_save

Create new AI service connections or update existing provider settings in operbots, including credentials, model, system prompt, and token limits.

Instructions

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

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ai_save"
  }
}

Input 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 — зависит от вашего сервера; поле обязательно заполнить вручную; timeweb — актуальные модели: ai_models; режимы и параметры: operbots_catalog what=ai_kinds kind=timeweb
activeNoВключено ли подключение.
optionsNoНастройки памяти, экономии контекста и сервиса. Заменяет карту: memory, summary_every, cache_context и другие поля API.
base_urlNoАдрес сервера. Обязателен для вида custom.
providerNoКакое подключение менять. Не указывайте, чтобы создать новое.
max_tokensNoПредел длины ответа. По умолчанию 1024.
credentialsNoКлючи доступа. Состав зависит от вида сервиса — см. описание инструмента.
temperatureNoРазброс ответов: 0 — строго по делу, 2 — свободно. По умолчанию 0.7.
history_depthNoСколько прошлых реплик подмешивать в запрос. По умолчанию 10.
system_promptNoПостоянная подсказка модели: как себя вести и о чём говорить.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.0
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "gigachat",
      -  "yandexgpt",
      -  "openai",
      -  "openrouter",
      -  "custom"
      -]New value: +[
      +  "gigachat",
      +  "yandexgpt",
      +  "openai",
      +  "openrouter",
      +  "timeweb",
      +  "custom"
      +]
    • changedInput schema / properties / model / description
      Previous value: -"Модель. Известные: 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 — зависит от вашего сервера; поле обязательно заполнить вручную"New value: +"Модель. Известные: 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 — зависит от вашего сервера; поле обязательно заполнить вручную; timeweb — актуальные модели: ai_models; режимы и параметры: operbots_catalog what=ai_kinds kind=timeweb"
  2. Changed4 schema fields changedv0.2.0
    • addedInput schema / properties / base_url / anyOf
      Added value: +[
      +  {
      +    "maxLength": 400,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / base_url / maxLength
      Removed value: -400
    • removedInput schema / properties / base_url / type
      Removed value: -"string"
    • addedInput schema / properties / options
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Настройки памяти, экономии контекста и сервиса. Заменяет карту: memory, summary_every, cache_context и другие поля API.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  3. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, open-world behavior, and the description adds genuinely non-obvious semantics: on update, supplied credentials are merged on top of existing ones and a key cannot be erased with an empty string, only overwritten. This is exactly the kind of side-effect detail annotations cannot express. It does not mention permission requirements or what happens on partial failure, keeping it at 4.

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

Conciseness4/5

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

The create-vs-update rule is front-loaded and the remaining text is a dense but useful credential table with zero filler. The single long sentence enumerating kinds is harder to scan than a list, which is the only structural weakness.

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 13-parameter mutation tool with nested objects and no output schema, the definition covers the risky parts: which credentials each kind demands, the immutability of `kind`, and the merge-don't-clear credential behavior. It omits error/response behavior and cross-tool workflow hints, but an agent can call it correctly from what is present.

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

Parameters5/5

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

Schema coverage is 100%, but the `credentials` object is free-form and defers to the description ("см. описание инструмента"), so the per-kind key list here is the only source of that meaning. It also documents the agent-mode requirements (options.service_type=agent plus options.access_id), which the schema does not spell out.

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

Purpose4/5

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

The opening sentence names a specific verb and resource and splits the tool into two modes: create when `provider` is omitted, update when it is supplied. That is enough for an agent to know exactly what the call does. It stops short of naming a sibling (e.g. ai_test, ai_delete) to contrast with, so it lands at 4 rather than 5.

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?

The description gives explicit selection logic: omit `provider` to connect a new service, pass it to change settings, plus per-kind required credentials (yandexgpt needs both api_key and folder_id, custom needs base_url). It does not tell the agent when to use ai_save versus ai_test or ai_list after saving, so the routing guidance is one-sided.

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

Deploy Server

Other Tools