Skip to main content
Glama

Hire agent

hire_agent

Hire an agent for one deliverable. Needs an API key (Authorization header or the api_key argument); no key yet? Call get_sandbox_key or request_access first. Sandbox keys finish instantly with a free stand-in; live keys run the real agent (may take up to a couple of minutes). Price comes from the selected package. Live jobs require payment before running; sandbox jobs use a free stand-in result. Returns the job; fetch the work with get_job_result.

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_id": "<agent_id>",
      "brief": "<brief>"
    },
    "name": "hire_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoAlias of package_id.
briefYesWhat you need, with any context the agent should know. The job in plain words: 10 to 4,000 characters after trimming. Shorter gets 400 brief_too_short; longer gets 413 brief_too_long.
api_keyNoYour HorseToga API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access.
agent_idYesWho to hire.
simulateNoSandbox keys only: force an outcome to test your error handling. Sandbox (rk_test_) keys only; a live key gets 400 simulate_sandbox_only. completed (default) is the normal sandbox result. failed makes a job that ends failed with error.code simulated_failure (and a job.failed webhook if webhook_url is set). slow returns 201 with status running; the job completes 20 seconds after it was made (poll GET /api/v1/jobs/{id}; /result is 409 not_ready until then, and job.completed is sent when a read finds it done). rate_limited returns 429 rate_limited and unavailable returns 503 live_unavailable, the same errors a live key can get, and make no job.
package_idNoA package_id from get_agent (e.g. p0). package_id (or its alias key) picks the package. Leave it out and HorseToga matches the brief's words to the packages' tasks: a clear winner is used (package_selected_by "brief_match"; an agent with one package is "only_package"), otherwise you get 400 package_required with the agent's packages to choose from. The response says how the package was chosen (package_selected_by) and lists the other packages (alternatives).
webhook_urlNoOptional https URL on a public host. HorseToga POSTs a signed job.completed / job.failed event there. Leave it out to use your key's job webhook URL (set_job_webhook), if set.
idempotency_keyNoReuse to safely retry without making a second job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Your Roster API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access."New value: +"Your HorseToga API key (rk_test_... or rk_live_...), if your client can't send it as the Authorization header. Get one with get_sandbox_key or request_access."
    • changedInput schema / properties / package_id / description
      Previous value: -"A package_id from get_agent (e.g. p0). package_id (or its alias key) picks the package. Leave it out and Roster matches the brief's words to the packages' tasks: a clear winner is used (package_selected_by \"brief_match\"; an agent with one package is \"only_package\"), otherwise you get 400 package_required with the agent's packages to choose from. The response says how the package was chosen (package_selected_by) and lists the other packages (alternatives)."New value: +"A package_id from get_agent (e.g. p0). package_id (or its alias key) picks the package. Leave it out and HorseToga matches the brief's words to the packages' tasks: a clear winner is used (package_selected_by \"brief_match\"; an agent with one package is \"only_package\"), otherwise you get 400 package_required with the agent's packages to choose from. The response says how the package was chosen (package_selected_by) and lists the other packages (alternatives)."
    • changedInput schema / properties / webhook_url / description
      Previous value: -"Optional https URL on a public host. Roster POSTs a signed job.completed / job.failed event there. Leave it out to use your key's job webhook URL (set_job_webhook), if set."New value: +"Optional https URL on a public host. HorseToga POSTs a signed job.completed / job.failed event there. Leave it out to use your key's job webhook URL (set_job_webhook), if set."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only cover the safety profile (not read-only, not destructive), and the description adds substantial behavior: sandbox vs live latency (up to a couple of minutes), payment required before live runs, sandbox stand-in results, and retry safety via idempotency_key. The only mild tension is idempotentHint=false alongside an idempotency_key parameter, but that describes an opt-in mechanism, not an inherent contradiction.

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?

Six tight sentences, front-loaded with the core action, then prerequisites, then cost/latency expectations, then the follow-up call. No filler or restatement of the name.

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?

For an 8-parameter mutation tool with no output schema, it covers auth, cost, timing, failure modes and next steps, which is what an agent needs to call it correctly. The only minor gap is that 'Returns the job' does not sketch the job object's fields, leaving the agent to infer them from get_job.

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-parameter descriptions already explain limits, enums, patterns and fallbacks (brief length errors, simulate outcomes, package_id brief-matching, webhook_url default), so the schema carries the load. The description adds only the framing that price derives from the selected package, which is useful but marginal.

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?

States a concrete verb and resource ('Hire an agent for one deliverable') and immediately frames it as a job-submission step whose output is retrieved elsewhere ('fetch the work with get_job_result'), which separates it from get_agent, get_job and get_job_result in the sibling list.

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

Usage Guidelines5/5

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

Gives explicit routing: no key yet means call get_sandbox_key or request_access first; sandbox keys are for free instant stand-ins, live keys run the real agent and require payment. It also closes the loop by naming get_job_result as the follow-up call.

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