Skip to main content
Glama

Create a draft program

create_program

Creates a stamp-card program as a DRAFT. Customers can’t see or use it until the owner reviews and publishes it in the Loyal Digicard app (review_url). The Free plan includes 3 programs (drafts count). Without branch_ids it runs at every active branch.

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>",
      "reward": "<reward>",
      "stamps_to_reward": "<stamps_to_reward>"
    },
    "name": "create_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProgram name, for example “Buy 5 coffees, get 1 free”
termsNoShort terms shown on the card
rewardYesThe reward, for example “Free coffee”
branch_idsNoFrom list_branches; default: all active branches
cashier_choosesNoThe cashier picks 1…max stamps per visit, starting at default
stamps_per_visitNoFixed stamps per visit (default 1). Leave out when the cashier chooses.
stamps_to_rewardYesStamps needed for the reward (1–10; 1 = reward on the first visit)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / stamps_to_reward / description
      Previous value: -"Stamps needed for the reward (2–30)"New value: +"Stamps needed for the reward (1–10; 1 = reward on the first visit)"
    • changedInput schema / properties / stamps_to_reward / maximum
      Previous value: -30New value: +10
    • changedInput schema / properties / stamps_to_reward / minimum
      Previous value: -2New value: +1
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, non-idempotent write. The description adds substantive behavior the annotations cannot convey: the object is created in a deferred-invisible draft state, the owner must act in the app to publish, and there is a quota interaction (drafts consume Free-plan slots). It stops short of saying what the response contains beyond the parenthetical review_url or what happens at the plan limit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the draft state and with zero filler, which is good. However, the branch-default sentence largely duplicates the branch_ids schema description, so one of the three sentences does not fully earn its place.

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?

For a 7-parameter write tool with a nested object and no output schema, the description covers the important non-obvious facts: deferred visibility, quota impact, and branch scoping. Remaining gaps are minor, such as error behavior when the plan limit is hit and what the create response other than review_url looks like.

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 the schema already documents name, reward, terms, stamps_to_reward, cashier_chooses, and stamps_per_visit. The only parameter-related sentence restates the branch_ids default ('all active branches') that the schema already states, so it adds little meaning beyond structured data.

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 and resource ('Creates a stamp-card program') plus the crucial state qualifier 'as a DRAFT', which separates it from update_program and archive_program. The publish step being an in-app action by the owner further pins down what this call does and does not do.

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?

Gives real operating context: the program is invisible/unusable to customers until the owner publishes, drafts count against the Free plan's 3-program cap, and omitting branch_ids makes it run at all active branches. It does not explicitly route the agent to update_program for later edits or say when not to create, so it falls short of full when/when-not guidance.

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