Skip to main content
Glama
ykovenskiy-hub

Purl MCP Server

set_value_at_path

Set a single nested value at a path, auto-creating intermediate objects or arrays while preserving siblings. Ideal for updating one deep field in a Purl object.

Instructions

Set a single nested value at the given path. Auto-creates intermediate objects/arrays where needed. Siblings stay intact. Use this instead of set_property for changing one field deep in a DATA prime's value (or any other nested property).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesDotted/bracketed path to the leaf (e.g., "value[5].correct", "value.config.maxAlt"). At least one segment required.
valueYesNew value at the path. Any JSON: scalar, array, or object.
promptYesTHE USER'S EXACT PROMPT — verbatim, word-for-word, as typed. Do not summarize, paraphrase, translate, or shorten. Copy the user's message into this field exactly. Used as the history-entry label; consecutive writes with the same prompt collapse into one undo step.
targetYesName of the object whose property holds the value (formerly `objectName`, still accepted)
cellNameNoOptional: cell to search in (by label)
expectedVersionNoOptional precondition: hash of the top-level property (from get_object's `_versions[topSlot]`). When supplied, rejects the write if the top slot has changed since you read it.
Behavior3/5

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

With no annotations provided, the description carries the full burden of disclosing behavioral traits. It usefully reveals that intermediate objects/arrays are auto-created and that siblings remain intact, which are important behaviors. Yet it omits other crucial traits such as the undo/history behavior, version-precondition handling, or permission requirements. The schema's parameter descriptions cover some of these, but the description itself adds only partial transparency.

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?

The description is two sentences long, front-loaded with the primary action, and packs in the essential use-case distinction without any filler. Every sentence earns its place.

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?

Given the rich schema (100% coverage) and the fact that this is a mutation tool without an output schema, the description covers purpose and key behavior well. It falters only slightly by not describing return values or failure modes, but the detailed parameter documentation compensates for most of the needed context.

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 description coverage is 100%, so each parameter is already well-documented (e.g., path format, prompt verbatim rule, expectedVersion precondition). The description does not add any new parameter semantics; its reference to 'given path' merely mirrors the schema. A baseline of 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Set a single nested value at the given path.' It clearly defines the operation and explicitly distinguishes it from the sibling tool set_property, making the tool's purpose unmistakable.

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?

It provides explicit guidance to prefer this over set_property when changing a single deep-nested field in a DATA prime's value. However, it stops short of describing when not to use it or naming other alternatives like push_value or bulk_set_property, so it's clear but not exhaustive.

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

Install Server

Other Tools

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/ykovenskiy-hub/purl-mcp'

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