Skip to main content
Glama

Run a capability

hydracept_run
Destructive

Run a capability (paid). Use when the user wants execution — not for quotes (hydracept_quote_capability), status (hydracept_job_status), or receipts (hydracept_get_receipt). Default wait=true waits until the job finishes; use hydracept_submit_job when this call must return immediately. Picks invoke vs durable job from the capability descriptor. Requires bearer key. Settles at actual provider cost plus any managed service fee; no per-call minimum. May create jobs, artifacts, and provider usage. Returns: Terminal hydracept.run-result.v1 or job envelope when wait=false. Errors: WORKSPACE_KEY_REQUIRED, INVALID_ARGUMENT, FundingRequired, EXECUTION_FAILED, job timeout when wait exhausts.

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": {
      "capability_key": "<capability_key>"
    },
    "name": "hydracept_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoRequired capability input object (schema fields). Merged with session project context when bound.
waitNoBoolean, default true. When true, poll until succeeded/failed/canceled or timeout. When false, return job id and poll with hydracept_job_status.
inputNoAlias for body; do not pass both.
timeoutNoSeconds to poll when wait=true; omit to poll until terminal with no tool-side limit (the MCP client request timeout may end the call first). On timeout, status may stay running — call hydracept_job_status.
max_costNoOptional number (USD): sets execution.executionConstraints.maxCostUsd before submit.
capability_keyYesRequired capability registry key for POST .../jobs.
idempotency_keyNoOptional string; server generates run-{uuid} when empty. Reuse for safe retries.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"Required capability input object (schema fields). Merged with session project context when bound."
    • addedInput schema / properties / capability_key / description
      Added value: +"Required capability registry key for POST .../jobs."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Optional string; server generates run-{uuid} when empty. Reuse for safe retries."
    • addedInput schema / properties / input / description
      Added value: +"Alias for body; do not pass both."
    • addedInput schema / properties / max_cost / description
      Added value: +"Optional number (USD): sets execution.executionConstraints.maxCostUsd before submit."
    • addedInput schema / properties / timeout / description
      Added value: +"Seconds to poll when wait=true; omit to poll until terminal with no tool-side limit (the MCP client request timeout may end the call first). On timeout, status may stay running — call hydracept_job_status."
    • addedInput schema / properties / wait / description
      Added value: +"Boolean, default true. When true, poll until succeeded/failed/canceled or timeout. When false, return job id and poll with hydracept_job_status."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, openWorld=true, and non-idempotent, so safety is partly covered; the description still adds cost settlement at provider cost plus fee, absence of a per-call minimum, the bearer-key requirement, side effects (jobs, artifacts, provider usage), and timeout behavior on wait exhaustion. The main gap is that idempotency_key retry safety is only spelled out in the schema, not reinforced here.

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?

Front-loads purpose, then alternates, then cost/auth/error envelope; nearly every clause carries usable information. It is a single dense paragraph, and the trailing error-code list plus return-contract sentence overlap with the output schema.

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?

Covers auth, cost model, side effects, wait semantics, and the failure modes that matter for a paid mutating call, which is enough for correct invocation. Return formats are described even though an output schema exists, making that clause redundant rather than missing.

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 the schema already documents body/input aliasing, wait, timeout, and idempotency_key in more detail than the description does. The description's only real addition is the operational meaning of wait=true versus wait=false and the pointer to submit_job, which the schema largely duplicates.

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 specific verb and resource ("Run a capability") plus the billing trait (paid), and immediately names what it is not: quotes, status, receipts. An agent can separate it from every listed sibling without opening a schema.

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?

Explicit routing: use for execution, not hydracept_quote_capability / hydracept_job_status / hydracept_get_receipt, and switch to hydracept_submit_job when the call must return immediately. Also states the invoke-vs-durable-job selection rule, which is a decision an agent would otherwise have to guess.

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.