Skip to main content
Glama

Render Context Card

render_context_card
Read-onlyIdempotent

Renders a project's context card in chat when MCP Apps are supported, or returns it as Markdown for text-only clients.

Instructions

Show the project's context card. In a client that displays MCP Apps, the host draws it in the chat (a mini card in a chat panel). Anywhere else the reply is the card as Markdown: identity, AGENTS.md sections, memory, discovery. format: "markdown" returns the Markdown card in any client, for a user who asks for the card as text. For the original card in a browser, use save_context_card (also GET /card over HTTP).

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": "render_context_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNothe Markdown card: tldr (default) shows five facts, each cut short; full shows every fact whole
formatNoauto (default): the host draws the card if it displays MCP Apps, else the Markdown card; markdown: the Markdown card in any client

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.9.6
    • removedInput schema / properties / accent
      Removed value: -{
      -  "description": "CSS hex colour, e.g. #0066cc (default: the .fafa metadata.cards.accent, else black/white ink)",
      -  "type": "string"
      -}
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "the Markdown card: tldr (default) shows five facts, each cut short; full shows every fact whole",
      +  "enum": [
      +    "tldr",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / expanded
      Removed value: -{
      -  "description": "render every AGENTS.md section open (default: collapsed)",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "auto (default): the host draws the card if it displays MCP Apps, else the Markdown card; markdown: the Markdown card in any client",
      +  "enum": [
      +    "auto",
      +    "markdown"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / layout
      Removed value: -{
      -  "description": "business-card view (default: landscape)",
      -  "enum": [
      -    "landscape",
      -    "portrait"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / theme
      Removed value: -{
      -  "description": "default: auto",
      -  "enum": [
      -    "light",
      -    "dark",
      -    "auto"
      -  ],
      -  "type": "string"
      -}
  2. 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"
      +}
  3. Changed1 schema field changedv1.1.0
    • addedInput schema / properties / expanded
      Added value: +{
      +  "description": "render every AGENTS.md section open (default: collapsed)",
      +  "type": "boolean"
      +}
  4. First observedv0.5.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered; the description adds the real behavioral trait — output shape depends on the host (drawn card vs. Markdown), which annotations cannot express. It also enumerates the card's contents (identity, AGENTS.md sections, memory, discovery), though it does not describe failure or empty-project behavior.

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?

Front-loaded with the core action and the host-dependent behavior, then the alternative tool. A few phrases are redundant, notably the parenthetical gloss "a mini card in a chat panel," which restates the sentence it follows.

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?

With no output schema and two optional enum parameters, the description carries the return-shape burden and does describe what the Markdown reply contains. The only gap is not stating what happens when the project has no card or sources yet.

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 100%, so the baseline is 3, but the description adds genuine meaning for format by tying "markdown" to the user intent of asking for the card as text, and by explaining what the default auto path resolves to. The detail parameter is left entirely 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 ("Show the project's context card") and immediately distinguishes itself from save_context_card, the tool that produces the original card in a browser. An agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

Explicitly routes: in an MCP Apps host the card is drawn in chat, elsewhere the reply is Markdown; format:"markdown" forces the text card for a user who asks for the card as text; and it names save_context_card as the alternative for the browser-rendered original. When-to-use, when-not, and the alternative are all present.

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