Skip to main content
Glama

Read a convar

convar_get
Read-only

Retrieve a Garry's Mod console variable by name to inspect its value, default, help text, flags, and min/max; protected values stay masked.

Instructions

Value (string as the engine stores it), number (the value as a number when it is one: compare this, since the same value can read "0.0" or "0.000000"), default, help text, flags (decoded), min/max of a convar. FCVAR_PROTECTED convars have their value masked.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
realmNoExecution realm (default: menu in client mode, server on srcds).
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.

Output Schema

NameRequiredDescriptionDefault
maxNo
minNo
viaNo
helpNo
nameYes
nextNo
noteNo
flagsYes
valueNo
numberNo
defaultNo
warningNo
previousNo
next_callNo
protectedNo
flag_namesYes
answered_byNo
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

B3/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, the description discloses two genuinely useful traits: FCVAR_PROTECTED convars return a masked value, and the string form is engine-formatted so the numeric field should be used for comparison. It does not cover failure behavior for unknown names, but the added behavioral context is real and not derivable from annotations.

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

Conciseness3/5

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

It is a single dense sentence with no wasted words, but the structure is a comma-run field list with the most important point (what the tool does) omitted and the practical advice about numeric comparison buried mid-sentence in parentheses.

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?

An output schema exists, so the field-by-field enumeration at the start is largely redundant, while the two things the description uniquely needs to supply — purpose and when-to-use versus convar_set — are absent. It is adequate to call the tool correctly (one required string) but not to choose it confidently.

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?

With 67% schema coverage, the schema already explains realm's default resolution and instance relaying; the description adds nothing about any of the three parameters, including the required name. Baseline 3 applies since the schema carries most of the load and name is largely self-evident.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states the verb+resource directly; it only enumerates what a convar record contains (value, number, default, help, flags, min/max). Combined with the name/title 'convar_get' an agent can infer a read-by-name operation, but the text itself is a field list rather than a purpose statement, and it draws no distinction from siblings like convar_set or console_read.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of the sibling convar_set for mutation, and no note about errors for a nonexistent convar. The only implicit steering is the advice to compare the numeric field rather than the string, which is about results, not about tool selection.

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