Skip to main content
Glama

glue_schema

Detect schema from sample data, generate evolution strategies for schema changes, and create AWS Glue Data Catalog table definitions.

Instructions

Manage Glue Data Catalog schemas — detect, evolve, and define.

Modes:

detect Detect schema from sample data and generate table definition. Parameters: sample_data (required dict/list), table_name (required), infer_partitions

evolve Generate schema evolution strategy for handling schema changes. Parameters: current_columns (required), new_columns (required), merge_behavior, case_sensitive

catalog Generate AWS Glue Data Catalog table definition. Parameters: database_name (required), table_name (required), s3_location (required), data_format, columns, partition_keys, enable_schema_evolution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
columnsNo
table_nameNo
data_formatNoparquet
new_columnsNo
s3_locationNo
sample_dataNo
database_nameNo
case_sensitiveNo
merge_behaviorNomerge
partition_keysNo
current_columnsNo
infer_partitionsNo
enable_schema_evolutionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/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 describes each mode's purpose (e.g., 'Detect schema from sample data and generate table definition') but fails to clarify side effects such as whether the tool actually creates resources in AWS, requires specific permissions, or has rate limits. This ambiguity is a significant gap for a tool that likely interacts with cloud services.

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?

The description is well-structured with markdown headers and bullet points, making it easy to parse. It front-loads the overall purpose and then details each mode efficiently. No unnecessary sentences are present, though the mode-specific lists could be more compact.

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?

Given the tool's complexity (14 parameters, 3 modes) and lack of annotations, the description is moderately complete. It covers the modes and their parameters but omits behavioral details (e.g., side effects, return values) and does not explain how the modes interrelate. The existence of an output schema reduces the need to describe return values, but other gaps remain.

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?

The input schema has 0% description coverage, so the description must compensate. It groups parameters by mode and indicates which are required per mode, adding meaningful context. However, it labels some parameters as 'required' that are not in the schema's required list (only 'mode' is required), which could cause confusion. Overall, it adds substantial value beyond the bare schema.

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 explicitly states the tool manages Glue Data Catalog schemas with three distinct modes: detect, evolve, and catalog. Each mode has a specific verb and resource, making it clear what the tool does. Although sibling tools are not explicitly differentiated, the name and description set it apart as a schema-focused utility.

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 description provides some usage context by listing modes with their parameters, but it does not offer guidance on when to use this tool versus alternatives like glue_job or glue_data. There is no mention of when not to use it or comparison with sibling tools, leaving the agent with implicit guidance at best.

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

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