Skip to main content
Glama

import_data

Restores LangCoach learner data from a previously exported JSON string, backing up current data first. Use only when the learner explicitly asks to restore their saved data.

Instructions

Replace all stored data with a previously exported JSON document (passed as a string). The current data is backed up first. Only use when the learner explicitly asks to restore data.

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": {
      "json": "<json>"
    },
    "name": "import_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the critical traits: this is a total overwrite of stored data, a backup is taken first, and it must be user-initiated. It doesn't address what happens with malformed JSON, whether the backup is retrievable, or what the call returns, which are meaningful gaps for a destructive mutation.

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

Conciseness5/5

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

Three short sentences, front-loaded with the operation and scope, then the safety behavior, then the usage restriction. No filler or redundancy.

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 one-parameter destructive tool with no annotations and no output schema, the description covers purpose, safety, and invocation conditions well. The remaining gap is failure behavior and the shape of the result, which an agent would want before calling a full-data overwrite.

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%, and the single 'json' parameter has no schema description at all, so the description must compensate. It does clarify the argument is a string containing a previously exported JSON document, but gives no constraints on format validity, version compatibility, or size limits.

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 ('Replace') and resource ('all stored data') plus the data source ('a previously exported JSON document'), which cleanly distinguishes it from the sibling export_data. An agent can tell this is a full-state restore, not a partial update.

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?

Gives an explicit precondition: 'Only use when the learner explicitly asks to restore data,' which effectively excludes proactive or speculative invocation. It doesn't name the export_data sibling as the pairing alternative or say what to do if the user is vague, so it falls just short of a full when/when-not/alternatives statement.

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