Skip to main content
Glama

write_project_resource

Writes JSON-serialisable or raw text data to a project-relative resource in an Ignition project, with dry-run previews and explicit confirmation to prevent unintended changes.

Instructions

Write a project resource.

Args: resource_path: Project-relative path. data: JSON-serialisable payload or raw text. project: Project name; defaults to the active project. confirm: Must be True to write. dry_run: Preview without writing.

Returns: Write acknowledgement or a preview payload.

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": {
      "resource_path": "<resource_path>",
      "data": "<data>"
    },
    "name": "write_project_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
confirmNo
dry_runNo
projectNo
resource_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full load, and it does disclose a genuine safety pattern: confirm must be True to write and dry_run previews without writing. It omits other important behavior for a mutation tool, such as whether an existing resource is overwritten, whether the resource must already exist, or what permissions are required.

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?

The docstring structure is clean and front-loaded with the action, followed by an Args block that maps one-to-one to the parameters. The opening line merely restates the tool name, and the Returns line duplicates what the existing output schema already provides.

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?

The output schema is present, so the brief Returns note is adequate, but for an unannotated write tool the definition should say more about overwrite semantics and failure modes. It is usable as-is but leaves meaningful behavioral gaps for a destructive operation.

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%, yet the description documents all five parameters, including the non-obvious ones: resource_path is project-relative, data accepts a JSON payload or raw text, and project defaults to the active project. The explanations are terse but cover the semantics the schema lacks.

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 opening line gives a specific verb ('Write') and resource ('project resource'), which is enough to separate it from read_project_resource. It falls short of 5 because it never defines what a 'resource' is here, leaving ambiguity against siblings like write_project_script or write_named_query.

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 statement of when to use this tool versus alternatives, no prerequisites, and no exclusions. The confirm/dry_run notes describe mechanics rather than selection guidance, so the agent must infer routing from the name alone.

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