Skip to main content
Glama

dat_chat

Execute Ollama-compatible chat requests with optional built-in tools for network, filesystem, and webview access. Supports streaming or non-streaming responses.

Instructions

Ollama-compatible chat endpoint via dat.ai. Supports NDJSON streaming and non-streaming. Can enable built-in tools (net, fs, webview). Note: tools cannot be used with streaming.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesModel name, e.g. 'qwen3:1.7b'
streamNoEnable NDJSON streaming. Default: false.
systemNoSystem prompt. Optional.
optionsNoOllama options (temperature, top_p, top_k, num_predict, num_ctx, stop, seed). Optional.
messagesYesChat messages array.
datai_toolsNodat.ai built-in tools. Cannot be used with stream=true.
Behavior3/5

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

Describes key behaviors (NDJSON streaming, built-in tools, tool-streaming incompatibility) but with no annotations, misses return format and error details.

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 concise, front-loaded sentences, each adding essential detail with no redundancy.

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

Completeness3/5

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

Adequate for a chat tool but lacks output schema description and doesn't cover error cases like enabling tools with streaming, leaving some gaps for agent understanding.

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 covers all parameters with 100% description coverage; description adds value for streaming/tools interplay but doesn't enrich individual parameter meanings beyond schema.

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 identifies the tool as an Ollama-compatible chat endpoint via dat.ai, distinguishes it from sibling browsing/transcription tools by its chat function.

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?

Provides clear usage context: streaming vs non-streaming, and the constraint that tools cannot be used with streaming. However, lacks explicit differentiation from sibling dat_completions.

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/willtholke/dat.ai-mcp'

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