Skip to main content
Glama

Set project context

set_project_context
Destructive

Set a project's project-wide context — the free-text prompt guidance shared across every target language (what the product does, its audience, tone). At most 1000 characters. Read the current value with get_project. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextYesThe project-wide context (max 1000 chars)
projectYesProject id (UUID) or slug

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
slugYes
orgIdYes
contextNoProject-wide translation context; null when unset
repositoryNoThe connected repository, null when the project has none
sourceLanguageYes
targetLanguagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / repository / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "detectedFramework": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "gitUrl": {
      -        "type": "string"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "provider": {
      -        "type": "string"
      -      },
      -      "repoPatterns": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "fileFormat": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "pattern": {
      -              "type": "string"
      -            },
      -            "position": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "pattern",
      -            "fileFormat",
      -            "position"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "gitUrl",
      -      "provider",
      -      "repoPatterns"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "branches": {
      +        "description": "Watched branches, in order. The first entry is the primary branch.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "detectedFramework": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "gitUrl": {
      +        "type": "string"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "provider": {
      +        "type": "string"
      +      },
      +      "repoPatterns": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "fileFormat": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "pattern": {
      +              "type": "string"
      +            },
      +            "position": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "pattern",
      +            "fileFormat",
      +            "position"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "gitUrl",
      +      "provider",
      +      "branches",
      +      "repoPatterns"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this mutates state. The description hints at overwrite by telling the agent to read the current value first and caps input at 1000 characters, but it never says out loud that the existing context is replaced wholesale rather than merged or appended — the single most important behavioral fact for a destructive write.

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?

The purpose and constraints are front-loaded and efficient, but the final sentence about how to name projects and locales in replies is a server-wide formatting convention rather than tool-specific information and dilutes a description that should focus on this call. Slightly over-sized for a two-parameter setter.

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

Completeness3/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 values need no explanation, and the character limit plus read-before-write pointer are present. What is missing is the overwrite/merge semantics of a destructive write — the one thing an agent cannot infer from the schema or annotations alone.

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 real meaning the schema lacks: it explains what the 'context' string should contain (product description, audience, tone) and clarifies via the UUID/locale note that the 'project' value is an identifier used only in tool calls, never shown to users.

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 ('Set a project's project-wide context') and immediately defines what that context is (free-text prompt guidance shared across every target language — product, audience, tone). This clearly separates it from siblings like set_style_guide and set_repository_patterns, which set other artifact types.

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?

Gives a clear read-before-write workflow by naming get_project as the way to inspect the current value, and states the scope constraint (shared across all target languages) and the 1000-character limit. It does not explicitly say when to prefer this over set_style_guide, so it falls short of full alternative routing.

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.