Skip to main content
Glama

Save custom instruction

save_instruction

Adds a custom instruction (a rule the AI follows in every comment and DM reply suggestion, with priority over everything else), or replaces the text of one when instructionId is given, keeping its id and position. This is where tone, style, address, persona, wording, do's and don'ts and forbidden topics belong, condensed to short rules; a brand-voice guide becomes a handful of instructions, never a knowledge document. Facts (prices, policies, product data) go to add_knowledge_source instead. A brand has at most 5. Returns the instructions before and after, and any URLs the new text introduces: replies may link to those URLs from now on.

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": {
      "brand": "<brand>",
      "text": "<text>"
    },
    "name": "save_instruction"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesOne rule for the AI, at most 1500 characters of plain text, e.g. "Always answer in the language of the comment and sign with – Team Example." Rules are added to every reply prompt with the highest priority and used as written: there are no placeholders. URLs in a rule become links the AI may put into replies.
brandYes
instructionIdNoId of the instruction to rewrite, from get_brand_setup. Omit to add one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare a non-read-only, non-idempotent, non-destructive write; the description adds real behavior beyond them: a hard cap of 5 instructions per brand, that a replacement preserves id and position, that the response includes instructions before and after, and that URLs in new text become links the AI may emit in replies. What it does not cover is failure behavior (what happens when the 5-instruction cap is hit) or permission requirements.

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?

Front-loaded with the verb and both modes, and every sentence carries information (definition, scoping, alternatives, limit, return values). It is dense — the long parenthetical definition and the multi-clause final sentence demand careful reading — but nothing is filler.

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?

Though there is no output schema, the description states exactly what is returned (instructions before and after, plus newly introduced URLs) and covers the mutation risk, the cap, and the sibling boundary. An agent has everything needed to call this correctly.

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 67%, and the only undocumented parameter is 'brand', whose meaning is largely implied. The description compensates by adding semantics the schema lacks: the add-vs-rewrite switch on instructionId, the 5-per-brand ceiling, and what kind of content 'text' should and should not contain.

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 description opens with a specific verb and resource ('Adds a custom instruction') and immediately distinguishes the two modes of operation: create vs. replace when instructionId is given, preserving id and position. It also explains what an instruction *is* (a rule with top priority in every reply suggestion), which lets an agent separate it from sibling tools like add_knowledge_source.

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 in both directions: tone, style, address, persona, wording, do's/don'ts and forbidden topics belong here, while facts such as prices, policies and product data go to add_knowledge_source. It also states the operating limit (at most 5 per brand) and the condensed-to-short-rules constraint, plus when to omit instructionId.

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