Skip to main content
Glama

research_save

Saves and updates sources, claims, requirements, and drafts by stable ID to CSV/JSONL, applying partial updates and returning assigned IDs or field errors for agent resolution.

Instructions

Save/update source, claim and requirement objects by stable ID; the tool writes CSV/JSONL. Omitted IDs are assigned or matched by URL/claim/summary. Partial updates retain other fields and rows. requirements.unit_ids optionally assigns a requirement to named research units; omit it or use [] for global scope. work.requirement_ids selects records to read, not their applicability. All effective requirements remain accessible. sources.read_scope records actual reading; requirements.reading_requirement specifies required reading, not read_scope. For an active mandatory-reading requirement, the merged row needs reading_requirement="full_text" or "relevant_sections" and required_source_ids, a nonempty list of distinct source IDs, e.g. ["S1"]. Other requirements can omit both. IDs refer to source records; partial updates may omit fields already saved on the requirement. For local read_evidence, prefer a task-relative path to an existing nonempty file, e.g. "sources/S1.md"; put reading locations and notes in locator, e.g. "pp. 2-4; relevant sections only", not appended to the path. URL/page locators and supported local-reference forms remain valid; optional evidence_path locates local UTF-8 source text. draft uses path, optional content and complete=true for a complete draft; omit content to register an existing file. draft.main=true explicitly selects the current work; include draft.host_task with its actual producing agent task/session ID. A missing main producer is reported in current_work.warnings before review. Optional kind is report/comparison/review/analysis. For a contribution use kind=analysis, unit_id and the actual producing host_task; question states its research question. depends_on lists actual upstream unit IDs. complete=true records a finished unit, not an independent review or delivery; a dependent unit cannot complete before its declared upstream versions are finished and independently reviewed. Saving a prepared unit automatically retains its input versions, question and dependencies from status.work. Explicit based_on overrides that selection and copies work_context.inputs unchanged: file paths and record:sources:S1 / record:claims:C1 / record:requirements:effective or effective@unit IDs map to SHA256; copy the returned keys rather than constructing them. handoff uses summary, optional pending/decisions text lists and to (the receiving agent task/session). The registered main writer transfers ownership through handoff.to; another agent cannot silently replace the main draft. Saved unit originals and prior versions are retained in existing record-backups; summaries do not replace original analysis. current_work.research_outputs returns contributions, owners, current dependencies and changed inputs for research judgment. Chapter/reference drafts do not change the main selection. brief updates only supplied brief fields and task_spec together. Returns assigned IDs and field errors for the agent to resolve, without asking users to manage records. replace names complete collections to repair from recovered rows; original bytes are backed up automatically. Records reading/verification claims as supplied, never infers truth or closes requirements automatically. Saves retain event timestamps and original failures for task continuity. changes summarizes the latest record-save batch and candidate claim/report locations; identical bytes are not rewritten. Saving a source ID also compares local evidence against its previous save observation. First observations are explicit.

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": {
      "task": "<task>"
    },
    "name": "research_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
briefNo
draftNo
claimsNo
replaceNo
sourcesNo
requirementsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.7
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • addedInput schema / properties / brief
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Brief"
      +}
  3. First observedv1.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose real behavior: records are written to CSV/JSONL, originals and prior versions are retained in record-backups, original bytes are backed up automatically on replace, identical bytes are not rewritten, and errors come back as assigned IDs plus field errors rather than user-facing prompts. It also states the tool never infers truth or auto-closes requirements. It omits concurrency/rate/permission details, but for a local record store that is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

This is a dense, unstructured wall of roughly two dozen sentences with no headings, bullets, or grouping by parameter. Individual facts are useful, but the reader must parse every line to find the ones relevant to the save they are making, and several clauses (reading_requirement vs read_scope, effective vs effective@unit) are repeated or near-repeated. It is over-sized for a tool description and not front-loaded by importance.

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 seven-parameter mutation tool with nested free-form objects and no schema descriptions, the definition covers the tricky cases: mandatory-reading requirements, global vs unit scope, based_on input copying, handoff ownership transfer, backup/retention behavior, and the current_work.research_outputs return surface. An output schema exists so return values need not be spelled out. The residual gaps are the unexplained required 'task' parameter and the under-specified 'claims' and 'brief' shapes.

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 0%, so the description must compensate, and it largely does: it explains draft (path/content/complete/main/host_task/kind), requirements (unit_ids, reading_requirement, required_source_ids), sources.read_scope, replace semantics, based_on copying with record:sources:S1 style IDs mapping to SHA256, and handoff fields. Gaps remain — the required 'task' parameter is never explained, 'claims' is only glancingly described, and brief is covered in one line — so an agent still has to guess at the top-level shape.

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 opening clause gives a specific verb and resource set: 'Save/update source, claim and requirement objects by stable ID', plus the side effect that it writes CSV/JSONL. That is enough for an agent to know this is the persistence tool rather than a read/check tool. It stops short of naming any sibling (e.g. research_check_updates or research_status) to draw the boundary explicitly.

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?

There is substantial conditional guidance inside the text: when to use [] for global scope, when reading_requirement/required_source_ids are mandatory, when to use kind=analysis for a contribution, and when complete=true is legitimate. What is missing is routing guidance between tools — nothing says when to save versus run research_check_updates or research_status first, and there is no explicit 'do not use this for X' statement.

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