Skip to main content
Glama

Create datafile

create_datafile

Create a new datafile holding a JSON object. A datafile MUST be bound to a schema (schema_id) — the schema validates the JSON and generates the human editor; author or pick one with the schema tools first. Property order in json is preserved verbatim. Publish it with publish_datafile to serve it from the CDN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonYesThe JSON object this datafile holds. Property order is preserved verbatim.
slugYesURL-safe slug, optionally hierarchical.
schema_idYesId of the schema this datafile's JSON is validated against (required). The datafile's content must conform to it, and the schema generates the human editing form.
descriptionNoWhat this datafile holds.
display_nameYesHuman-readable name. Required (cannot be blank).
use_latest_schemaNoValidate against the latest (draft) schema version instead of the published one.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNo
slugYes
schema_idNo
datafile_idYes
descriptionYes
display_nameYes
content_sha256No
last_published_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / display_name / description
      Previous value: -"Human-readable name."New value: +"Human-readable name. Required (cannot be blank)."
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "schema_id",
      -  "json"
      -]New value: +[
      +  "slug",
      +  "display_name",
      +  "schema_id",
      +  "json"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false, idempotentHint=false, and openWorldHint=true, covering the safety/mutation profile. The description adds non-obvious behavior the annotations cannot convey: verbatim property-order preservation in json, the mandatory schema binding, and the fact that a created datafile is not served until publish_datafile is called. It does not cover what happens on slug collision or validation failure, keeping it from a 5.

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?

Four tight sentences, fully front-loaded: purpose first, then the binding constraint, then a preservation guarantee, then the publish step. No filler or restated title text, and every sentence carries call-relevant information.

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?

With an output schema present, return values need not be explained, and the description correctly focuses on prerequisites and lifecycle instead. It covers the mandatory schema binding and the publish path, which is what an agent needs to invoke correctly; only edge-case behavior (slug conflicts, validation errors, default publish state wording) is left unstated.

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

Parameters3/5

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

Schema description coverage is 100%, so the structured fields already carry the parameter burden — that sets the baseline at 3. The description reinforces the role of schema_id (validates JSON, generates the editor) and clarifies that creation happens pre-publish, but it does not meaningfully extend semantics for slug, display_name, description, or use_latest_schema, and its property-order note for json duplicates the schema text verbatim.

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 opens with a specific verb+resource+payload ('Create a new datafile holding a JSON object'), which immediately separates it from list_datafiles, get_datafile, update_datafile, and patch_datafile. It also names adjacent lifecycle tools (publish_datafile, schema tools), so the agent can place it in the create/publish pipeline without opening other schemas.

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?

It states a hard prerequisite ('A datafile MUST be bound to a schema (schema_id) ... author or pick one with the schema tools first') and a clear follow-up ('Publish it with publish_datafile to serve it from the CDN'), which is actionable routing. It stops short of explicit when-not-to-use guidance (e.g. use update_datafile/patch_datafile for existing datafiles), so it is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources