Skip to main content
Glama

save_script

Save a script definition to reuse across sessions. Store complex extraction patterns for repeated application with run_script.

Instructions

Persist a script definition to disk at ~/.acrawl/scripts/.json for reuse across sessions. Once saved, run it later with run_script using name instead of providing the full inline definition. Use for complex extraction patterns you want to apply repeatedly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName to save the script under (alphanumeric characters and underscores only, no file extension). Must be unique — overwrites any existing script with the same name.
scriptYesScript definition object (same format as the 'script' parameter in run_script). Must include version, steps, and optionally limits.
Behavior4/5

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

The description discloses the save location, file format, overwrite behavior, and relationship with run_script, providing sufficient transparency beyond the lack of annotations. No contradictions.

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?

Three sentences, front-loaded with the main action, no redundancy, each sentence serves a purpose.

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

Completeness3/5

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

The description is mostly complete for a save operation but lacks details on return values, error conditions, or confirmation of success. Given the absence of an output schema, this is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds value beyond the input schema by specifying uniqueness and overwriting for 'name' and referencing 'script' parameter format from run_script, with schema coverage at 100%.

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?

The description clearly states the action (persist/save), resource (script definition to disk at a specific path), and distinguishes from sibling tools like run_script and list_scripts by explaining the reuse purpose.

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?

The description explains when to use (complex extraction patterns for repeated use) and mentions the alternative (use run_script to run saved scripts), though it does not explicitly state when not to use it.

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