Skip to main content
Glama

product_context

Read-only

Returns a product's working context: project, spec excerpt (full spec with includeSpec), product analyst and product lead, unfinished versions with defaultVersionID (the default for new work), repositories and design files. With job, it also returns the workspace conventions and team notes for that kind of work (memoryInstructions) and the memory index of its other notes by topic (topic → key → title of up to 120 characters; a convention's key is its slug, a note's key is a link to the note's window labelled with the start of its ID), as reference; notes for other kinds of work are not listed: memoryOtherJobs gives their count per kind of work, and they come in this product context when that kind of work is in job. Notes come in full while the response stays within 44 thousand characters (the client's output limit): notes that do not fit are listed in the index, and a line above the text gives their number and keys. qaDevices holds the company's QA devices: in full with job qa, in brief with analysis, absent for other kinds of work. It also returns, in brief, the variables that apply in work on the product's tasks for that kind of work (variables), all levels together: for the same path and key the more specific level wins (company, project, repository, user, token); title and location, values of short non-secret environment variables only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "productID": "<productID>"
    },
    "name": "product_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNoKind of work: analysis - analysis and specs; dev - code and automated tests (local repositories only); qa - manual testing; devops - CI, deployment, servers, logs and performance (code changes and MRs are dev; kinds can be combined, e.g. dev and devops); review - code review; design - mockups; marketing - texts, images, video, SEO, ASO and social media
runKeyNoThe client session ID, as run.runKey when a task is taken: the memory for the job delivered here is not repeated at the take; once the session has taken a task, the conventions for working on a task are included here in full too
productIDYesProduct ID
includeSpecNotrue - full product description in spec (a large one as specInfo with an outline); default - first paragraph in specExcerpt
localRepositoriesNoIDs of the product's repositories (repositories[].ID) that the task changes, not every clone on the machine; for review - the repositories of the MR, even without a clone. Repository notes: for dev - only for them, for review and devops - for them when given; no effect on analysis, qa and design

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / includeSpec / description
      Previous value: -"true - full product description in spec; default - first paragraph in specExcerpt"New value: +"true - full product description in spec (a large one as specInfo with an outline); default - first paragraph in specExcerpt"
  2. Changed3 schema fields changed
    • changedInput schema / properties / job / description
      Previous value: -"Kind of work: analysis - analysis and specs; dev - code and automated tests (local repositories only); qa - manual testing; devops - CI, deployment, servers, logs and performance (code changes and MRs are dev; kinds can be combined, e.g. dev and devops); review - code review; design - mockups"New value: +"Kind of work: analysis - analysis and specs; dev - code and automated tests (local repositories only); qa - manual testing; devops - CI, deployment, servers, logs and performance (code changes and MRs are dev; kinds can be combined, e.g. dev and devops); review - code review; design - mockups; marketing - texts, images, video, SEO, ASO and social media"
    • changedInput schema / properties / job / items / enum
      Previous value: -[
      -  "analysis",
      -  "dev",
      -  "qa",
      -  "devops",
      -  "review",
      -  "design"
      -]New value: +[
      +  "analysis",
      +  "dev",
      +  "qa",
      +  "devops",
      +  "review",
      +  "design",
      +  "marketing"
      +]
    • changedInput schema / properties / job / maxItems
      Previous value: -6New value: +7
  3. Changed2 schema fields changed
    • changedInput schema / properties / localRepositories / description
      Previous value: -"IDs of the product's repositories cloned locally; repository notes for dev - only for them; for review - the repositories of the reviewed MR, even without a clone, which narrows the reviewer's notes"New value: +"IDs of the product's repositories (repositories[].ID) that the task changes, not every clone on the machine; for review - the repositories of the MR, even without a clone. Repository notes: for dev - only for them, for review and devops - for them when given; no effect on analysis, qa and design"
    • addedInput schema / properties / runKey
      Added value: +{
      +  "description": "The client session ID, as run.runKey when a task is taken: the memory for the job delivered here is not repeated at the take; once the session has taken a task, the conventions for working on a task are included here in full too",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / job / description
      Previous value: -"Kind of work: analysis - analysis and specs; dev - code and automated tests (local repositories only); qa - manual testing; devops - CI, builds, deployment; review - code review; design - mockups"New value: +"Kind of work: analysis - analysis and specs; dev - code and automated tests (local repositories only); qa - manual testing; devops - CI, deployment, servers, logs and performance (code changes and MRs are dev; kinds can be combined, e.g. dev and devops); review - code review; design - mockups"
    • changedInput schema / properties / localRepositories / description
      Previous value: -"IDs of the product's repositories cloned locally"New value: +"IDs of the product's repositories cloned locally; repository notes for dev - only for them; for review - the repositories of the reviewed MR, even without a clone, which narrows the reviewer's notes"
  5. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld/no-destructive annotations: it discloses the 44-thousand-character client output cap, that oversized notes are demoted to the index with a count-and-keys line above the text, that notes for other kinds of work are omitted and only counted via memoryOtherJobs, and that memory already delivered under runKey is not repeated when a task is taken. These are exactly the operational constraints an agent cannot get from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Almost every clause is load-bearing, but the whole definition is one undivided block riddled with stacked parentheticals (the memory key/title clause, the variables precedence clause), so the most important facts — what comes back and the size cap — are buried mid-paragraph. Front-loading the return summary and breaking the conditional behavior into separate sentences would cost nothing in information.

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?

For a 5-parameter aggregator that assembles many payload sections, the description accounts for conditional sections, truncation behavior, cross-tool dedup via runKey, and variable precedence — with no output schema present, this is the right level of coverage. An agent can predict the response shape before calling.

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% and the parameter descriptions are already dense, but the description adds meaning the schema does not carry: it maps each parameter to its output effect ('full spec with includeSpec', 'with job … memoryInstructions', qaDevices tiers per job kind). That param-to-payload mapping is genuinely additive, though some wording duplicates the schema's own job enum text.

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 opens with a specific verb and resource — 'Returns a product's working context' — then enumerates the exact payload (project, spec excerpt, analysts, lead, unfinished versions with defaultVersionID, repositories, design files), which lets an agent distinguish it from narrower siblings like feature_context or task_context. It stops short of naming any alternative outright, so the differentiation is inferred from scope rather than stated.

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

Usage Guidelines3/5

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

Guidance is conditional rather than selective: it explains that qaDevices appears in full with job qa, in brief with analysis and is absent otherwise, and that localRepositories has 'no effect on analysis, qa and design'. There is no explicit statement of when to reach for this tool versus task_context or feature_context, so the agent must infer the entry point from the word 'context'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources