Skip to main content
Glama

Create or update props

upsert_props

Creates props (no id, name required) or updates them (id + expected_version): objects that matter to the plot and must look the same every time. The studio shows a prop's name and description: always describe what it looks like (its image is drawn from it). significance is optional.

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": {
      "drama_id": "<drama_id>",
      "props": "<props>"
    },
    "name": "upsert_props"
  }
}

Input Schema

NameRequiredDescriptionDefault
propsYesProps to create or update, matched by name: what each looks like and why it matters.
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.

Output Schema

NameRequiredDescriptionDefault
propsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, and the description genuinely adds to that: name-based matching for creates, an optimistic-concurrency gate via expected_version, and the fact that description feeds image generation. However, it never says what happens on a version mismatch, whether a name collision silently updates an existing prop, or how partial failures across a batch are reported — the most consequential behaviours for an upsert. Useful context, but incomplete for a mutation.

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 operational rule is front-loaded in the first clause and the rest elaborates on how to fill fields, with no filler sentences. The parenthetical syntax and the colon-heavy phrasing make it slightly dense, and the gloss "objects that matter to the plot and must look the same every time" is atmospheric but does justify the significance field. Overall tight and appropriately sized.

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?

With annotations covering the safety profile, a 100%-covered schema, and an output schema present, the definition need not explain return values. It covers create-vs-update mechanics, the required description content, and field optionality. The remaining gap is conflict and partial-failure semantics for a batched versioned upsert, which is meaningful but narrower than the gaps in a typical 3.

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 coverage is 100%, so the baseline is 3, and the description earns a step above it by explaining the conditional contract the schema cannot express: id must be absent for create, and expected_version is coupled to the presence of id. It also flags significance as optional and states the semantic purpose of description. It does not mention the 40-item batch cap or name-length limits, but those are visible in the schema.

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 description names a specific verb and resource ("creates props" / "updates them") and even discriminates the two modes by parameter shape: "no id, name required" for creation versus "id + expected_version" for update. That is well beyond a tautology. It stops short of 5 only because it never contrasts itself with adjacent tools such as upsert_characters/locations or generate_prop_image, so an agent must infer the boundary from the resource name alone.

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 gives concrete when-to-use rules: omit id and supply name to create, include id plus expected_version to update, and significance is explicitly optional. It also instructs the agent to always write a visual description because the image is drawn from it. What is missing is any exclusion or pointer to an alternative (e.g. generating the actual prop image), so an agent has context but no routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.