Skip to main content
Glama

Plecs Get

plecs_get
Read-only

Reads a PLECS component or model parameter and returns string values; omit the parameter name to retrieve all parameters, including C-Script code sections for debugging compilation errors.

Instructions

Read a component/model parameter (model params too, e.g. "TimeSpan").

Values come back as strings; without parameter a dict of all parameters is returned. For a C-Script component this includes Declarations, StartFcn, OutputFcn, UpdateFcn, DerivativeFcn and TerminateFcn, which is the first step after a compilation error.

Input Schema

NameRequiredDescriptionDefault
pathYes
parameterNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.9/5.0
Behavior4/5

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

Consistent with readOnlyHint=true; nothing contradicts the safe-read annotation. It adds real behavioral detail beyond the annotations: results are strings, omitting ``parameter`` returns a dict of all parameters, and C-Script reads expand into Declarations/StartFcn/OutputFcn/etc.

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-loaded with the core action, then return-shape, then the C-Script special case. Four short lines, each carrying information; the C-Script sentence is dense but earns its place as a diagnostic hint.

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?

An output schema exists, so return values needn't be spelled out, and the description still adds useful return-shape hints. What is missing is guidance on path formatting and failure behavior for an invalid path, which matters for the sole required parameter.

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 0%, so the description must carry the load. It fully explains ``parameter`` (optional; omit to get everything) but says nothing about the required ``path`` — its expected format or whether it is a model path vs. component path — which is the higher-risk parameter.

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?

States a specific verb and resource — reading a component or model parameter — and clarifies that model-level parameters like "TimeSpan" are in scope. An agent can distinguish it from the mutating sibling plecs_set by the read verb, though it never names that counterpart.

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 a concrete workflow trigger: for C-Script components this is "the first step after a compilation error." That is clear context, but there are no explicit exclusions or named alternatives (e.g. plecs_set for writing, plecs_get_model_tree for structure).

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