Skip to main content
Glama

mechacut

env_interpolate

Expand $VAR, ${VAR} and ${VAR:-default} from a vars object. strict=true (default) fails naming every missing var; strict=false keeps them literal and reports missing. Free.

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": {
      "template": "<template>",
      "vars": "<vars>"
    },
    "name": "env_interpolate"
  }
}

Input Schema

NameRequiredDescriptionDefault
varsYes
strictNo
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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 behavioral burden and does a solid job: it discloses the default (strict=true), the failure mode (fails naming every missing var), and the lenient mode's two consequences (literals kept, `missing` reported). It does not say where `missing` is reported, what the returned value looks like, or whether nested/referenced vars are expanded recursively, so the disclosure is good but not complete.

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?

Three short sentences, front-loaded with the core operation and then the behavioral branch; nearly every clause carries information. The clipped phrases 'reports `missing`' and the trailing 'Free.' are slightly telegraphic, costing a bit of clarity for density but not wasting space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no schema descriptions, so the description is the only documentation, and it omits the return shape: an agent cannot tell whether the result is a string, an object with the expanded text plus a missing list, or something else. For a 3-parameter tool with a nested object, this is adequate but has a clear gap around output and vars value typing.

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?

Schema description coverage is 0%, so the description must compensate, and it substantively does for two of three parameters: `template` gets three concrete syntaxes including the ${VAR:-default} fallback form, and `strict` gets both semantics plus its default value. `vars` is only referenced as 'a vars object' with no indication of accepted value types or handling of its nested-object shape, leaving one parameter underspecified.

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?

The description opens with a specific verb and resource: 'Expand $VAR, ${VAR} and ${VAR:-default} from a vars object,' which tells an agent exactly what operation happens and on what input. No sibling tool listed performs variable interpolation, so no differentiation is needed, but the description never states that explicitly, which keeps it from 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?

Usage is implied rather than stated: the strict=true/false branching tells an agent how to behave when vars may be incomplete, which is effectively a usage decision (fail fast vs. lenient). There is no explicit when-to-use framing, no prerequisites, and no named alternative for cases where interpolation is the wrong choice, so guidance is implied only.

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.