Skip to main content
Glama
Unilytics MCP Server

Unilytics MCP Server

Official

propose_brand_kit

Save proposed updates to a client project's Brand Context as a reviewable draft with cited sources, leaving the published context unchanged until a consultant approves it.

Instructions

Save Brand Context values for a client project as the Brand Context's draft, with the sources they come from: brand facts (about, ideal customer profile, point of view, author persona), tone of voice, the call to action, writing rules, content types, writing samples and custom variables. The draft waits on the project's Brand Context page, where the consultant publishes or discards it; the published Brand Context, and what get_project_context returns, stay unchanged until then. This tool doesn't publish, discard or delete.

Use when the user asks to add to or update a client's Brand Context, for example from their brand guidelines.

The changes apply to the published Brand Context: a field given replaces that field whole; in each list,
`remove` takes items out by id, then `set` adds new items (no id) or replaces an existing item whole (its id). A
Brand Context that already has a draft waiting for review takes no new proposal, except one that adds to this
connection's own pending proposal (draft_proposal_id). Every proposal cites at least one source: Knowledge Base documents
(`kb_sources`, each with the content_hash kb_get_document returned, which is refused once the document has
changed) and/or the user's own words (`user_statements`, recorded as quotes reported by the AI, not verified).

Args:
    project_id: The project (from list_projects()).
    based_on_version: brand_kit.published_version as get_project_context returned it (0 when there is no
        published Brand Context). A Brand Context published again since is refused.
    fields: Fields to replace: about, ideal_customer_profile, point_of_view, author_persona, tone_of_voice (text),
        cta ({text, destination}) and header_case.
    writing_rules: {set, remove}. A rule is {id?, text, content_type_ids}; content_type_ids [] applies it to every
        content type. get_project_context lists the global rules, and a content type's own rules when called
        with that content_type, each with its id and content_type_ids.
    content_types: {set, remove}. A content type is {id?, name, description, cta}; cta is an object, "inherit"
        (the Brand Context's CTA; the default for a new one) or "none". One named by id states its cta, as
        get_project_context's available_content_types shows it.
    writing_samples: {set, remove}. A sample is {id?, title, url, body, outline}; its current body comes from
        get_project_context with include_samples.
    custom_variables: {set, remove}. A variable is {id?, key, value}; brand_kit.custom_variable_ids gives each
        key's id.
    kb_sources: Knowledge Base documents the values come from: [{document_id, content_hash}].
    user_statements: The user's own words the values come from, quoted exactly.
    draft_proposal_id: The proposal_id (kbp_…) an earlier call returned, to add these changes to that pending
        proposal; a field named here replaces the value that proposal set.
    mutation_id: Optional UUID for this proposal. A repeat with the same mutation_id and arguments returns the
        saved proposal instead of saving another; an OUTCOME_UNKNOWN error names the one it used.

[Provider: Unilytics]

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": {
      "project_id": "<project_id>",
      "based_on_version": "<based_on_version>"
    },
    "name": "propose_brand_kit"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNo
