Skip to main content
Glama

Offline Protocol (hosted)

Preview scaffold

preview_scaffold
Read-onlyIdempotent

Preview what an Offline Protocol starter would contain for an app: workflow, template, packages and file list. A dry run that writes nothing; creating the project needs the local Offline Protocol CLI.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "preview_scaffold"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProject name / directory slug
promptNoNatural-language app idea (uses the planner)
appLabelNoApp label for mesh templates (template variable mesh_app_id): a stable name of your own, the same on every device, never changed once the app ships. Not the App ID. Defaults to the template's own label or the project name
platformNoRequired when a multi-platform workflow is named without a template
templateNoTemplate name, e.g. react-native-social
workflowNoWorkflow name, e.g. local-handoff, backend-delivery or nearby-service
enableMeshNoEnable mesh SDK for React Native templates (default: true for mesh workflows / mesh templates)
enableOfflineIdNoEnable Offline ID (id-react-native) for React Native templates. Default: true for offline-social-network / offline-id-mesh-chat workflows and react-native-social; auto-switches react-native-mesh-app to react-native-social when true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / appLabel
      Added value: +{
      +  "description": "App label for mesh templates (template variable mesh_app_id): a stable name of your own, the same on every device, never changed once the app ships. Not the App ID. Defaults to the template's own label or the project name",
      +  "maxLength": 128,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "react-native",
      -  "nextjs",
      -  "react-vite",
      -  "web",
      -  "rust"
      -]New value: +[
      +  "react-native",
      +  "nextjs",
      +  "react-vite",
      +  "web",
      +  "rust",
      +  "python",
      +  "java"
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the materially new fact that this tool cannot actually create anything and that creation requires an external CLI, which is behavior an agent cannot read off the 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?

Two short sentences, no filler. The output contents come first and the dry-run/create-elsewhere caveat follows, so the most decision-relevant information is front-loaded.

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?

There is no output schema, and the description compensates by naming the four things the preview returns. Combined with annotations covering the safety profile and a fully documented schema, an agent has what it needs; only the relationship to the individual get_* tools is left implicit.

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% and every one of the eight parameters carries its own description, including the platform-required condition and the enableOfflineId auto-switch. The description itself adds no parameter-level detail, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

It pairs a specific verb (preview) with a specific resource (an Offline Protocol starter) and enumerates what the preview shows: workflow, template, packages and file list. That is enough to separate it from the single-artifact getters like get_template or get_workflow, though it never names a sibling outright.

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?

"A dry run that writes nothing" establishes the read-only inspection context, and "creating the project needs the local Offline Protocol CLI" is an explicit when-not boundary for this tool. What is missing is any pointer to the sibling tools for inspecting one template or workflow at a time rather than the whole scaffold.

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.