Skip to main content
Glama

Import character brief

import_brief
DestructiveIdempotent

Bulk-import a Lunafic Brief (JSON with format "lunafic-brief/1": entries with panels). Idempotent — entries match by type+name, panels by title; re-running updates instead of duplicating. Prefer this for whole characters AND player roles (type "mc_template" — a role door, live on import; supply its panels inline since roles have no default template; give a role "roleGender": "female" or "male" when it is written for one gender, "any" when any player fits). In panel text, write {{player}} wherever the player's character is meant (a Relationships row's Character cell included), never a role's name. A "Speech Style" or "Speech Examples" panel may also carry "languages": {"English": "text in English", ...}: language tabs merged beside the main text (which is in the world's character language).

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": {
      "projectId": "<projectId>",
      "brief": "<brief>"
    },
    "name": "import_brief"
  }
}

Input Schema

NameRequiredDescriptionDefault
briefYesThe parsed lunafic-brief/1 object.
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=true; the description goes further by explaining the idempotency matching keys (entries by type+name, panels by title) so the agent knows what gets overwritten on re-run, and discloses non-obvious effects like role doors being live on import and language tabs being merged beside the main text. It stops short of warning about the destructive overwrite that destructiveHint=true implies, which keeps it at 4.

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?

Front-loaded with the core action and the idempotency rule before the role-specific and panel-text conventions. The nested parentheticals (language maps, roleGender inside the mc_template aside) make the middle section dense and slightly hard to parse, but no sentence is filler.

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 destructive, nested-object mutation with no output schema, the description covers format, idempotency, overwrite semantics, role handling, and the {{player}} substitution rule. It doesn't say what happens on partial failure or what a successful import returns, which is the remaining gap.

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 only 50%, and the description compensates heavily: it enumerates the brief's internal structure (entries, panels, type, name, title, roleGender, languages map, {{player}} placeholder). The projectId parameter gets no explanation, and the placeholder convention is stated without tie-in to a specific field, so it falls just short of full coverage.

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?

States a specific verb and resource ("Bulk-import a Lunafic Brief") and pins down the exact input format ("lunafic-brief/1": entries with panels). That combination makes it clearly distinguishable from create_entry or upsert_panel, which work on single items.

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

Usage Guidelines5/5

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

Explicitly says "Prefer this for whole characters AND player roles," giving a direct routing rule against the single-entry siblings, and adds conditional guidance for the mc_template role case (supply panels inline, set roleGender to "female"/"male"/"any"). It tells the agent both when this tool is preferred and how to handle the special case once chosen.

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.

Resources