Skip to main content
Glama

vex_current_env

Shows which Vendure environment the server is currently using and explains the selection source so you can verify the active host before running commands.

Instructions

Show which Vendure environment vex is using and why (env param > VEX_ENV > project link > active). Returns {name, host, source, projectPath?} or a none-configured notice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vex_current_env"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does meaningful work: "Show" implies a read-only lookup, the precedence chain explains how the result is derived, and the "none-configured notice" discloses the failure path. It stops short of describing error behavior beyond the unconfigured case, but for a zero-side-effect lookup this is solid disclosure.

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?

A single sentence with the action front-loaded, the resolution rule parenthetical, and the return shape trailing. Every clause carries information an agent would otherwise have to guess.

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?

For a no-parameter, no-output-schema read tool, the definition covers what it returns ({name, host, source, projectPath?}), how that value is chosen, and the unconfigured edge case. There is little an agent could still need before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline is 4 and there is no schema surface the description needs to compensate for. The mention of an "env param" in the precedence chain refers to input on other tools rather than this one, which is slightly ambiguous but does not misrepresent this tool's empty 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?

"Show which Vendure environment vex is using and why" gives a specific verb (show) and a specific resource (the resolved Vendure environment), plus the resolution rule in parentheses. No sibling in the list resolves environment state, and the description makes that unique role unmistakable.

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?

The precedence chain "env param > VEX_ENV > project link > active" tells an agent exactly what context this tool answers and why the answer might differ between invocations. It lacks an explicit "call this before running X" statement, but with no competing sibling doing the same job the usage context is still clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.