Skip to main content
Glama

Swarms Marketplace

swarms chat

post_swarms-chat

swarms chat Calls POST /api/swarms-chat on swarms.world with your API key.

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": {
      "message": "<message>",
      "systemPrompt": "<systemPrompt>",
      "promptId": "<promptId>"
    },
    "name": "post_swarms-chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
imgNoOne base64 image without the data: prefix
imgsNoEvery attached base64 image. Non-string entries are dropped; sent only when non-empty. The web client sends both img and imgs
modelNoOne of gpt-5.4, claude-haiku-4-5-20251001, gemini-2.0-flash, gpt-5, gemini-2.5-pro, claude-4-opus-20250514, claude-4-sonnet-20250514, claude-haiku-4-5, claude-opus-4-1, claude-sonnet-4-5, xai/grok-4, xai/grok-4-fast-reasoning, xai/grok-4-fast-non-reasoning, xai/grok-4-latest, or any chat model the Swarms API lists at GET /v1/models/available (cached for an hour). An empty string falls back to the defaultgpt-5.4
historyNoEarlier turns, forwarded unchecked to the Swarms API. The web client sends an object keyed message1, message2, …; an empty object is dropped
messageYesThe user turn, sent to the Swarms API as `task`
promptIdYesId of the marketplace prompt being chatted with. Must be non-empty; not otherwise read or checked
promptNameNoAgent name the model answers to. Blank falls back to "Agent". Must be a string: another type crashes the route with a 500Agent
systemPromptYesThe prompt body. The route prefixes an identity block built from `promptName` / `promptDescription` and sends it as the agent system prompt
agent_settingsNoSwarms AgentSpec overrides. When present, EVERY field is required (it is the full settings object the web client stores, not a partial); a failing object is a 400 with `issues`. Nulls and empty arrays are dropped, and agent_name, description, system_prompt, model_name, streaming_on and publish_to_marketplace are always set by the route. Without it the agent runs with max_tokens 32000, role worker, max_loops 1, reasoning_effort low
search_enabledNoOnly the literal `true` enables web search. The agent then runs 2 loops and the whole reply arrives as one `chunk` event instead of token by token
promptDescriptionNoAgent description; also the agent `description` (falls back to the name). Must be a string: another type crashes the route

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

D1.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is partly covered. The description adds only that an API key is used against a specific host; it says nothing about what gets created, whether the call consumes credits, how streaming behaves (the schema hints at a search-triggered streaming change), or what comes back.

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

Conciseness2/5

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

One short sentence is technically concise but front-loads transport detail instead of purpose; this is under-specification rather than efficiency. The one useful nugget (API key required, specific host) could have been paired with a single purpose clause at no length cost.

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

Completeness1/5

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

With 11 parameters including a large nested agent_settings object and no output schema, this is a complex tool whose description explains none of its behavior or return value. The endpoint plus auth note is nowhere near enough for an agent to call this correctly relative to the complexity involved.

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% and the per-field descriptions are unusually detailed (history shape, agent_settings completeness rule, promptName type crash), so the schema carries the full burden. The description contributes no additional parameter meaning beyond what is already structured, which is the baseline case for a 3.

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

Purpose2/5

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

"Calls POST /api/swarms-chat on swarms.world" restates the tool name as an HTTP route rather than stating what the tool accomplishes semantically (send a chat turn to a marketplace prompt and get a model reply). Nothing distinguishes it from siblings like post_swarms_agent-completions or post_swarms_swarm-completions, which an agent would need to choose between.

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

Usage Guidelines1/5

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

There is no when-to-use guidance at all: no prerequisites, no conditions that select this over the agent-completions or swarm-completions siblings, and no note on cost or side effects. An agent has to infer everything from the schema alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources