Skip to main content
Glama
Tetragon
by wckdboy

save_family

Save reusable custom architectural families to a workspace library with revision history and optional inheritance. Updates require the expected revision to prevent conflicts.

Instructions

Save a reusable custom architectural family to the workspace library. New families omit expected_revision; updates require it, and every earlier revision is kept. extends names a preset or custom family of the same kind whose parameters this one builds on, so parameters need hold only the changes; the parent's revision is pinned on save, and families built on this one are re-pinned to its new revision. Defaults are typed parameters, never Python or formulas. Instance cross-parameter constraints are checked when applying the building batch.

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": {
      "family": "<family>"
    },
    "name": "save_family"
  }
}

Input Schema

NameRequiredDescriptionDefault
familyYes
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: earlier revisions are retained, the parent's revision is pinned on save, dependent families are re-pinned, and cross-parameter constraints are deferred to batch application. It omits what happens on a revision mismatch and whether any save is destructive or reversible.

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?

Four sentences, purpose front-loaded, each covering a distinct concern (revisioning, inheritance, defaults, constraint timing). Dense but no filler; the extends sentence packs several clauses and could be split for readability.

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?

For a mutation tool with no annotations, no output schema, and a sizeable nested Family object, the description covers the hard semantics well but leaves the nested payload largely unexplained. An agent can call it correctly for the common new/update paths but must guess at required Family fields beyond name/kind/parameters.

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 0%, so the description must compensate and does for the two most consequential fields (expected_revision and extends). It says nothing about kind, id, tags, description, schema_version, or the shape of the parameters map inside the nested Family object.

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: "Save a reusable custom architectural family to the workspace library," which is far more precise than the bare name. It does not differentiate itself from the sibling save_family_from_element, so an agent must still infer which save path to take.

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 when-to-use distinction between creating a new family (omit expected_revision) and updating an existing one (expected_revision required). It stops short of naming alternatives or exclusions, such as when to use save_family_from_element instead.

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