Skip to main content
Glama

Export to Excel

layerz_export
Read-only

Generate the model as an Excel (.xlsx) workbook and return a short-lived download URL — the same export the web app produces (Intro + per-section sheets + native charts and dashboards, with live Excel formulas). When the model has branches, the statements and single-value widgets reflect one branch: pass branch_id to pick it (defaults to the base/default branch); dashboards always keep every branch they break down by. The file is stored out-of-band in private Storage and the response carries a signed download_url the user can open directly; the binary never transits the agent context. The URL and the stored file expire after 24h, then a daily purge removes them. Re-call the tool to refresh an expired link. Returns { download_url, filename, size, file_id, expires_at, structure_hash, values_hash }. A read operation — available for read-only API keys too.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idNoTarget model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys.
branch_idNoBranch to export for the statements/single-value widgets. Defaults to the base branch. Dashboards keep every branch regardless. Discover ids via layerz_list_branches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint annotation by explaining storage is out-of-band, the binary never transits agent context, URLs and files expire after 24h with a daily purge, and branch behavior differs for dashboards vs statements. It also explicitly confirms read-only API key support. This is rich, non-obvious behavioral context that helps the agent set user expectations.

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 front-loaded with the core action and result, then progressively adds branch behavior, storage semantics, expiry/refresh, return fields, and read-only availability. Every sentence adds necessary information and nothing is redundant or filler.

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?

Given there is no output schema, the description explicitly enumerates the return fields. It also covers edge cases such as branches, expiration, refresh behavior, and read-only key support. An agent has enough information to invoke this tool correctly and to set reasonable user expectations.

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 coverage is 100%, so the schema already documents both parameters well. The description adds meaningful semantics beyond the schema for branch_id, explaining that statements and single-value widgets reflect one branch while dashboards keep all branches, and that it defaults to the base branch. This improves correct invocation.

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 uses a specific verb ('Generate the model as an Excel (.xlsx) workbook') and names the exact resource and output format. It also distinguishes itself by noting it is 'the same export the web app produces', which clarifies what the artifact contains. This clearly differentiates the tool from the many model-manipulation siblings.

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?

The description provides clear usage context: call this when an Excel export is needed, pass branch_id when branches exist, and re-call to refresh expired links. It does not name exclusions or alternative export tools, but none of the siblings appear to be a competing export path, so the guidance is adequate.

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