Skip to main content
Glama

wait_for_scripts

Collect script results after execution by blocking until scripts finish. Returns extracted data, checkpoints, and status for specified or all active scripts.

Instructions

Block until one or more scripts finish execution and return their collected results. Returns a JSON array of ScriptResult objects with extracted_data, yielded checkpoints, step count, and status. If script_ids is omitted, waits for ALL active scripts. Use after run_script to collect final results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_idsNoList of script IDs to wait for (format: scr_XXXXXXXX each). If omitted, waits for all currently active scripts to finish.
Behavior3/5

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

No annotations provided, so description carries full burden. It mentions blocking behavior and return structure (JSON array with specific fields). However, it does not disclose timeout behavior, error handling, or what happens if scripts never finish. Acceptable but could be more thorough.

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?

Two sentences, front-loaded with primary purpose, then details on return and optional behavior. No wasted words.

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?

Given simple tool with one optional param and no output schema, description adequately covers purpose, usage, return shape. Lacks timeout or error handling info, but not critical for this tool's typical use.

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 100% with only one param. Description adds behavioral nuance: omitting script_ids waits for all active scripts. This adds value beyond the schema's description of 'List of script IDs'.

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?

Clearly states it blocks waiting for script execution and returns results. Distinguishes from siblings like run_script (initiates) and script_status (check status without blocking). Also covers behavior when script_ids omitted.

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?

Explicitly recommends using after run_script to collect results. Implicitly suggests not using if scripts haven't been started. Could be improved by mentioning not to use if non-blocking check is needed.

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/Mingye-Lu/AgenticCrawler'

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