Skip to main content
Glama
actors-mcp-server

actors-mcp-server

Official
by apify

Call Actor

call-actor
Destructive

Run any Apify Actor by name with input JSON, wait up to 45 seconds for completion, and fetch its results from the stored dataset.

Instructions

Call any Actor from the Apify Store.

WORKFLOW:

  1. Use fetch-actor-details to get the Actor's input schema

  2. Call this tool with the actor name and proper input based on the schema

If the actor name is not in "username/name" format, use search-actors to resolve the correct Actor first.

An MCP server Actor with no input schema is not run here; call-actor-mcp-tool calls its MCP tools.

For Server Actors (Actors with an HTTP API):

  • This tool starts a batch run and stores the results in a dataset; use it when you need batch results

  • For one or a few results, send-server-actor-request returns them in the HTTP response, without a batch run

  • fetch-actor-details with output={ serverInterface: true } lists its HTTP operations

IMPORTANT:

  • Waits up to waitSecs (default 30s) for completion; returns run status and storage IDs, and with waitSecs > 0 also reports dataset field metadata

  • Use get-dataset-items with the datasetId to fetch results; non-terminal runs include a nextStep with polling instructions

There are two ways to use an Actor:

  1. Its dedicated tool, when the session has one: a Server Actor's tool sends one HTTP request to its API, an MCP server Actor's tools call its MCP server, and any other Actor's tool starts a run.

  2. The generic call-actor tool: starts a run of any Actor and stores the results in a dataset.

USAGE:

  • Prefer the dedicated tool when the session has one for the Actor

  • call-actor runs an Actor that has no dedicated tool, and batch work whose results belong in a dataset.

  • Use waitSecs (0–45) to control how long to wait. Default 30s returns results for fast actors. Use waitSecs: 0 to start and return immediately for long-running actors.

EXAMPLES:

  • user_input: Get instagram posts using apify/instagram-scraper

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": {
      "actor": "<actor>",
      "input": "<input>"
    },
    "name": "call-actor"
  }
}

Input Schema

NameRequiredDescriptionDefault
actorYesThe Actor to call: its ID, or its name in the "username/name" form (e.g., "apify/rag-web-browser").
inputYesThe input JSON to pass to the Actor. Required.
waitSecsNoSeconds to wait for completion (0–45, default 30). Returns with current run status if not terminal within waitSecs.
callOptionsNoOptional run config: memory (MB), timeout (s), build, maxItems (pay-per-result cap), maxTotalChargeUsd (pay-per-event cap).

Output Schema

