Skip to main content
Glama
actors-mcp-server

actors-mcp-server

Official
by apify

Send Server Actor request

send-server-actor-request
Destructive

Send a single HTTP request to an Actor Server's documented API endpoint using the method, path, query, and JSON body, with host and token added, to retrieve the response.

Instructions

Send one HTTP request to an Actor Server: the HTTP API of a Server Actor, documented in its API schema (OpenAPI) and README. fetch-actor-details with output.serverInterface returns the documented operations with their parameters. Give the method, the path, and optionally query parameters and a JSON body; the Actor Server's host and your Apify API token are added for you. Only an Actor with an Actor Server and an API schema takes requests here; the Actor accepts or rejects the method and path. A request to a single-tenant Actor Server can start a run of the Actor in your account, kept until its idle timeout; a multi-tenant Actor Server charges per event. The request is sent once, with no retries and without following redirects. A JSON, text, or XML response body is returned as text, cut at 262144 bytes; other content types are not returned.

Example call: {"actor": "apify/rag-web-browser", "method": "GET", "path": "/search", "query": {"query": "AI news", "maxResults": 3}}

USAGE:

  • Use when the Actor that fits the user's request has an Actor Server, and its API schema or README names the endpoint for the task.

  • Fits requests for one or a few results returned in the HTTP response. Larger batches depend on the endpoint and the response size and time limits.

USAGE EXAMPLES:

  • user_input: Search the web for the latest AI news and read the top pages with apify/rag-web-browser

  • user_input: Read https://docs.apify.com as Markdown with apify/rag-web-browser

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>",
      "method": "<method>",
      "path": "<path>"
    },
    "name": "send-server-actor-request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe JSON request body, sent as application/json. Not allowed with GET.
pathYesThe path of an operation in the Actor API schema, starting with /. Take it from the schema; do not guess it. A query string written into the path is sent too.
actorYesThe Actor: its ID, or its name in the "username/name" form, such as "apify/web-fetch".
queryNoQuery parameters of the operation, by name. A boolean is sent as true or false, and an array as a repeated parameter (name=a&name=b), or comma-joined (name=a,b) where the operation documents the parameter so. Added to a query string in the path.
methodYesHTTP method: GET, POST, PUT, PATCH, or DELETE. The Actor accepts or rejects it.

Output Schema

NameRequiredDescriptionDefault
bodyNoResponse body as text; empty when the response had none; its start when truncated; absent when omitted
pathYesPath sent, with its query
bytesNoSize of the body received in bytes, after decompression
methodYesHTTP method sent
reasonNoWhy the response body was omitted
statusYesHTTP status received
actorIdYesActor ID
summaryYesReadable summary of the HTTP response
tenancyYessingle-tenant: a run of the Actor in your account served the request; multi-tenant: a run of the Actor's owner did, charged per event
locationNoLocation header of a redirect, which is not followed
nextStepNoWhere to look to correct the request, or why the Actor Server refused it
actorNameYesActor full name (username/name)
interfaceYesThe Actor interface used: its Actor Server
bodyOmittedNoThe response arrived, but its body was not returned
contentTypeNoContent-Type of the response; absent when it had none
errorMessageNoThe error string of a JSON {"error": ...} error body; other error bodies are only in body
bodyTruncatedNoThe response body is longer than the limit; body holds its start

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.21.10
    • addedInput schema / properties / actor / maxLength
      Added value: +256
  2. Changed2 schema fields changedv0.21.5
    • changedInput schema / properties / body / anyOf
      Previous value: -[
      -  {
      -    "type": "object"
      -  },
      -  {
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "$ref": "#/properties/body"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / query / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "boolean"
      -        }
      -      ]
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "items": {
      +      "type": [
      +        "string",
      +        "number",
      +        "boolean"
      +      ]
      +    },
      +    "type": "array"
      +  }
      +]
  3. Changed5 schema fields changedv0.21.4
    • changedInput schema / properties / query / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "boolean"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / query / description
      Previous value: -"Query parameters, by name, for example {\"limit\": 10, \"verbose\": true}; a boolean is sent as true or false. Added to a query string in the path."New value: +"Query parameters of the operation, by name. A boolean is sent as true or false, and an array as a repeated parameter (name=a&name=b), or comma-joined (name=a,b) where the operation documents the parameter so. Added to a query string in the path."
    • changedOutput schema / properties / body / description
      Previous value: -"Response body as text; empty when the response had none; absent when omitted"New value: +"Response body as text; empty when the response had none; its start when truncated; absent when omitted"
    • addedOutput schema / properties / bodyTruncated
      Added value: +{
      +  "const": true,
      +  "description": "The response body is longer than the limit; body holds its start",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / bytes / description
      Previous value: -"Response body size in bytes, after decompression; absent when over the limit"New value: +"Size of the body received in bytes, after decompression"
  4. Addedv0.20.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say destructive/openWorld/non-idempotent; the description adds the operational facts that actually matter: host and API token are injected for you, a single-tenant server can start a run held until idle timeout, multi-tenant charges per event, no retries, no redirect following, and response bodies truncated at 262144 bytes with non-text content types dropped. It also states the Actor, not the tool, validates method and path, which explains what a rejection means.

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-loaded with the core action and prerequisites, then layered with behavior and limits; each paragraph carries distinct information. Slight redundancy between the inline "Example call" and the USAGE EXAMPLES section, and the definition is long, but no sentence is filler.

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 5-parameter, high-risk tool, it covers preconditions, discovery path, cost/run side effects, retry and redirect semantics, and response truncation, and an output schema exists so return-value structure need not be repeated. An agent has everything needed to decide to call it and to construct a correct request.

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 would be 3, but the description goes further: the concrete example call shows how actor/method/path/query compose, and it clarifies that host and token are supplied automatically and that the path must come from the schema rather than be guessed. The one gap is that per-parameter details (body disallowed with GET, query array encoding) live mainly in the schema rather than being restated.

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?

"Send one HTTP request to an Actor Server" names a specific verb (send) and a specific resource (an Actor Server's HTTP API), and immediately bounds it to Actors that have an Actor Server plus an API schema. That distinguishes it from siblings like call-actor (runs an Actor) and fetch-actor-details (documents it) without the agent needing to open 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?

Gives an explicit precondition (the Actor has an Actor Server and its API schema or README names the endpoint), a routing hint to fetch-actor-details with output.serverInterface to discover the operations, and a scope condition (one or a few results in the HTTP response; large batches are limited by response size and time). Two worked user_input examples anchor the guidance concretely.

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