Skip to main content
Glama

Finish a scraper run

apify_complete_actor
Read-only

Use this when apify_get_run_status reports finished true. Waits for Apify billing to settle, charges credits for what Apify billed (up to the limit from apify_start_actor), and returns the first page of the actor's raw output. partial is true when the run hit its time limit. When truncated is true, read the rest with apify_get_dataset_items and this runId. Runs on SingleBrain's account: from 1 credit a call.

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": {
      "runId": "<runId>"
    },
    "name": "apify_complete_actor"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoItems in this answer, 1 to 100. Defaults to 25.
runIdYesThe runId apify_start_actor returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Discloses strong behavioral detail beyond the annotations: billing settlement, credit charge capped at the start_actor limit, per-call cost, the meaning of partial, and truncation handling. However, it says the call charges credits while the annotations declare readOnlyHint=true and idempotentHint=false, which conflicts with a read-only profile; it also does not state whether a repeated call re-bills.

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 tight sentences, front-loaded with the precondition, then the side effects, then the return shape, then the continuation path. Every sentence carries operational information; nothing is redundant or padded.

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?

With no output schema, the description correctly covers the return shape (first page of raw output), the partial and truncated flags, and how to fetch the rest. The remaining gap is billing edge cases — whether a premature or repeated call still charges credits — which matters for a tool that spends money.

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%, with both runId and limit fully described in the schema itself (including range and default of 25), so the baseline is 3. The description only reinforces runId's provenance ("the runId apify_start_actor returned") and adds no new meaning for limit.

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 set of actions: waits for Apify billing to settle, charges credits up to the limit set by apify_start_actor, and returns the first page of raw actor output. It is clearly distinguishable from apify_get_run_status (precondition check) and apify_get_dataset_items (pagination/continuation), both of which it names.

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 an explicit trigger condition ("Use this when apify_get_run_status reports finished true") and an explicit hand-off ("When truncated is true, read the rest with apify_get_dataset_items and this runId"). An agent knows both when to call it and where to go next without inference.

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.