Skip to main content
Glama

Update an existing data spec

update_data_spec
Idempotent

Modify an existing data spec's configuration by updating only the fields you specify. Save changes and re-run analysis by default, or receive upload URLs when replacing files, then finalize the update.

Instructions

Change an existing data spec's configuration. Runs synchronously when no replacement files are given (saves changes, re-runs analysis by default). If a replacement file name is given, returns upload URL(s) instead; upload, then call finish_data_spec_update. Only pass fields you want to change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mergeNoWhether new data should merge/upsert into existing rows rather than append.
specNameYesName of the existing data spec to update
computeSizeNoCompute size for analysis/processing.
descriptionNoNew description for the spec.
runAnalysisNoWhether to run analysis and wait for it after saving changes (default true).
workspaceIdNoWorkspace to act on. Defaults to your only workspace if you have exactly one.
sourceTablesNosourceType tables specs only. Replacement list of source tables.
targetOptionNoChange where transformed data lands.
targetTablesNoNew target table list (sourceType file), or the single target table name (sourceType tables).
formatFileNameNosourceType file specs only. Replacement format spec file.
loadSampleDataNoWhether re-analysis should also trigger the data-load job (default true).
sampleFileNameNosourceType file specs only. Replacement sample data file.
additionalPromptNoReplacement AI guidance, reused on future re-analysis.
targetSchemaFileNameNoFile name of a replacement target schema file.
Behavior4/5

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

While annotations already indicate the tool is not read-only and is idempotent, the description adds rich behavioral context: it saves changes, re-runs analysis by default, and supports a two-phase upload flow with replacement files. This goes beyond the schema and annotations, covering both synchronous and upload-based execution paths without contradicting any annotations.

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 concise, with four purposeful sentences: stating the action, describing synchronous behavior, explaining the upload flow, and advising on parameter usage. It is front-loaded with the primary purpose and efficiently conveys complex conditional behavior without unnecessary wording.

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 complexity (14 parameters, conditional execution), the description adequately covers the essential behavioral branches: synchronous save with re-analysis, upload-URL return, and follow-up via finish_data_spec_update. It does not detail return structures beyond 'upload URL(s)', but in the absence of an output schema and with 100% schema coverage, this is sufficient for an agent to use the tool correctly.

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 100%, so the baseline is 3. The description adds value by explaining that supplying replacement file parameters (e.g., formatFileName) triggers the upload URL flow, and it clarifies partial update semantics. This contextualizes parameter usage beyond the schema without duplicating it.

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 tool's purpose: 'Change an existing data spec's configuration.' This is a specific verb+resource (change + data spec configuration), and it distinguishes itself from siblings like delete_data_spec and the follow-up finish_data_spec_update by explaining the two-phase upload flow. The purpose is unambiguous and well-differentiated.

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

Usage Guidelines5/5

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

The description explicitly explains when the tool runs synchronously versus when it returns upload URLs, and directs the caller to call finish_data_spec_update after uploading. This gives clear when/when-not guidance and references an alternative tool. The phrase 'Only pass fields you want to change' further clarifies intended usage.

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/dpf-admin/dpf-claude-plugin'

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