Skip to main content
Glama

Save variables

put_variables
DestructiveIdempotent

Add or update a project's variables (demo credentials and other values guides reference as {NAME}). Values are stored encrypted and never returned by any tool. Values sent here pass through the conversation; customers who want to keep credentials out of chat can set them on the project's page in the Screen Browser dashboard instead. Existing variables not named here are kept.

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": {
      "project_id": "<project_id>",
      "variables": "<variables>"
    },
    "name": "put_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
variablesYesVariables to add or overwrite; the ones not listed are kept.
project_idYesThe project (from create_project or list_projects).

Output Schema

NameRequiredDescriptionDefault
variablesYesEvery variable name now defined on the project.
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / variables / items / properties / name / description
      Previous value: -"Letters, digits and underscores, e.g. USERNAME; referenced in guides as {USERNAME}."New value: +"Letters, digits and underscores, e.g. USERNAME; referenced in guides as {USERNAME}. SITE_USERNAME and SITE_PASSWORD answer a browser password box (HTTP basic auth) in front of the site."
  2. Changed1 schema field changed
    • changedInput schema / properties / variables / items / properties / value / description
      Previous value: -"The value to store encrypted; typed by the recorder, never shown to a model."New value: +"The value to store encrypted; typed only by the recorder and never returned by any tool."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: values are encrypted, never returned by any tool, transit the conversation, and unnamed existing variables are preserved. That last point is essential for interpreting destructiveHint=true and idempotentHint=true correctly. It stops short of noting size limits or failure modes, but the annotation-covered safety profile is well supplemented.

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: what it does, the security caveat with the alternative, then the preservation rule. Front-loaded with purpose, zero 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?

An output schema exists, so return values need no explanation, and the mutation semantics (encrypted storage, no read-back, keep-unnamed) are all stated. For a two-parameter write tool with full schema coverage, nothing material is missing.

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% and the schema already documents name syntax, {NAME} referencing, SITE_USERNAME/SITE_PASSWORD basic-auth behavior, and encryption of values. The description reinforces the encryption and {NAME} concepts but adds little parameter guidance the schema does not already carry, so the baseline 3 applies.

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?

Uses a specific verb pair ('Add or update') on a specific resource ('a project's variables') and immediately clarifies what those variables are — demo credentials and values referenced as {NAME} in guides. No sibling tool touches variables, and the description makes the scope unambiguous.

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?

Implies use whenever a guide needs a stored value, and routes security-conscious customers to the dashboard alternative instead of passing secrets through chat. It does not spell out a when-not-to-use condition for the tool itself, but the alternative path is made explicit.

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.