Skip to main content
Glama

Chat with an LLM

vivid_chat

Run one non-streaming chat completion through VIVID's LLM routing, billed in credits per token, and return the reply text, token usage, and credits charged.

Instructions

Run one chat completion on VIVID's LLM routing (Grok, Claude, OpenAI GPT via Kie.ai; Kimi via Wavespeed) paid in credits: provider price + 50%, billed per token (list with vivid_list_models type="llm", prices in credits per 1M tokens). Non-streaming. Pass the full conversation each call (system/user/assistant); image parts as {type:"image_url", image_url:{url}} on vision models. Returns the reply text, token usage and the credits charged.

Input Schema

NameRequiredDescriptionDefault
modelNoModel slug from vivid_list_models type="llm" (grok-4.6, claude-sonnet-5, gpt-5.6-terra, kimi-k2-5…). Default: the account default (Grok 4.6).
messagesYes
maxTokensNo
reasoningEffortNoGrok / GPT only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.36.0

TDQS

A4.2/5.0
Behavior3/5

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

With annotations already declaring openWorldHint=true and non-idempotent/non-destructive, the description adds genuinely useful behavior: per-token credit billing at a 50% markup on provider price, non-streaming execution, and statelessness requiring the entire conversation each call. It omits failure modes, rate limits, and what happens on insufficient credits, so it is helpful but not complete.

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?

It is front-loaded with the operation and pricing, and nearly every clause carries information an agent needs. The heavy nested parentheticals (provider list, billing formula, model-listing hint, image shape) make it dense to scan, which is the only real cost.

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

Completeness5/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 the description covers the return payload anyway (reply text, token usage, credits charged). Combined with pricing, statelessness, model discovery, and multimodal input format, an agent has enough to call it correctly on the first try.

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?

At 50% schema coverage, the description compensates for the undocumented 'messages' parameter by explaining the stateless full-history requirement and restating the image-part shape qualified by 'on vision models'. It says nothing about maxTokens (default 2000, cap 16000) or reasoningEffort behavior beyond the schema's own notes, leaving one gap.

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?

States a specific verb and resource ('Run one chat completion on VIVID's LLM routing') and enumerates the providers behind it, which cleanly separates it from the image/video/music generation siblings. 'Non-streaming' further pins down the exact operation.

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 gives usable context: list models via vivid_list_models type="llm", expect credit billing at provider price + 50%, and pass the full conversation each call. It never explicitly says when to prefer this over a sibling or what it cannot do, so it stops short of full when/when-not guidance.

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