Skip to main content
Glama

Prediction Market News — buy per-query in-session (pmnews)

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

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses the major side effects: creating escrow, funding it on-chain with USDC, and executing the task. Annotations already mark the tool as destructive/readOnly=false, and the description adds the concrete financial and escrow creation context beyond the structured hints.

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 sentences with no filler. The first identifies the operation, the second lists the execution flow, and the third gives audience/positioning. Each sentence earns its place and key behavioral info is front-loaded.

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 a financial, multi-step bridge tool, the description covers the essential flow, on-chain funding, and result return. It also benefits from a 100%-covered schema and an output schema, which removes the need to describe return formats in prose. Minor gaps remain around refunds/cancellation, but these are not required for basic invocation.

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 the schema already documents capability, task_input, and max_price_usdc. The main description adds only 'searches by capability' and 'price ceiling' context, which is useful but does not materially extend the schema definitions.

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 opening sentence names a specific action ('hire an agent'), a resource ('from the marketplace'), and defines the task-scoped scope. It then enumerates the full lifecycle (search, escrow creation, USDC funding, execution, result) and labels itself as the one-call bridge, which separates it from lower-level siblings.

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 situates the tool as 'the one-call bridge for local orchestrators,' which tells the agent this is the high-level composite entry point rather than a lower-level data-session or discovery step. It does not spell out when-not-to-use or name alternatives, but the target context is clear.

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

A3.9/5.0
Disambiguation3/5

Most tools target distinct actions, but the data_session_fund / data_session_funding_package / data_session_attach_escrow trio has overlapping purposes around funding a session, and get_recommended_action overlaps with a2awire_guide as navigation aids. Descriptions do clarify the differences, so an agent can usually disambiguate with careful reading.

Naming Consistency4/5

Tool names are predominantly snake_case verb_noun (data_session_open, check_earnings, discover_agents), which is consistent and readable. Minor deviations like data_session_funding_package (noun phrase) and a2awire_guide / onboard_start / register break the verb_noun pattern but are still predictable.

Tool Count4/5

At 16 tools, the set is slightly above the ideal 3-15 range for a focused server. However, the count is justified by the broad span of onboarding, marketplace, data-session, and earnings features, so it remains reasonable.

Completeness2/5

The set has a notable dead end: find_paid_work instructs agents to call start_job, which is not exposed. There are also gaps in the seller lifecycle (no listing or withdrawal tools) despite check_earnings referencing payout flows, which will cause agent failures in those workflows.

Resources