Skip to main content
Glama

Save Context Card

save_context_card
DestructiveIdempotent

Writes a project context card to context-card.html, opens it in the browser when run locally, and returns Markdown plus a clickable link to the saved file.

Instructions

Write the context card to context-card.html in the project and, when this server runs locally, open it in the person's browser. Returns the card as Markdown (identity, AGENTS.md sections, memory, discovery) plus a clickable link to the saved file. Use this when the user wants the full card in a browser. Replaces any earlier context-card.html.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_context_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
openNoopen the saved card in the person's browser when the server runs locally (default: true)
themeNodefault: auto
accentNoCSS hex colour, e.g. #0066cc (default: the .fafa metadata.cards.accent, else black/white ink)
detailNothe Markdown reply: tldr (default) shows five facts, each cut short; full shows every fact whole. The saved file always has everything.
layoutNobusiness-card view (default: landscape)
expandedNorender every AGENTS.md section open (default: collapsed)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.1
    • changedInput schema / properties / accent / description
      Previous value: -"CSS hex colour, e.g. #FF702D (default: the AAIF palette)"New value: +"CSS hex colour, e.g. #0066cc (default: the .fafa metadata.cards.accent, else black/white ink)"
    • addedInput schema / properties / layout
      Added value: +{
      +  "description": "business-card view (default: landscape)",
      +  "enum": [
      +    "landscape",
      +    "portrait"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.3.0

TDQS

A4.1/5.0
Behavior5/5

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

The description adds real behavior beyond the annotations: the exact output file name, the fact that an earlier context-card.html is replaced (the annotation only says destructiveHint=true without saying what gets destroyed), the browser-opening side effect, and its local-server condition. It also spells out what the Markdown reply contains (identity, AGENTS.md sections, memory, discovery).

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?

Four short sentences, no filler. The write action is front-loaded, followed by the return value, the routing condition, and finally the replacement warning, which is a sensible order.

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 destructive, six-parameter tool with no output schema, the description covers the side effects, the output contents, and the replacement behavior well. Minor gaps remain: it does not clarify what 'the project' resolves to as a path, or what happens when the browser cannot be opened locally.

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%, so every parameter, including the theme, accent, detail, layout, and expanded options, is already documented in the schema itself. The description adds nothing parameter-specific, which is a 3 under the baseline rule, though it does clarify that the saved file always contains everything regardless of the detail setting.

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 uses a specific verb-plus-resource framing: it writes the context card to context-card.html, optionally opens it in a browser, and returns Markdown plus a link. The scope is easy to grasp, though it never names the obvious sibling render_context_card, so an agent must infer which one actually does the rendering.

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?

There is explicit when-to-use guidance: 'Use this when the user wants the full card in a browser.' It gives a clear positive trigger but no when-not condition, and it does not name an alternative for the non-browser or preview case.

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