Skip to main content
Glama

Create a template variable

create_template_variable

Add a custom variable ({{name}}) that every template of the organization can use; its defaultValue replaces it when a post is made from a template. At most 50 per organization; a name that is a system variable is refused (409).

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>",
      "defaultValue": "<defaultValue>"
    },
    "name": "create_template_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLowercase letters, digits and underscores, starting with a letter (e.g. product_name, max 50 characters); used as {{product_name}}
descriptionNoWhat it stands for (max 200 characters); never published
defaultValueYesThe text that replaces {{name}} (max 500 characters)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
variableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (which only say it is a non-destructive, non-idempotent, open-world write), the description discloses two real behavioral traits: a hard quota of 50 variables per organization and a 409 refusal when the name collides with a system variable. It also explains the runtime effect of defaultValue during post creation, which is not visible anywhere in the annotations. It does not mention what happens on duplicate custom names or naming scope errors beyond the schema pattern.

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

Conciseness4/5

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

A single dense sentence packs purpose, substitution semantics, the quota, and the 409 error, front-loading the action. Slight cost in readability from the stacked parentheticals and clauses, but nothing is wasted.

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?

With an output schema present, annotations covering safety, and full schema coverage, the description only needs to carry what structured data cannot: quotas, error conditions, and substitution timing — all of which it supplies. Missing only duplicate-name behavior for non-system names, a minor gap for a create tool.

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 coverage is 100%, so the baseline is 3 — the schema already documents name pattern, description, defaultValue length, and organizationId resolution via list_organizations. The description adds only marginal semantics (when defaultValue substitution actually occurs, and the name-conflict refusal), leaving the remaining meaning to the schema as expected.

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?

States a specific verb and resource ('Add a custom variable ({{name}})') plus the scope 'every template of the organization,' which makes the create-semantics unambiguous against update_template_variable and delete_template_variable by plain reading. It never explicitly contrasts itself with those siblings, so it stops just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The operational context is implied well — this registers an organization-wide variable and refuses system-variable names — but there is no explicit when-to-use/when-not-to-use guidance and no pointer to update_template_variable for existing variables. The agent must infer that creating a duplicate should go through the update tool instead.

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