Skip to main content
Glama

Create Run (beta)

alterlab_run_create
Idempotent

Submit a plan of scrape and search steps (beta feature) with a required max_credits budget. Returns the run id, its state and one summed estimate; nothing executes until alterlab_run_approve (or auto_approve when the estimate fits the budget). Use dry_run to validate and estimate without storing a run. The same idempotency_key with the same plan returns the original run. Requires the agent-runs beta to be enabled for the account.

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": {
      "max_credits": "<max_credits>",
      "steps": "<steps>"
    },
    "name": "alterlab_run_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYesPlan steps
dry_runNoValidate and estimate only; store nothing
max_creditsYesHard credit budget for the whole run
webhook_urlNoOptional URL that receives run.* events
auto_approveNoStart immediately when the estimate is within max_credits
idempotency_keyNoMakes a retried create return the original run

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare idempotent/open-world/non-destructive, and the description adds real behavioral context beyond them: staged execution gated on approval, dry_run stores nothing, retry semantics keyed on the same plan plus same key, and an account-level beta gate. That is exactly the kind of operational disclosure annotations cannot carry.

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?

Four sentences, each doing distinct work: what it does, what comes back, what gates execution, then the dry_run and idempotency behaviors. The execution gate is front-loaded, so the most decision-relevant fact arrives first.

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 6-parameter mutation tool with no output schema, the description covers the return contents, the approval gate, the beta prerequisite, and the two most subtle parameters. It is silent on failure behavior — notably what happens when the estimate exceeds max_credits — and never mentions webhook_url, leaving the agent dependent on the schema alone for those.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns one above it by framing max_credits as a hard ceiling against a single summed estimate and by clarifying the idempotency condition (same key *and* same plan). It does not explain step dependencies or for_each semantics, leaving those entirely to the nested item schema.

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?

"Submit a plan of scrape and search steps... with a required max_credits budget" gives a specific verb (submit) plus resource (run plan) and immediately states the return payload (run id, state, summed estimate). It also explicitly distinguishes itself from the sibling alterlab_run_approve, which is the tool that actually triggers execution.

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 when-to-use context is explicit: nothing executes until alterlab_run_approve, dry_run is the validate-only path, and an idempotency_key replays the original run. It also states a prerequisite (the agent-runs beta must be enabled). The gap is that other plausible alternatives in the sibling set — alterlab_estimate_cost, alterlab_batch, alterlab_workflow_run — are never contrasted, so an agent choosing between plan-based runs and batch/workflow tooling gets no routing help.

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.