Skip to main content
Glama

variable_read

Read-only

Returns the full description of one variable for AI agents by its name: why and how it is used, level, type and kinds of work, plus the value of a short non-secret environment variable. Values of secrets and files are never returned; they are read on the agent VM. A name that is not among the applicable variables is rejected. With userID - a variable of an AI agent employee of the company.

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": "variable_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNoKinds of work, as in the product context; ignored without productID.
nameYesEnvironment variable name (env) or file path (file), as listed in variables.
userIDNoAI agent employee of the company: its user-level variable; requires company:agents; productID and job are ignored.
productIDNoProduct ID: the set of variables that applies in work on this product's tasks; without it - the session set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / userID
      Added value: +{
      +  "description": "AI agent employee of the company: its user-level variable; requires company:agents; productID and job are ignored.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Goes beyond the annotations (readOnly, non-destructive, closed-world) by disclosing concrete behavioral facts: values of secrets and file-backed variables are never returned and are read on the agent VM, and names outside the applicable set are rejected. It stops short of saying whether the rejection is an error vs. empty result, but the added context is substantial.

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?

Front-loads the return contract, then handles the secret/file carve-out and rejection rule efficiently. The trailing fragment "With userID - a variable of an AI agent employee of the company." is syntactically awkward and duplicates schema text.

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 four-parameter read tool with no output schema, the description covers what is returned, what is deliberately withheld, and how name validity is scoped. Only the failure mode for an invalid name and the exact return shape remain unspecified, which is a minor gap.

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 schema already documents name, productID, job, and userID. The description's restatement of the userID scoping and the required name adds little beyond it, though it does confirm that name covers both env variables and file paths.

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 ("Returns the full description of one variable ... by its name") and enumerates what the payload contains: why/how it is used, level, type, kinds of work, and the value of a non-secret variable. That clearly separates it from the write-side sibling variable_save and from generic readers like md_read.

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?

Implicit usage is clear from the scoping rules (session set by default, product set with productID, user-level with userID) and the note that non-applicable names are rejected. But there is no explicit when-to-use vs. when-not guidance and no named alternative for retrieving variable values or listing variables in the first place.

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