Skip to main content
Glama

tc_allow_write

Idempotent

Allow or remove session-only write permissions for PLC variables by specifying a case-insensitive pattern, avoiding config edits and reconnects.

Instructions

Add (or remove) a write allow-list pattern for THIS session only — the in-session alternative to editing twincat_mcp.toml and reconnecting. fnmatch, case-insensitive: 'GVL_Test.*', 'MAIN.fbDispense.rSetpoint'. Control-class: needs a confirmation (prompt or confirm_token from tc_request_confirmation(action='tc_allow_write', target=''), or target='-' to remove). The deny list still wins; the change is audited and lost at the next server start.

Input Schema

NameRequiredDescriptionDefault
removeNo
patternYes
confirm_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.12

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the change is session-scoped and lost at next server start, it is audited, the deny list still wins, and it requires confirmation via prompt or confirm_token from tc_request_confirmation. These are exactly the behavioral traits annotations don't cover.

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?

Dense and front-loaded, with the scope and purpose stated first and the operational caveats following. Every sentence carries information, though the parenthetical confirmation sentence is somewhat packed.

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 session-scoped config-mutating tool, it covers scope, persistence, audit, safety interaction (deny list), and the confirmation requirement; an output schema exists so return values need no explanation.

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

Parameters5/5

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

With 0% schema coverage the description carries the full burden and largely does: it explains the pattern syntax (fnmatch, case-insensitive) with concrete examples and identifies the confirm_token source. The only soft spot is the 'target=...<pattern>' removal phrasing, which is slightly conflated with the separate 'remove' boolean.

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 verb and resource (add/remove a write allow-list pattern) plus an explicit scope ('THIS session only') and frames it against the config-editing alternative. An agent can distinguish it from the many ads_write/xae_* siblings without opening the schema.

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 when-to-use context (in-session alternative to editing twincat_mcp.toml and reconnecting) and the precondition (control-class, needs confirmation). It does not name an explicit when-not-to-use or a sibling tool, so it falls just short of a 5.

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

Deploy Server

Other Tools