Skip to main content
Glama

Apply data template

apply_data_template
Idempotent

Use when the user wants a contact form, waitlist, RSVP, guestbook, counter, or leaderboard on the page. Adds a ready-made data feature to a site: provisions the recipe's collection (access mode + schema) and returns the HTML block to insert into the page (then publish with update_site). Needs Pro; scoped to a site you can edit. See list_data_recipes for ids.

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": {
      "site_id": "<site_id>",
      "recipe_id": "<recipe_id>"
    },
    "name": "apply_data_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site to add the feature to
recipe_idYesA recipe id from list_data_recipes (e.g. "contact-form")
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare this as a non-destructive, idempotent write; the description adds the important side effect that a collection (access mode + schema) is actually provisioned on the backend, not just markup returned. It also discloses the plan requirement and the permission scoping constraint, and explains that the returned HTML needs a separate update_site call to go live — context an agent would otherwise have to guess.

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?

Three tight sentences ordered as trigger, behavior, and constraints, with the usage trigger front-loaded. Nothing is repeated and every clause carries information the agent needs.

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?

There is no output schema, so the description usefully states what comes back (an HTML block to insert) and what to do with it (publish via update_site). Combined with the explicit prerequisites, an agent has everything required to call this correctly.

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 site_id, recipe_id and workspace_id are already documented, including examples and workspace fallback behavior. The description only restates that recipe_id comes from list_data_recipes and implies what a recipe determines (schema + access mode); that is marginal added meaning over the schema.

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?

"Adds a ready-made data feature to a site" is a specific verb plus resource, and the sentence goes on to name the concrete artifacts it creates (collection access mode + schema) and what it hands back (an HTML block). The opening list of use cases (contact form, waitlist, RSVP, guestbook, counter, leaderboard) makes it instantly distinguishable from siblings like set_site_data or define_collection_schema.

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?

"Use when the user wants a contact form, waitlist, RSVP..." gives an explicit trigger condition rather than an implied one. It also routes the agent through the surrounding workflow: get ids via list_data_recipes first, publish afterwards with update_site, and it states the prerequisites (Pro plan, editable site scope).

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.