Skip to main content
Glama

Проверить потоковый ответ ИИ

ai_stream

Runs a paid streaming chat or responses probe, returning the collected answer, response ID, and usage; stream interruptions return errors, so avoid automatic retries after timeouts.

Instructions

Выполняет платную потоковую пробу chat/responses и возвращает собранный ответ, ID и расход. Обрыв и ошибка потока возвращаются ошибкой. Не повторяйте автоматически после таймаута.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "provider": "<provider>",
      "prompt": "<prompt>"
    },
    "name": "ai_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
modeNo
modelNo
promptYes
providerYesПодключение: название или идентификатор.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), the description discloses that the call is paid (it costs money), what it returns (answer, ID, spend), and that a stream break or stream error surfaces as an error. The explicit warning against automatic retry after a timeout is exactly the kind of behavioral context annotations cannot convey. It stops short of describing timeouts or the shape of the payloads returned on partial failure.

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?

Three short sentences, front-loaded with the action and its cost, then error semantics, then the retry caution. No filler, no repetition of the title.

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 five-parameter probe tool with no output schema, the description covers what is returned and how failures are reported. The missing piece is per-parameter meaning for model, prompt, and case, which matters at 40% schema coverage. It is otherwise sufficient to call the tool safely.

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

Parameters2/5

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

Schema description coverage is only 40%, so the description needs to compensate for the missing parameter documentation, and it does not. Only the chat/responses mode is mirrored by the description; the meanings of model, prompt, and case (and provider beyond 'connection name/ID') are left entirely to the schema. No parameter behavior or constraints are added.

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 description states a specific action and scope: 'a paid streaming probe of chat/responses' that returns 'the collected response, ID and spend'. This clearly distinguishes the tool from siblings such as ai_save or ai_delete. The only gap is that it does not explicitly name the non-streaming test tool; however, the verb and resource are still unambiguous.

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

Usage Guidelines3/5

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

It gives one explicit usage rule, 'Не повторяйте автоматически после таймаута' (do not retry automatically after a timeout), which is useful guidance. However, it never says when to use this streaming probe instead of the sibling ai_test, nor when not to use it. The guidance therefore remains implicit.

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