Skip to main content
Glama

Read L-Var

msfs_get_lvar
Read-onlyIdempotent

Read a specific L-var value from the current aircraft to access add-on local variables. Uses MobiFlight WASM extension for retrieval.

Instructions

Read an L-var (local variable) value from the current aircraft.

L-vars are aircraft-specific local variables used by add-on developers. Requires the MobiFlight WASM extension.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesL-var name, e.g. 'A32NX_EFIS_L_OPTION', 'WT_CJ4_HDG_ON'. The 'L:' prefix and RPN wrapping are added automatically if missing.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.1

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, openWorldHint, idempotentHint, and non-destructiveness. The description adds the prerequisite that the MobiFlight WASM extension must be present and limits the read to the current aircraft, but it doesn't describe failure behavior when the extension or variable is missing.

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 short sentences front-load the core read action, then add a definition and a prerequisite. No filler or repetition of schema/annotation content.

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?

With one simple parameter, an output schema, and safety annotations, the description covers the essential context: what L-vars are, that it reads the current aircraft, and the extension requirement. Nothing critical is missing for correct invocation.

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?

The input schema already documents the name parameter with examples and auto-prefixing behavior at 100% coverage, so the description adds little parameter-level meaning. The conceptual L-var definition is helpful but not needed to understand the single parameter.

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 action 'Read an L-var (local variable) value' and scopes it to 'the current aircraft', distinguishing it from simvar readers and from msfs_set_lvar. The additional sentence defines what L-vars are, removing ambiguity.

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?

Gives clear context for when to use it: L-vars are aircraft-specific add-on variables, and it requires the MobiFlight WASM extension. It does not explicitly name alternatives such as msfs_get_simvar or msfs_search_lvars, so it lacks an explicit when-not-to-use statement.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robin24/simconnect-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server