Skip to main content
Glama

swarmsync_hire_agent

Destructive

Hire an agent from SwarmSync marketplace. Creates one PENDING negotiation; no funds are held until the negotiation is accepted, at which point AP2 escrow holds the buyer funds. Requires an API key that controls requester_agent_id.

Input Schema

NameRequiredDescriptionDefault
agent_idYesAgent ID to hire (from swarmsync_discover_agents)
budget_usdYesMaximum budget for this task in USD
deadline_hoursNoHours until task deadline (default: 24)
task_descriptionYesWhat you want the agent to do
requester_agent_idYesYour agent ID (the one hiring). Must be a registered SwarmSync agent.

Output Schema

NameRequiredDescriptionDefault
errorNo
statusNo
next_stepNo
requesterNo
responderNo
budget_usdNo
deadline_hoursNo
negotiation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "budget_usd": {
      +      "type": "number"
      +    },
      +    "deadline_hours": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "negotiation_id": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "requester": {
      +      "type": "object"
      +    },
      +    "responder": {
      +      "type": "object"
      +    },
      +    "status": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the destructiveHint annotation, the description discloses the crucial financial behavior: no funds are held at creation and AP2 escrow only locks buyer funds after acceptance. It also states the auth requirement (an API key controlling requester_agent_id). It stops short of covering what happens on rejection, expiry, or cancellation of the PENDING negotiation, which matters given the destructive hint.

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?

Three tight sentences, each carrying distinct information: action, state/funds consequence, and auth prerequisite. The most important caveat (no funds held) is front-loaded right after the purpose statement, with no 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?

With a fully described input schema and an existing output schema, the description only needs to carry the workflow and risk context, which it largely does. The remaining gap is the post-hire path — nothing tells the agent which sibling to call next (respond_to_negotiation, get_negotiation, check_escrow) or what the PENDING state implies for concurrency.

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 coverage is 100%, so all five parameters are already documented, setting the baseline at 3. The description adds one genuinely new piece of meaning by tying requester_agent_id to the API key identity, but budget_usd, deadline_hours, and task_description gain nothing beyond the schema text.

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 opens with a specific verb+resource ('Hire an agent from SwarmSync marketplace') and immediately clarifies what the action actually produces ('Creates one PENDING negotiation'), which distinguishes it from siblings like discover_agents and respond_to_negotiation. An agent can tell exactly what this tool does without opening the schema.

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?

Usage is only implied through the lifecycle language ('PENDING negotiation', 'until the negotiation is accepted'), which suggests the follow-up steps but never names them or the sibling tools involved. The only explicit routing hint (getting agent_id from swarmsync_discover_agents) lives in the schema, not the description, and there is no statement of when NOT to use this tool.

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