Skip to main content
Glama

get_last_run

Retrieve the most recent execution of an Apify actor, optionally filtered by status, to monitor run outcomes and access results.

Instructions

Get the last run of an actor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actor_idYesActor ID or username~actor-name
statusNoFilter by status to get the last run with this status
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe how it behaves: whether it returns a single run object or null if none exists, what happens with invalid actor IDs, if there are rate limits, or authentication requirements. For a read operation with zero annotation coverage, this leaves significant gaps.

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?

The description is a single, efficient sentence that states the core purpose without unnecessary words. It's appropriately sized for a simple retrieval tool and front-loaded with the essential information.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete for a tool that retrieves data. It doesn't explain what the return value looks like (e.g., a run object with fields like status, start time, etc.), error conditions, or behavioral nuances. For a read operation with structured output, this leaves the agent guessing about the result format.

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 description coverage is 100%, so the schema fully documents both parameters (actor_id and status with enum values). The description doesn't add any parameter-specific details beyond what's in the schema, such as explaining the actor ID format or how status filtering works when no runs match. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('last run of an actor'), making the purpose immediately understandable. It distinguishes from siblings like 'get_run' (which retrieves a specific run) and 'list_actor_runs' (which lists multiple runs), though it doesn't explicitly mention these distinctions in the description text itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer 'get_last_run' over 'get_run' (for a specific run ID) or 'list_actor_runs' (for multiple runs), nor does it discuss prerequisites like needing an actor ID. Usage context is implied but not stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fvegah/mcp-apify'

If you have feedback or need assistance with the MCP directory API, please join our Discord server