Skip to main content
Glama

glue_job

Create AWS Glue job templates, convert PySpark code to DynamicFrames, generate job properties, and produce SQL-to-PySpark Glue jobs.

Instructions

Generate and manage AWS Glue job configurations and templates.

Modes:

template Generate a complete AWS Glue job template. Parameters: sql_query, job_name, source_database, source_table, target_database, target_table, output_dir, source_format, target_format, include_bookmarking, template_type, script_name

dynamic_frame Convert PySpark DataFrame code to use DynamicFrames. Parameters: pyspark_code (required), source_database, source_table, target_database, target_table

properties Generate Glue job properties for AWS CLI/SDK/Terraform. Parameters: job_name (required), job_type, worker_type, number_of_workers, max_retries, timeout, glue_version, enable_continuous_logging, enable_metrics, enable_spark_ui

sql_conversion Generate a Glue job that includes SQL-to-PySpark conversion. Parameters: sql_query (required), job_name (required), source_database, source_table, target_database, target_table, source_format, target_format, include_bookmarking

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
timeoutNo
job_nameNo
job_typeNoetl
sql_queryNo
output_dirNo
max_retriesNo
script_nameNo
worker_typeNoG.1X
glue_versionNo5.0
pyspark_codeNo
source_tableNo
target_tableNo
source_formatNoparquet
target_formatNoparquet
template_typeNostandard
enable_metricsNo
enable_spark_uiNo
source_databaseNo
target_databaseNo
number_of_workersNo
include_bookmarkingNo
enable_continuous_loggingNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.1.0
    • changedInput schema / properties / glue_version / default
      Previous value: -"4.0"New value: +"5.0"
  2. First observedv0.0.4

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly describes what each mode generates, but it does not mention side effects, credentials, filesystem writes, or whether 'manage' implies modifying existing AWS resources. The behavior is not misleading, but it is incomplete for a tool with no annotation safety hints.

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 well-structured with a one-sentence summary followed by clearly formatted mode sections and parameter lists. It is longer than average, but every section earns its place given the tool's four distinct behaviors, and the front-loaded summary helps an agent orient immediately.

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 the tool's high complexity, 23 parameters, and no annotations, the description does a solid job covering all modes and associating parameters appropriately. The presence of an output schema reduces the need to explain return values. Missing details like allowed values for template_type or source_format and mode-specific examples prevent a perfect score.

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 description coverage is 0%, so the description must compensate. It does by grouping all 23 parameters into their relevant modes and marking required parameters such as pyspark_code and job_name. It adds meaning beyond the bare schema, though it still relies on parameter names to carry most semantic weight rather than describing values or constraints.

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 resource ('AWS Glue job configurations and templates') and the action ('Generate and manage'), and it enumerates four distinct modes that make the tool's scope concrete. It does not explicitly contrast with sibling tools like glue_schema or glue_s3, so it misses the top tier, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

The mode breakdown gives clear context for which mode to choose: template, dynamic_frame, properties, or sql_conversion, each with its own parameter list. However, there is no explicit guidance on when glue_job should be preferred over sibling tools or when a mode should not be used, so usage guidance remains implied rather than explicit.

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

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/AnnasMazhar/pyspark_mcp'

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