Skip to main content
Glama

ACTION_AI_CHAT

Send a prompt to an on-device local LLM and store its reply in a workflow variable, returning success and error fields for downstream automation.

Instructions

调用端侧本地大模型对话,回复存入变量(需宿主注入 LLM 服务且本地模型已加载)。输出:llm_success, llm_result, llm_error。模型未加载时 llm_success=false 并写 llm_error;推理抛错时错误文本也会写进 output_var,判断成败看 llm_success。Habitat 自带实现推理失败会返回以 "Error:" 开头的文本且 llm_success 仍为 true。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
promptYes提示词,支持 ${var}
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
output_varNo回复存到的变量名(默认 llm_result)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With zero annotations the description carries the full burden and does substantial work: it names the output fields (llm_success, llm_result, llm_error), explains what happens when the model is not loaded versus when inference throws, and warns about the Habitat built-in quirk where 'Error:'-prefixed text is returned with llm_success=true. It stops short of stating any authorization or cost/latency characteristics.

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

Conciseness3/5

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

Purpose and prerequisites are front-loaded, which is good, but the text is dense and contains a doubled punctuation artifact ('。。') plus a redundant re-explanation of the failure path after the output-field list. Every idea is relevant, yet the packaging is less tight than it could be.

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?

There is no output schema and no annotations, so the description must explain the return contract — and it does, covering success flag, result, error text, and the misleading-success edge case. Minor gaps remain around how 'require' and node_timeout_ms interact with the described failure handling, though those are documented in the schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all five parameters including the on_error enum and the output_var default. The description adds only that string parameters support ${var} interpolation (already noted on 'prompt') and that results are returned as a variable-snapshot JSON, which is marginal added meaning.

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?

States a specific verb and resource: invoke an on-device local LLM for a chat turn and store the reply into a variable. Among the siblings (HTTP request, TTS, text operations) it is clearly the LLM-inference tool, though it never explicitly names a contrasting sibling.

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?

Prerequisites are given in parentheses (host must inject an LLM service and the local model must be loaded), which implies when the tool can be used at all. However there is no explicit 'use this instead of ACTION_HTTP_REQUEST' guidance and no statement of when this tool is inappropriate.

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