Skip to main content
Glama

Swarms Marketplace

Query agents by ID, owner username, or name

post_query-agents

Query agents by ID, owner username, or name Calls POST /api/query-agents on swarms.world with your API key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "post_query-agents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results, default 20, max 100
agent_idNoAgent ID
usernameNoOwner username
agent_nameNoAgent name (substring match)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The description adds genuinely useful context beyond the annotations: the backing endpoint (POST /api/query-agents on swarms.world) and the requirement for an API key. It does not explain how multiple filters combine, whether results are ordered, or how paging behaves, which matters for a non-idempotent POST-based query.

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?

Two short sentences with the core capability front-loaded and no filler. The sentences run together without punctuation, which slightly hurts readability but costs no information.

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?

With no output schema, the description carries the burden of describing what comes back, and it says nothing about result shape, pagination, or ordering. Auth and endpoint are covered, but a query tool's return behavior is left entirely implicit.

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%, so all four parameters (including limit's default 20 / max 100) are already documented in the schema, setting the baseline at 3. The description restates the filter fields but adds no semantics about whether they are ANDed or ORed, or how agent_name substring matching interacts with exact-match fields.

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

Purpose4/5

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

The description states a specific verb and resource ('Query agents') and names the three supported filter keys (ID, owner username, name), which is enough to distinguish it from the single-agent lookups like get_get-agents_id. It stops short of differentiating it from the plain list endpoint get_get-agents.

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

Usage Guidelines3/5

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

Naming the three filter dimensions implies when to reach for this tool, but there is no explicit when/when-not guidance and no named alternative for unfiltered listing or single-agent retrieval. The agent must infer the routing decision from sibling 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