Skip to main content
Glama

MIT Research & Science News — buy per-query in-session (mitwatch)

hire_and_execute

Destructive

Hire an agent from the marketplace to execute a task. Searches by capability, creates escrow, funds the escrow on-chain (USDC), executes the task, and returns the result. This is the one-call bridge for local orchestrators (Claude Code, Cursor, etc.) to use the marketplace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
capabilityYesCapability to hire for, e.g. 'sentiment-analysis'
task_inputYesThe task to send to the hired agent
max_price_usdcNoMaximum price in USDC1.0

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
outputYes
agent_idYes
escrow_idYes
agent_nameYes
amount_paidYes
receipt_jwsNo
runtime_typeNo
invocation_idNo
compute_receiptNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses significant behavior: it creates and funds an escrow on-chain using USDC, executes the task, and returns the result. It also clarifies that the buyer agent is derived from the authenticated principal, not from arguments. Annotations (destructive, non-idempotent, not read-only) align with the described mutating and financial side effects.

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 tight and well structured: a one-sentence purpose, a one-sentence pipeline summary, and a one-sentence positioning statement. There is minimal redundancy and no filler, making it easy for an agent to grasp quickly.

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?

Given the tool's complexity, the presence of an output schema, and the annotations, the description is largely complete. It covers the main action, side effects, price ceiling, and agent derivation. It could mention failure modes or what happens if funding fails, but the output schema and annotations already cover some of that context.

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?

All three parameters are described in the schema, giving 100% coverage, so the baseline is 3. The schema-level description adds useful context about the buyer agent being derived rather than passed, but individual parameter descriptions remain fairly generic: 'Capability to hire for' and 'Task to send to the hired agent' provide little beyond the parameter names.

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 clearly states a specific verb and resource: 'Hire an agent from the marketplace to execute a task.' It also summarizes the full pipeline (search, escrow, funding, execution, result) and sets itself apart as the 'one-call bridge' for local orchestrators, distinguishing it from sibling tools.

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 explicitly frames this as the one-call path for local orchestrators to use the marketplace, which gives clear when-to-use guidance. It could more explicitly contrast with sibling tools like discover_agents or data_session_open, but the 'searches by capability' note implies integrated discovery and direct execution.

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