kb_sourcesNo
project_idYes
mutation_idNo
content_typesNo
writing_rulesNo
user_statementsNo
writing_samplesNo
based_on_versionYes
custom_variablesNo
draft_proposal_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.1.2
    • addedInput schema / $defs / BrandContextFields
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Brand Context fields. A field given replaces the Brand Context's value whole; a field left out (or null) stays\nas it is.",
      +  "properties": {
      +    "about": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "What the company is and does.",
      +      "title": "About"
      +    },
      +    "author_persona": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Who the content is written as.",
      +      "title": "Author Persona"
      +    },
      +    "cta": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/Cta"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "The Brand Context's call to action, used by content types that inherit it."
      +    },
      +    "header_case": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "sentence",
      +            "title",
      +            "upper",
      +            "unset"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Heading capitalisation.",
      +      "title": "Header Case"
      +    },
      +    "ideal_customer_profile": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Who the content is for.",
      +      "title": "Ideal Customer Profile"
      +    },
      +    "point_of_view": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "The brand's stance and beliefs.",
      +      "title": "Point Of View"
      +    },
      +    "tone_of_voice": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "How the brand sounds.",
      +      "title": "Tone Of Voice"
      +    }
      +  },
      +  "title": "BrandContextFields",
      +  "type": "object"
      +}
    • removedInput schema / $defs / BrandKitFields
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Brand Kit fields. A field given replaces the kit's value whole; a field left out (or null) stays as it is.",
      -  "properties": {
      -    "about": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "What the company is and does.",
      -      "title": "About"
      -    },
      -    "author_persona": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Who the content is written as.",
      -      "title": "Author Persona"
      -    },
      -    "cta": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/Cta"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "The Brand Kit's call to action, used by content types that inherit it."
      -    },
      -    "header_case": {
      -      "anyOf": [
      -        {
      -          "enum": [
      -            "sentence",
      -            "title",
      -            "upper",
      -            "unset"
      -          ],
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Heading capitalisation.",
      -      "title": "Header Case"
      -    },
      -    "ideal_customer_profile": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Who the content is for.",
      -      "title": "Ideal Customer Profile"
      -    },
      -    "point_of_view": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "The brand's stance and beliefs.",
      -      "title": "Point Of View"
      -    },
      -    "tone_of_voice": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "How the brand sounds.",
      -      "title": "Tone Of Voice"
      -    }
      -  },
      -  "title": "BrandKitFields",
      -  "type": "object"
      -}
    • changedInput schema / $defs / ContentType / properties / cta / description
      Previous value: -"Its call to action: an object, \"inherit\" (the Brand Kit's CTA) or \"none\"."New value: +"Its call to action: an object, \"inherit\" (the Brand Context's CTA) or \"none\"."
    • changedInput schema / $defs / ContentType / properties / name / description
      Previous value: -"Its name, unique in the kit ignoring case."New value: +"Its name, unique in the Brand Context ignoring case."
    • changedInput schema / $defs / CustomVariable / properties / key / description
      Previous value: -"Lowercase letters, digits and _, starting with a letter; unique in the kit."New value: +"Lowercase letters, digits and _, starting with a letter; unique in the Brand Context."
    • changedInput schema / properties / fields / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/BrandKitFields"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/BrandContextFields"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Addedv1.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, so the description carries real weight and delivers: the write lands in a draft pending consultant review, the published context and get_project_context output stay unchanged, a pending draft blocks new proposals unless draft_proposal_id matches, stale based_on_version and changed content_hash are refused, and mutation_id replays return the saved proposal. These are exactly the non-obvious behaviors an agent needs before committing.

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

Conciseness4/5

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

Purpose is front-loaded in the first sentence and the Args block mirrors the schema order. It is long, and a few passages repeat themselves (the draft-waits-for-review idea appears in both the opening paragraph and the paragraph before Args), but nearly every line carries information an agent would otherwise have to guess.

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?

Eleven parameters, no output schema, and conditional idempotency make this a complex tool, yet the description covers preconditions (version/hash staleness), concurrency (one pending draft), the draft-vs-published end state, and even error naming (OUTCOME_UNKNOWN). Given there is no output schema, naming proposal_id and the refusal modes is what makes the definition callable without further probing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage measures 0%, so the description must compensate and does: each argument is explained with provenance (project_id from list_projects, based_on_version from get_project_context, 0 when unpublished, ids from brand_kit.custom_variable_ids), and the replace-whole / remove-then-set list semantics are spelled out. It also explains draft_proposal_id and mutation_id semantics that the schema only labels by name.

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 first sentence gives a specific verb and resource: it saves Brand Context values as the project's *draft*, and enumerates exactly which value types (brand facts, tone of voice, CTA, writing rules, content types, samples, custom variables). The closing clause 'This tool doesn't publish, discard or delete' draws a hard line between this tool and whatever publishes the draft, so an agent can classify it without opening the schema.

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?

It states the triggering condition explicitly ('Use when the user asks to add to or update a client's Brand Context, for example from their brand guidelines') and names the required inputs' sources (list_projects, get_project_context). What is missing is a named alternative for the adjacent case, e.g. propose_context_record or propose_personal_context, so the agent must infer from sibling names which proposal tool to pick.

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

Deploy Server

Other Tools