Skip to main content
Glama

modify_gff_field

Idempotent

Set or update a single field in a GFF resource using a dot-separated path, such as 'Creature List.0.ChallengeRating', to edit creatures, items, and other NWN game data.

Instructions

Modify a field in a GFF resource by dot-path. Example path: 'Creature List.0.ChallengeRating'

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": "<resource>",
      "type": "<type>",
      "path": "<path>",
      "value": "<value>"
    },
    "name": "modify_gff_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDot-separated path to the field
typeYesResource extension (e.g., 'uti')
valueYesNew value to set
gffTypeNoGFF type if creating a new field (e.g., 'dword', 'cexostring')
resourceYesResource resref (e.g., 'innkey')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.2/5.0
Behavior2/5

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

Annotations supply only idempotentHint=true, so the description carries the rest of the burden and does not meet it. It never says whether an unknown path fails or creates a field, what role gffType plays in creation, whether the previous value is overwritten destructively, or whether the resource is saved immediately or only in memory.

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?

Two short sentences, front-loaded with the action and followed immediately by the one example that resolves the main ambiguity in the path syntax. Nothing is redundant with the name or title, and nothing could be cut without losing information.

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?

For a mutation tool with no output schema and a fully described five-parameter schema, the description covers what the tool does and how paths are shaped. It is still thin on mutation semantics—creation behavior, overwrite effects, and error handling on a bad path—which an agent would want before writing.

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 100%, so the schema already documents all five parameters; the baseline is 3. The example path 'Creature List.0.ChallengeRating' does add real meaning by showing how array indices appear inside the dot-path, but resource, type, and gffType receive no description-level elaboration.

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+resource pair: modify a field in a GFF resource, addressed by dot-path. This is clearly distinct from siblings like search_by_field or add_item_property. It stops short of explicitly contrasting itself with any alternative, so a 4 rather than a 5.

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 guidance on when to use this tool versus alternatives, no prerequisites (e.g., needing an existing resource), and no note about when to prefer a dedicated sibling such as add_item_property. The only aid is a path example, which is syntax rather than usage guidance.

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