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_nameNoHuman-readable name.
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. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations cover read-only, destructive, idempotent, and open-world behavior. The description adds behavioral detail beyond annotations: property order preservation, mandatory schema binding, and that creation does not auto-publish. Doesn't state duplicate-slug behavior, but that's beyond typical expectations.

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?

Four sentences, front-loaded with the purpose. Sentence 2 is slightly dense with the human-editor detail, but each sentence earns its place; no redundancy or filler.

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?

Output schema covers return values and annotations cover safety, so the description only needs lifecycle context, which it provides (create → schema prerequisite → publish). Not explicitly covering duplicate-slug errors is acceptable given annotation and output-schema coverage.

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 per rubric the baseline is 3. The description reinforces schema_id in prose but adds no per-parameter detail beyond the schema; the schema descriptions are thorough (e.g., use_latest_schema explains draft vs published version).

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?

States a specific verb (Create) with resource (datafile) and content (JSON object). Distinguishes from sibling tools like publish_datafile and create_schema by noting the schema prerequisite and the separate publish step. The purpose is unmistakable.

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?

Provides explicit pre-requisite guidance (author or pick a schema with schema tools first) and post-action guidance (publish with publish_datafile to serve from the CDN). Implicitly distinguishes from update_datafile/patch_datafile via 'Create a new'; could contrast explicitly but is largely clear.

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