Skip to main content
Glama

Import project from JSON content

project_import

Add a project to the app from its JSON file content: validates config_version, applies default design_id and region, and inserts it into the project list. Read the file first.

Instructions

Import a project from its JSON content (the app's importProjectFromFileContent flow): validates config_version (rejects files newer than the app supports), forces design_id/region to app defaults, adds to the project list. Pass the file content as a string — read the file yourself first. MUTATING (adds a project).

Input Schema

NameRequiredDescriptionDefault
nameNoProject name; defaults to config_name from the content, else "config". ".json" suffix is stripped.
contentYesProject JSON content (a CyberBrick project file exported by project_export or the app).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses concrete behavior: config_version is validated and newer files are rejected, design_id/region are silently forced to app defaults, and the project is added to the project list. It also restates the mutating nature in caps, aligning with readOnlyHint=false and destructiveHint=false (add-only, no overwrite).

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?

Purpose is front-loaded in the first clause and the trailing 'MUTATING' flag is well placed. The parenthetical app-internal method name is slightly incidental for an agent, but the remaining clauses all carry operational weight.

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 two-parameter, non-idempotent import with no output schema, the description covers validation, forced defaults, and side effects. The only gap is what is returned on success (new project id/handle), which an agent must discover empirically.

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 already 100%, so the baseline is 3; the description still adds value by telling the agent the content string must be the exported project file read from disk by the caller. That closes the practical gap about what format/content to supply, though the name parameter's defaulting rule is left 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?

States a specific verb and resource (import a project) and pins the input form (JSON content passed as a string), which separates it from project_create/project_load/project_export siblings. It also names the underlying app flow (importProjectFromFileContent), leaving no ambiguity about what operation occurs.

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?

It gives clear preconditions: the caller must read the file itself and pass content as a string, which is the key procedural guidance. It does not explicitly say when to prefer this over the sibling project_load or project_create, so it stops short of full alternative routing.

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