Skip to main content
Glama

project_memory

Read-only

Retrieve a project's distilled decisions, gotchas, and open TODOs as size-budgeted markdown or JSON so agents can recall key context without rereading history.

Instructions

A project's distilled decisions, gotchas and open TODOs as size-budgeted markdown (format=json for data). Skip it when a Callimachus memory block is already in context via CLAUDE.md, AGENTS.md or a hook.

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

Input Schema

NameRequiredDescriptionDefault
kindsNoAny of "decisions", "gotchas", "todos". Empty = all.
limitNoMax facts per kind (max 40).
formatNo"markdown" (default, size-budgeted) or "json".
projectNoProject path; omit for the repo this server runs in.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.4
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "coverage": {
      +              "properties": {
      +                "distilledThreads": {
      +                  "type": "integer"
      +                },
      +                "threads": {
      +                  "type": "integer"
      +                }
      +              },
      +              "required": [
      +                "distilledThreads",
      +                "threads"
      +              ],
      +              "type": [
      +                "object",
      +                "null"
      +              ]
      +            },
      +            "decisions": {
      +              "items": {
      +                "properties": {
      +                  "decidedAt": {
      +                    "type": "integer"
      +                  },
      +                  "disputedBy": {
      +                    "items": {
      +                      "properties": {
      +                        "decidedAt": {
      +                          "type": "integer"
      +                        },
      +                        "id": {
      +                          "type": "integer"
      +                        },
      +                        "text": {
      +                          "type": "string"
      +                        },
      +                        "threadId": {
      +                          "type": [
      +                            "integer",
      +                            "null"
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "id",
      +                        "text",
      +                        "decidedAt"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "extractor": {
      +                    "type": "string"
      +                  },
      +                  "id": {
      +                    "type": "integer"
      +                  },
      +                  "originRef": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "pinned": {
      +                    "type": "boolean"
      +                  },
      +                  "replaces": {
      +                    "items": {
      +                      "type": "integer"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "replacesDecidedAt": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "status": {
      +                    "enum": [
      +                      "current",
      +                      "disputed",
      +                      "flagged",
      +                      "superseded"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "threadId": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "threadId",
      +                  "text",
      +                  "extractor",
      +                  "originRef",
      +                  "decidedAt",
      +                  "status"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "distilledCount": {
      +              "type": "integer"
      +            },
      +            "gotchas": {
      +              "items": {
      +                "properties": {
      +                  "decidedAt": {
      +                    "type": "integer"
      +                  },
      +                  "disputedBy": {
      +                    "items": {
      +                      "properties": {
      +                        "decidedAt": {
      +                          "type": "integer"
      +                        },
      +                        "id": {
      +                          "type": "integer"
      +                        },
      +                        "text": {
      +                          "type": "string"
      +                        },
      +                        "threadId": {
      +                          "type": [
      +                            "integer",
      +                            "null"
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "id",
      +                        "text",
      +                        "decidedAt"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "extractor": {
      +                    "type": "string"
      +                  },
      +                  "id": {
      +                    "type": "integer"
      +                  },
      +                  "originRef": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "pinned": {
      +                    "type": "boolean"
      +                  },
      +                  "replaces": {
      +                    "items": {
      +                      "type": "integer"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "replacesDecidedAt": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "status": {
      +                    "enum": [
      +                      "current",
      +                      "disputed",
      +                      "flagged",
      +                      "superseded"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "threadId": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "threadId",
      +                  "text",
      +                  "extractor",
      +                  "originRef",
      +                  "decidedAt",
      +                  "status"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "openTodos": {
      +              "items": {
      +                "properties": {
      +                  "decidedAt": {
      +                    "type": "integer"
      +                  },
      +                  "disputedBy": {
      +                    "items": {
      +                      "properties": {
      +                        "decidedAt": {
      +                          "type": "integer"
      +                        },
      +                        "id": {
      +                          "type": "integer"
      +                        },
      +                        "text": {
      +                          "type": "string"
      +                        },
      +                        "threadId": {
      +                          "type": [
      +                            "integer",
      +                            "null"
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "id",
      +                        "text",
      +                        "decidedAt"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "extractor": {
      +                    "type": "string"
      +                  },
      +                  "id": {
      +                    "type": "integer"
      +                  },
      +                  "originRef": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "pinned": {
      +                    "type": "boolean"
      +                  },
      +                  "replaces": {
      +                    "items": {
      +                      "type": "integer"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "replacesDecidedAt": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "status": {
      +                    "enum": [
      +                      "current",
      +                      "disputed",
      +                      "flagged",
      +                      "superseded"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  },
      +                  "threadId": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "threadId",
      +                  "text",
      +                  "extractor",
      +                  "originRef",
      +                  "decidedAt",
      +                  "status"
      +                ],
      +                "type": "object"
      +              },
      +              "type": [
      +                "array",
      +                "null"
      +              ]
      +            },
      +            "pendingCount": {
      +              "type": "integer"
      +            },
      +            "project": {
      +              "type": "string"
      +            },
      +            "threadCount": {
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "project",
      +            "threadCount",
      +            "distilledCount",
      +            "pendingCount"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "properties": {
      +            "markdown": {
      +              "type": "string"
      +            },
      +            "project": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "project",
      +            "markdown"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "notice": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "notice"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed6 schema fields changedv0.11.3
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "\"markdown\" (default, size-budgeted) or \"json\".",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / kinds
      Added value: +{
      +  "default": [],
      +  "description": "Any of \"decisions\", \"gotchas\", \"todos\". Empty = all.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Max facts per kind (max 40).",
      +  "format": "uint32",
      +  "minimum": 0,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project-path substring. Omit to use the git repo the server runs in."New value: +"Project path; omit for the repo this server runs in."
    • removedInput schema / title
      Removed value: -"ProjectMemoryArgs"
  3. Addedv0.6.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, and the description adds useful behavioral context on top: output is budgeted in size and defaults to markdown, with format=json for programmatic use. It does not describe ordering or behavior on empty results, but the added context is genuine rather than restated.

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?

Two sentences, no filler: the first defines the payload and format switch, the second states the skip condition. The most important routing rule is front-loaded in the opening clause.

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 read-only, zero-required-parameter tool with an output schema and annotations, the definition covers what is returned and when to avoid calling it. Only minor gaps remain, such as what the size budget means in practice or how facts are ordered.

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 the schema already documents kinds, limit, format, and project. The description only reinforces the format parameter by noting json is for data, which is marginal added meaning over 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 the concrete resource (a project's distilled decisions, gotchas, and open TODOs) and the return shape (size-budgeted markdown, JSON on request), which is enough to tell it apart from single-kind siblings like recall_decisions or list_open_todos. It stops short of explicitly differentiating itself from those siblings, so it lands just below the top.

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 an explicit exclusion: skip when a Callimachus memory block is already in context via CLAUDE.md, AGENTS.md, or a hook. That is a real when-not rule. What is missing is a positive when-to-use note naming the narrower alternatives (e.g., recall_decisions) when only one kind is needed.

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