Skip to main content
Glama
antigravity-context-mcp

antigravity-context-mcp

save_context_file

Writes AGENT_CONTEXT.md into a project directory to persist task context, enabling an AI coding agent to recover memory across crashed or new sessions.

Instructions

Write AGENT_CONTEXT.md into the project directory.

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": {
      "project_path": "<project_path>",
      "context_text": "<context_text>"
    },
    "name": "save_context_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
context_textYesMarkdown content to write
project_pathYesAbsolute path to the project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does not disclose whether an existing AGENT_CONTEXT.md is overwritten, whether the directory must already exist or is created, encoding, or what the call returns — significant gaps for a mutation tool with zero annotation coverage.

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?

A single front-loaded sentence with zero wasted words. It is efficient, though its brevity contributes to the missing behavioral details rather than being purely a strength.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter file-writing tool with no annotations and no output schema, the description should at minimum state overwrite behavior and the return value. Neither is present, leaving the agent unable to predict the side effects of calling it.

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 description coverage is 100% ('Markdown content to write', 'Absolute path to the project directory'), so the schema already documents both parameters. The description reinforces that context_text is file content and project_path is a directory but adds no format or validation detail beyond the schema.

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 description names a specific verb and resource ('Write AGENT_CONTEXT.md') plus the target location, which distinguishes it from siblings like save_note or save_credentials that persist different artifacts. It is clear what the tool produces, though it does not contrast itself with the export/import context siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when this tool should be used instead of alternatives such as context_export or save_note, and no stated preconditions. The agent must infer usage purely from the file name mentioned.

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