Skip to main content
Glama

Create or update locations

upsert_locations

Creates locations (no id, name required) or updates them (id + expected_version). The studio shows each one's name, time_variants (its times of day) and description: always fill all three. The description is what the camera sees (architecture, dressing, light) and says whether it is indoors or outdoors; set interior to match. Size the count to the season (see the shortdrama-workflow skill).

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>",
      "locations": "<locations>"
    },
    "name": "upsert_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
locationsYesPlaces to create or update, matched by name: description, interior, times of day.

Output Schema

NameRequiredDescriptionDefault
locationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuine context by revealing optimistic-concurrency semantics via expected_version being required on update, but it never says what happens on a version mismatch or whether an update replaces omitted fields.

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, front-loaded with the create-versus-update rule, then field guidance, then a pointer to the skill. Dense but nearly every clause carries information; the closing skill reference is the only loosely attached element.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, annotations covering safety and idempotency, and 100% schema description coverage, the description's remaining job is domain semantics of the fields, which it delivers. Nothing essential to calling the tool correctly is left unstated.

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%, yet the description still adds meaning the schema cannot: interior must be consistent with the described architecture/dressing/light, time_variants are the location's times of day, and description should state indoors/outdoors. That is real semantic layering beyond the field descriptions, though it says nothing about batching limits or how matching by name resolves on create.

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?

Names a specific operation (create-or-update) on a specific resource (locations), and disambiguates the two modes by parameter shape: 'no id, name required' for create versus 'id + expected_version' for update. It does not clarify how this differs from image-generating siblings such as generate_location_plate, which is the one place an agent could hesitate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear in-tool guidance: which parameters select create versus update, and that name, time_variants and description must always be filled. It also defers count sizing to the shortdrama-workflow skill. However, it offers no explicit statement of when to use this tool instead of alternatives (e.g. plate generation) and no prerequisites or error-handling 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.