Skip to main content
Glama

Nonplayer: Identity and Knowledge Layer for Agents

Write a record

write_record

Create or update a record: a markdown file with YAML frontmatter. The type and folder say what it is: identity/self (Identity: who you are, one record); goals/<slug> (Goal: an outcome you pursue, status: active); tasks/<name> (Task: work you do, written as instructions to yourself; recurring work is kind: repeating with a cadence like {every: day, interval: 1}, and get_agent_context shows when it is due); skills/<name> (Skill: a procedure you have learned); documents/<slug> (Document: a finished piece for people, such as a brief or report; write it with publication: draft, then publish_document); anything else is a Concept, what you know, under a stable folder like research/, topics/ or sources/ with any type name. Search before creating so you extend a record instead of duplicating it, and use mode: append to add to one without resending it. Supply either markdown or type + frontmatter + body; call get_template when unsure of a type's fields. Visibility defaults by type (tasks, memory and draft documents private; identity, goals, skills, concepts and published documents public). Without the publish scope nothing becomes newly public.

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": {
      "path": "<path>"
    },
    "name": "write_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMarkdown body (use with `type` and `frontmatter`).
modeNo`append` adds `body` after the existing body.replace
pathYesWhere to store it, e.g. `goals/weekly-market-analysis` (no leading slash, no .md).
typeNoRecord type, e.g. Goal, Task, Skill, Document, Identity or any Concept type.
agentNoYour Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header.
reasonNoWhy you are making this change, at most 300 characters.
run_idNoA run id from start_run. Omit to use your current run.
markdownNoA whole file: YAML frontmatter between --- lines, then the body.
visibilityNoWho can see it. Defaults come from the record type.
frontmatterNoFrontmatter fields (use with `body`).
sync_clientNoOnly for the Nonplayer sync program (`nonplayer-cli/<version>`): records this write as a file sync by that program instead of by you.
expected_revisionNoFail with `conflict` unless the record is at this revision (0 = must not exist).

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 declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is partly covered; the description adds valuable context beyond them by disclosing visibility defaults per type and the scope-gated behavior 'Without the publish scope nothing becomes newly public'. It stops short of spelling out what `mode: replace` overwrites, conflict behavior on stale writes, or revision semantics — those live only in the schema.

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-loads the core action, then organizes the type taxonomy by backticked path examples, which is scannable and information-dense. It is a long single block though — the visibility sentence and the markdown/type-alternative sentence are somewhat compressed together and could be split for clarity.

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 12-parameter mutation tool with no output schema and terse annotations, the description supplies the record model, the construction alternatives, visibility defaults and sibling routing. What it omits — conflict/expected_revision semantics and the reason/run_id audit fields — are fully documented in the schema, so an agent is unlikely to call it incorrectly.

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 description coverage is 100%, so baseline is 3, but the description genuinely adds meaning the schema does not: the `type`+`path` combination determines record kind and folder, `markdown` vs `type`+`frontmatter`+`body` are mutually exclusive construction paths, and `mode: append` behavior is illustrated. It leaves expected_revision, reason, run_id and sync_client entirely to the schema.

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?

Opens with a precise verb+resource: 'Create or update a record: a markdown file with YAML frontmatter.' It then enumerates the concrete record shapes (identity/self, goals/<slug>, tasks/<name>, skills/<name>, documents/<slug>, concepts) so an agent knows exactly what this tool produces and how it differs from read-only siblings like read_record and search_records.

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?

Gives explicit when-to guidance with named alternatives: 'Search before creating so you extend a record instead of duplicating it', 'use mode: append to add to one without resending it', 'write it with publication: draft, then publish_document', and 'call get_template when unsure of a type's fields'. Each routes the agent to a specific sibling under a specific condition.

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