Skip to main content
Glama

context_list

Read-onlyIdempotent

List saved project rules, decisions, constraints, and notes with IDs and revisions; check existing context before adding records or find the revision needed for updates.

Instructions

List the saved context of the current project: rules, decisions, constraints and notes, with their ids and revisions. Archived records and disabled instructions are left out unless include_deleted or include_disabled is set; the filters combine with AND. Use it to check what the project already remembers before context_add, or to find the record and revision for context_update.

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

Input Schema

NameRequiredDescriptionDefault
kindsNoOptional kind filters: note, decision, instruction, constraint.
limitNoMaximum records to return.
sourcesNoOptional source filters: user, agent, import.
visibilitiesNoOptional visibility filters: shared, local_only.
sensitivitiesNoOptional sensitivity filters: normal, private.
include_deletedNoInclude archived records.
include_disabledNoInclude disabled instructions.

Output Schema

NameRequiredDescriptionDefault
errorNo
contextsYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: archived records and disabled instructions are omitted by default and only surface via include_deleted/include_disabled, and filters combine with AND rather than OR. It does not mention result ordering or how limit defaults behave, which keeps it short of a 5.

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, front-loaded with the operation and scope, then the default-exclusion rule, then the usage routing. No filler and no repetition of the parameter list already in the schema.

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?

An output schema exists, so return shape need not be described, and all seven optional parameters are schema-documented. The description covers defaults, filter combination and sibling routing; only minor operational details such as ordering of results and limit defaults are absent.

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 baseline is 3; each of the seven parameters is already documented in the schema. The description does add meaning the schema lacks — the default exclusion of archived/disabled records and the AND semantics across filters — but it says nothing about the filter value vocabularies beyond what the schema lists, so the added value is real yet modest.

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?

The description opens with a specific verb and resource ('List the saved context of the current project') and enumerates what that context contains (rules, decisions, constraints, notes) plus the identifiers returned (ids and revisions). It is clearly a read/list operation, which an agent can distinguish from the mutating siblings context_add and context_update that it names.

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?

It states two concrete situations for use: checking what the project already remembers before calling context_add, and locating the record and revision needed for context_update. Both named alternatives come with the condition that selects them, leaving little to inference.

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