NameRequiredDescriptionDefault
tipNoAdvisory guidance RAG Web Browser wrote to its key-value store under the reserved "TIP" key
runIdYesActor run ID
statsNoRun statistics
statusYesRun status: READY | RUNNING | TIMING-OUT | TIMED-OUT | ABORTING | ABORTED | SUCCEEDED | FAILED
actorIdYesStable Apify Actor ID from the run record
summaryYesPast-tense summary of the run state
exitCodeNoActor process exit code; populated for terminal states (especially FAILED)
nextStepYesOne primary follow-up action with identifiers interpolated
storagesYesDataset and key-value store metadata, keyed by alias. "default" is always the primary entry.
actorNameNo"username/actor-name"
startedAtNoISO timestamp when the run started
finishedAtNoISO timestamp when the run finished (terminal states only)
statusMessageNoPass-through from Apify run.statusMessage
apifyConsoleUrlNoPersonalized Apify Console link to the run; present only for Console sessions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.21.10
    • addedInput schema / properties / actor / maxLength
      Added value: +256
    • changedInput schema / properties / callOptions / properties / memory / description
      Previous value: -"Memory per run in MB. Power of 2 from 128 to 32768.\nApify also caps total memory across all your concurrent runs (account plan limit); a run that would exceed that quota is rejected."New value: +"Memory per run in MB. Power of 2 from 128 to 32768.\nThe account memory limit covers all running Actor runs and builds; a run that would exceed it is rejected."
  2. Changed2 schema fields changedv0.21.5
    • changedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / fields / description
      Previous value: -"Dataset field paths in dot notation (e.g. [\"metadata.url\"])"New value: +"Paths that work as a fields selection (e.g. [\"results\", \"metadata.url\"]); an array field appears by its top-level name."
    • changedOutput schema / properties / storages / properties / datasets / properties / default / properties / fields / description
      Previous value: -"Dataset field paths in dot notation (e.g. [\"metadata.url\"])"New value: +"Paths that work as a fields selection (e.g. [\"results\", \"metadata.url\"]); an array field appears by its top-level name."
  3. Changed1 schema field changedv0.19.5
    • changedInput schema / properties / actor / description
      Previous value: -"The Actor to call: its ID, or its name in the \"username/name\" form (e.g., \"apify/rag-web-browser\").\n\nFor MCP server Actors, use format \"actorName:toolName\" to call a specific tool (e.g., \"username/name:tool-name\")."New value: +"The Actor to call: its ID, or its name in the \"username/name\" form (e.g., \"apify/rag-web-browser\")."
  4. Changed2 schema fields changedv0.18.3
    • changedInput schema / properties / callOptions / properties / memory / description
      Previous value: -"Memory per run in MB. Power of 2 from 128 to 32768.\nApify also caps total memory across all your concurrent runs (account plan limit); if a run is rejected because that quota would be exceeded, retry with a smaller value."New value: +"Memory per run in MB. Power of 2 from 128 to 32768.\nApify also caps total memory across all your concurrent runs (account plan limit); a run that would exceed that quota is rejected."
    • changedInput schema / properties / input / additionalProperties
      Previous value: -{}New value: +true
  5. Changed2 schema fields changedv0.18.2
    • changedInput schema / properties / actor / description
      Previous value: -"The Actor to call: its ID, or its name in the \"username/name\" form (e.g., \"apify/rag-web-browser\").\n\nFor MCP server Actors, use format \"actorName:toolName\" to call a specific tool (e.g., \"apify/actors-mcp-server:fetch-apify-docs\")."New value: +"The Actor to call: its ID, or its name in the \"username/name\" form (e.g., \"apify/rag-web-browser\").\n\nFor MCP server Actors, use format \"actorName:toolName\" to call a specific tool (e.g., \"username/name:tool-name\")."
    • addedOutput schema / properties / tip
      Added value: +{
      +  "description": "Advisory guidance RAG Web Browser wrote to its key-value store under the reserved \"TIP\" key",
      +  "properties": {
      +    "caveat": {
      +      "description": "Present when this session cannot run the Actor the tip recommends",
      +      "type": "string"
      +    },
      +    "level": {
      +      "description": "Omitted when the Actor wrote an unrecognized level",
      +      "enum": [
      +        "info",
      +        "warning"
      +      ],
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "Truncated to 300 characters, with a trailing ellipsis if the Actor's message was longer",
      +      "type": "string"
      +    },
      +    "recommendedActorId": {
      +      "description": "Apify Actor ID the tip recommends, when it names one",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "message"
      +  ],
      +  "type": "object"
      +}
  6. Changed1 schema field changedv0.17.1
    • changedInput schema / properties / actor / description
      Previous value: -"The name of the Actor to call. Format: \"username/name\" (e.g., \"apify/rag-web-browser\").\n\nFor MCP server Actors, use format \"actorName:toolName\" to call a specific tool (e.g., \"apify/actors-mcp-server:fetch-apify-docs\")."New value: +"The Actor to call: its ID, or its name in the \"username/name\" form (e.g., \"apify/rag-web-browser\").\n\nFor MCP server Actors, use format \"actorName:toolName\" to call a specific tool (e.g., \"apify/actors-mcp-server:fetch-apify-docs\")."
  7. Changed2 schema fields changedv0.15.3
    • addedOutput schema / properties / storages / properties / datasets / required
      Added value: +[
      +  "default"
      +]
    • addedOutput schema / properties / storages / properties / keyValueStores / required
      Added value: +[
      +  "default"
      +]
  8. Changed14 schema fields changedv0.11.4
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / apifyConsoleUrl
      Added value: +{
      +  "description": "Personalized Apify Console link to the dataset; present only for Console sessions",
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / fields
      Added value: +{
      +  "description": "Dataset field paths in dot notation (e.g. [\"metadata.url\"])",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / id / description
      Added value: +"Dataset ID"
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / inflatedBytes
      Added value: +{
      +  "description": "Approximate uncompressed byte size of the dataset. Use with itemCount to pick limit/fields before fetching.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / itemCount
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / datasets / additionalProperties / properties / title
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / storages / properties / datasets / properties / default / properties / cleanItemCount
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / apifyConsoleUrl
      Added value: +{
      +  "description": "Personalized Apify Console link to the store; present only for Console sessions",
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / id / description
      Added value: +"Key-value store ID"
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / keyCount
      Added value: +{
      +  "description": "Total number of keys (omitted when truncated)",
      +  "type": "number"
      +}
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / keys
      Added value: +{
      +  "description": "Up to 50 key names",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / keyValueStores / additionalProperties / properties / title
      Added value: +{
      +  "type": "string"
      +}
  9. Changed4 schema fields changedv0.11.2
    • addedOutput schema / properties / apifyConsoleUrl
      Added value: +{
      +  "description": "Personalized Apify Console link to the run; present only for Console sessions",
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / datasets / properties / default / properties / apifyConsoleUrl
      Added value: +{
      +  "description": "Personalized Apify Console link to the dataset; present only for Console sessions",
      +  "type": "string"
      +}
    • addedOutput schema / properties / storages / properties / datasets / properties / default / properties / inflatedBytes
      Added value: +{
      +  "description": "Approximate uncompressed byte size of the dataset. Use with itemCount to pick limit/fields before fetching.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / storages / properties / keyValueStores / properties / default / properties / apifyConsoleUrl
      Added value: +{
      +  "description": "Personalized Apify Console link to the store; present only for Console sessions",
      +  "type": "string"
      +}
  10. First observedv0.10.13

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-idempotent, but the description adds the crucial behavioral facts: it blocks up to waitSecs, returns run status plus storage IDs, emits dataset field metadata when waitSecs > 0, and non-terminal runs carry a nextStep with polling instructions. It also discloses the downstream step needed to get results (get-dataset-items with datasetId).

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 workflow, then constraints, usage, and an example. There is noticeable redundancy: the dedicated-vs-generic distinction is stated twice (the Server Actors block and the 'two ways to use an Actor' block), and the USAGE section repeats both.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with nested options, 4 parameters, and an output schema, the description covers prerequisites, blocking behavior, cost/memory caveats implied by callOptions, and the follow-up retrieval path. Nothing needed to invoke it correctly is missing.

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, but the description adds real meaning: waitSecs semantics are explained operationally (default 30s suits fast actors, 0 starts and returns immediately for long-running actors) and the input object's content is tied to the Actor's own input schema. callOptions is only summarized by re-listing its fields, which the schema already covers.

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+resource (call any Actor from the Apify Store) and immediately distinguishes itself from siblings: it is the generic runner versus dedicated tools, call-actor-mcp-tool, and send-server-actor-request. An agent can route correctly without opening any 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?

Explicitly names when to use this tool (no dedicated tool exists, batch work whose results belong in a dataset), when not to (MCP server Actor with no input schema is not run here; server actors with one/few results go to send-server-actor-request), and gives a prerequisite workflow including resolving the actor name via search-actors.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.