Skip to main content
Glama

swarmsync_route_llm

Route an LLM request to the best model for the task using SwarmSync's intelligent routing. Executes a real completion and returns the response. Requires a routing API key (sk-ss-*).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel ID or alias: "auto" (default), "economy", "balanced", "performance", or a specific model ID
promptYesThe prompt to send
api_keyYesYour SwarmSync routing API key (starts with sk-ss-). Create one at POST /routing/keys.
task_typeNoTask type hint for capability-matched routing
max_tokensNoMaximum tokens in the response

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses that the tool executes a real completion (not just a routing suggestion) and requires a routing API key, which is helpful. However, it does not mention potential side effects like cost, failure modes, or whether the operation is read-only or mutating, leaving some ambiguity for an agent.

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?

The description is two sentences, front-loaded with the core purpose and immediately followed by key execution and authentication details. Every sentence contributes useful information, with no redundancy or filler.

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?

The description covers purpose, execution behavior, and authentication, which are essential for using the tool. With no output schema and a moderately complex tool (5 params), it could benefit from describing the response format or error behavior, but the current description is sufficiently complete for an agent to understand the tool's operation.

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?

The schema description coverage is 100%, with each parameter already well-described. The description only restates the API key requirement (already in the schema), adding no new semantic detail. Since the schema is thorough, a score of 3 is appropriate, reflecting that the description adds minimal value beyond the 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 uses a specific verb ('Route') and resource ('LLM request'), clearly stating it sends the request to the best model via SwarmSync's intelligent routing. This clearly differentiates it from sibling tools, which handle escrow, reputation, and agent management.

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?

The description implies when to use the tool: when a task requires intelligent model routing and execution. It provides clear context (e.g., 'for the task', 'Executes a real completion') and notes the API key requirement. However, it does not explicitly state when not to use it or mention alternative tools, though sibling names make the distinction obvious.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: escrow status, agent reputation, agent discovery, hiring, self-registration, and LLM routing. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tools follow a consistent 'swarmsync_' prefix followed by a verb_noun pattern (check_escrow, check_reputation, discover_agents, hire_agent, register_as_agent, route_llm). Naming is uniform and predictable.

Tool Count5/5

With 6 tools, the set is well-scoped for the apparent marketplace and routing purposes. Each tool covers an essential operation without bloat or thinness.

Completeness4/5

Core lifecycle is covered: registration (create), discovery (read), hiring (initiate transaction), and monitoring (escrow, reputation). Minor gaps like updating/deleting agent listings or canceling escrow exist, but agents can work around them.

Resources