Skip to main content
Glama

set_favorite_script

Mark one script as the favorite by passing 'main' or a variant id, or omit the draft to clear it, keeping your preferred version starred on its tab.

Instructions

Mark one script as the favorite (star on its tab): 'main' or a variant id. Omit draft to clear it.

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": {
      "session": "<session>"
    },
    "name": "set_favorite_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNo'main' or a variant id.
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, leaving the mutation semantics to the description — which correctly discloses that omitting the draft argument clears the favorite rather than leaving it unchanged. That is a non-obvious side effect worth crediting. It does not mention permissions, single-favorite exclusivity, or what is returned, keeping it short of a 5.

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

Conciseness5/5

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

Two short sentences with no filler; the primary action comes first and the optional clearing behavior is front-loaded where it will be read.

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 two-parameter setter with fully documented schema and no output schema, the description covers the action, the accepted values, and the omit-to-clear edge case. Nothing an agent needs to call it 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 the baseline is 3, but the description adds meaning the schema does not convey: an omitted draft means 'clear the favorite' rather than 'no change.' That behavior is the key semantic risk for this parameter and it is stated explicitly.

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 states a specific verb and resource ('Mark one script as the favorite') plus the accept-able value domain ('main' or a variant id) and even the UI artifact (star on its tab). It does not differentiate itself from any sibling (e.g. set_best_cut, set_keeper), but the resource is distinct enough that selection is unambiguous.

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?

'Omit draft to clear it' gives explicit guidance for the removal case, which is genuinely useful. However, there is no guidance on when this should be preferred over related setters, nor any stated preconditions such as needing an existing script or a resolved session.

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