Skip to main content
Glama
penta2himajin

noveletary

add_facts

Batch register facts with hard constraints for a narrative scene. Optionally use atomic mode to ensure all facts are accepted or none are applied.

Instructions

[fact] 複数の事実をまとめて登録(各々hard制約でgate)。1シーン分の事実を一括投入する時に。 facts は [{subject, attribute, value, chapter, kind?, num?, narrated_in?, valid_to?}, ...]。 chapter=valid-time開始(物語内時間), valid_to=valid-time終了(排他, 未指定なら+∞), narrated_in=discourse-time(語りの章, 未指定なら chapter と同値; 回想/伏線用)。 atomic=False(既定): 逐次適用。1件矛盾しても他はcommitされ得る(部分適用が残る)。 atomic=True: 1件でも矛盾したらバッチ全体を巻き戻し何も適用しない(中途半端な状態を残さない)。 返り値: {results:[committed/rejected,...], applied: 適用されたか, (atomicで巻戻時)rolled_back_to_op}。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
factsYes
atomicNo
branchYes
Behavior5/5

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

The description reveals extensive behavioral traits beyond the annotations: it explains that each fact is gated with hard constraints, details the atomic parameter's effect on partial vs full rollback, and describes the return value format. The annotation only provides readOnlyHint=false, so the description adds substantial transparency.

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 description is a single paragraph in Japanese, front-loaded with the main purpose. It uses a concise structure with inline examples and parameter explanations. It is not overly long, but the mixed language and lack of code-like formatting slightly reduce readability. Overall efficient.

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?

Given the tool's complexity (multiple facts, atomicity, hard constraints, return values), the description covers key aspects but misses explaining the 'branch' parameter. There is no output schema, but the return format is described. The absence of output schema and incomplete parameter explanation leaves some gaps.

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 coverage is 0%, so the description must compensate. It explains the structure of the 'facts' array and fields like subject, attribute, value, chapter, etc. It also explains the 'atomic' parameter. However, the required 'branch' parameter is not explained, leaving a gap. Thus, it adds value but is incomplete.

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 clearly states the tool registers multiple facts together with hard constraints, specifically for batch input of one scene's facts. The verb 'add_facts' is descriptive, and it distinguishes from sibling tools like 'add_fact' and 'add_constraint' by specifying bulk operation.

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?

The description provides a specific use case: 'when you want to batch input facts for one scene.' It implies usage context but does not explicitly compare with similar tools like 'add_fact' or 'import_facts' or give when-not-to-use scenarios. The guidance is clear though 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/penta2himajin/noveletary'

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