Skip to main content
Glama

Set project context

set_project_context
Destructive

Set the text of a context Asset — free-text prompt guidance (what the product does, its audience, tone) — by its assetId (from list_assets, which carries its current text), and return the text written. A global context has one text for every language and takes no locale; a per-locale one takes the locale of the text. With project (still accepted for an existing Project) it sets the project's project-wide context and returns the project; read its current value with get_project. At most 1000 characters; an empty one clears it. A Workflow's own context (get_workflow) is part of its definition and changes only by publishing a new version, not here. While list_assets shows the Asset repositoryManaged, every write is refused. These tools edit the stored Assets. A Workflow listed in list_assets repositoryWorkflows reads docs/style-guides/.md and docs/context.md on its repository's triggering commit instead, so those are edited in its files, through a pull request. A missing context file, or style guide file of a declared target language, is added in the web app by Style setup ("Draft style guides" on the Workflow's page), whose drafts pull request only adds files. 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.

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": {
      "context": "<context>"
    },
    "name": "set_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoBy assetId only: the locale of the text, for a per-locale context; omitted for a global one
assetIdNoId of a context Asset, from list_assets. Pass this or project, not both.
contextYesThe context text (max 1000 chars)
projectNoProject id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both.

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
slugNo
orgIdNo
localeNoBy assetId only: the locale of the text; null for a global Asset
assetIdNoBy assetId only
contextNoProject-wide translation context; null when unset
updatedAtNoBy assetId only
repositoryNoThe connected repository, null when the project has none
sourceLanguageNo
targetLanguagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed9 schema fields changed
    • addedInput schema / properties / assetId
      Added value: +{
      +  "description": "Id of a context Asset, from list_assets. Pass this or project, not both.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / context / description
      Previous value: -"The project-wide context (max 1000 chars)"New value: +"The context text (max 1000 chars)"
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "By assetId only: the locale of the text, for a per-locale context; omitted for a global one",
      +  "maxLength": 35,
      +  "minLength": 2,
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project id (UUID) or slug"New value: +"Project id (UUID) or slug — still accepted for an existing Project's attached Asset. Pass this or assetId, not both."
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "context"
      -]New value: +[
      +  "context"
      +]
    • addedOutput schema / properties / assetId
      Added value: +{
      +  "description": "By assetId only",
      +  "type": "string"
      +}
    • addedOutput schema / properties / locale
      Added value: +{
      +  "description": "By assetId only: the locale of the text; null for a global Asset",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / updatedAt
      Added value: +{
      +  "description": "By assetId only",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "id",
      -  "orgId",
      -  "name",
      -  "slug",
      -  "sourceLanguage",
      -  "targetLanguages"
      -]
  3. 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"
      +  }
      +]
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true is consistent with 'an empty one clears it'), it discloses the 1000-character cap, clearing semantics, the refusal condition for repository-managed Assets, and that the written text / project is returned. The main remaining gap is that the destructive effect of overwriting existing text is implied rather than stated, and no permission or rate-limit context is given.

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 identity and core mechanics are front-loaded, but the body is one dense block with nested parentheticals bundled into single sentences. The trailing material about Style setup, 'Draft style guides', and repository file editing is only loosely connected to invoking this tool, so several clauses do not earn their place.

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 four-parameter mutation tool with two mutually exclusive targeting modes and an output schema, the description covers targeting, input constraints, refusal conditions, alternative stores, and return behavior. Nothing an agent needs in order to call this correctly is missing.

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 baseline is 3, but the description adds real semantics: a global context takes no locale and has one text for all languages, whereas a per-locale context takes the locale of the text, and the project parameter is flagged as a legacy path for an existing Project. Mutual exclusivity is stated in both places, so no additional credit there.

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 opening clause gives a precise verb+resource ('Set the text of a context Asset') and names the identifier source (assetId from list_assets) and the return value. It is immediately distinguishable from read siblings like get_project/get_workflow, which are explicitly characterized as readers.

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?

Explicit routing is given for every branch: assetId for a context Asset, project 'still accepted for an existing Project', get_project to read the project value, get_workflow for a Workflow's own context ('changes only by publishing a new version, not here'). It also states when writes are refused (repositoryManaged) and which alternative path applies (repositoryWorkflows edited via files/PR).

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.