Skip to main content
Glama

Publish datafile

publish_datafile

Publish a datafile to a CDN path you choose, so a page can fetch() it client-side. Only needed for that client-side fetch — NOT to bind a datafile server-side (an endpoint's @latest datafile ref reads the stored draft directly). Pass expected_content_sha256 (from the create/update/get that produced this content) — publish fails if the content changed since, so you publish the exact version you intend. Returns the public CDN URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
datafile_idYesthe datafile id to publish
public_pathYesthe CDN path to publish at (e.g. data/products.json)
expected_content_sha256Yesthe content_sha256 returned by the create/update/get of this datafile; publish fails if the stored content has changed since, so publish the exact version you intend

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
public_urlYes
datafile_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond annotations, description discloses failure on content change and return of public URL. It doesn't discuss idempotent/repeat behavior or other side effects, but given idempotentHint false and non-destructive annotation, no contradiction.

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?

Everything is purposeful; purpose, usage caveat, parameter note, and return value are compactly organized. No redundant content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Description covers what, why, when, and outcome, without needing an output schema. It is complete for an agent to choose and call this 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?

All three required params are described in schema, and description elaborates on expected_content_sha256 purpose and failure semantics. Datafile_id and public_path are self-explanatory, so schema coverage plus extra context is strong.

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?

Description opens with a specific verb and target: publishes a datafile to a chosen CDN path. It also states the client-side fetch use case, separating it from other publish_* sibling tools.

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?

Explicitly says when it is needed (client-side fetch) and when not needed (server-side binding reads draft directly). It also explains the expected_content_sha256 precondition, guiding correct usage.

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