Skip to main content
Glama

context.get

Idempotent

Retrieve the current session context as Markdown—task, progress, decisions, blockers, changed files, tests, and next action—while recording new git changes and an auto-checkpoint.

Instructions

Return the session context as Markdown: current task, progress, decisions, open blockers, changed files, tests and next action. Not read-only: it first records new git file changes as file.changed events and may write an auto-checkpoint. Call it at the start of every session; use context.read instead when the client only allows read-only tools.

Input Schema

NameRequiredDescriptionDefault
depthNosummary (default): size-capped, with nudges and related memory; recent: no size cap, plus recent events; full: no limits, plus twice as many events

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.9
    • changedInput schema / properties / depth / description
      Previous value: -"summary|recent|full"New value: +"summary (default): size-capped, with nudges and related memory; recent: no size cap, plus recent events; full: no limits, plus twice as many events"
  2. First observedv0.1.8

TDQS

A4.7/5.0
Behavior5/5

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

Discloses non-obvious side effects the annotations do not cover: it writes file.changed events for new git changes and may write an auto-checkpoint, and explicitly flags "Not read-only" — valuable because the only annotation is idempotentHint=true, which alone would not warn an agent about writes. No contradiction: re-recording the same git changes is plausibly idempotent, consistent with the hint.

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?

Three tight sentences, front-loaded with the return contract, then the write-side warning, then the routing rule. No filler and nothing buried; the side-effect warning is placed early rather than tacked on.

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

Completeness5/5

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

No output schema exists, yet the description specifies the return format (Markdown) and its sections, plus the mutation behavior and the read-only fallback. For a zero-required-parameter tool this covers everything an agent needs to call it safely at session start.

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% and the single optional `depth` parameter already enumerates summary/recent/full semantics in the schema, so the description need not repeat it. The description adds no default-behavior or formatting guidance for depth, leaving this at the baseline.

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?

Specific verb plus resource (returns session context as Markdown) followed by an enumerated payload: current task, progress, decisions, blockers, changed files, tests, next action. It also explicitly contrasts itself with sibling context.read, so an agent can distinguish it 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?

Gives an explicit trigger ("Call it at the start of every session") and names the alternative with the exact selecting condition ("use context.read instead when the client only allows read-only tools"). Both the when and the when-not are stated, not inferred.

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