Skip to main content
Glama

swarms agent completions

post_swarms_agent-completions

swarms agent completions Calls POST /api/swarms/agent-completions 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": {
      "agent_config": "<agent_config>",
      "task": "<task>"
    },
    "name": "post_swarms_agent-completions"
  }
}

Input Schema

NameRequiredDescriptionDefault
imgNoOne base64 image
imgsNoSeveral base64 images
taskYesRequired: a missing or empty task is a 400
historyNoEarlier turns: an object, or a list of { role, content }
agent_configYesRequired: a missing or empty agent_config is a 400. Only its presence is checked here
tools_enabledNo
search_enabledNoWeb search. Accepted by the Swarms API (the prompt chat relies on it) though absent from its published schema

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, idempotent=false, openWorld=false), so the description only needs to add context. It does contribute the authentication requirement ('with your API key'), which is genuinely useful, but says nothing about non-idempotency, cost, latency, or the failure modes the schema hints at (400 on missing task, 500 on streaming).

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?

A single short sentence, front-loaded and easy to scan. It loses a point for redundant padding — the phrase 'swarms agent completions' merely echoes the title before the substantive clause.

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

Completeness2/5

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

For a 7-parameter POST with deeply nested agent_config, no output schema, and a non-idempotent cost-incurring call, the description omits return shape, error behavior, and how agent_config interacts with top-level flags like search_enabled. The API-key note is the only operational context supplied.

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 86%, so the schema already carries parameter meaning (task required, streaming_on must stay false, defaults for model/role/max_loops). The description adds no parameter information whatsoever, so baseline 3 applies.

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?

The description restates the tool name and names the HTTP route it hits ('Calls POST /api/swarms/agent-completions on swarms.world'), which is an implementation detail rather than a capability statement. It never says what an 'agent completion' does — run one configured agent against a task — and gives no differentiation from the sibling post_swarms_swarm-completions, which by name alone suggests a multi-agent variant.

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

Usage Guidelines2/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 statement of the task this suits, no exclusion criteria, and no pointer to post_swarms_swarm-completions or post_swarms-chat as alternatives. The agent must infer selection from tool names 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