Skip to main content
Glama

Set pane metadata

set_meta

Attach or update free-form metadata on a pane: string values set or overwrite keys, null deletes them, and untouched keys stay. Returns the merged metadata read back from the app.

Instructions

Attach or update free-form metadata on a pane (merged: a string value sets/overwrites a key, an explicit null DELETES that key, untouched keys are kept). Reserved keys role/parent/agentType/task describe an agent org; the rest is open. Returns the TRUE merged metadata read back from the app (not your raw input). This is how an orchestrator records the org chart as data.

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": {
      "paneId": "<paneId>",
      "meta": "<meta>"
    },
    "name": "set_meta"
  }
}

Input Schema

NameRequiredDescriptionDefault
metaYeskey→string sets/overwrites it; key→null deletes it
paneIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.20
    • removedInput schema / properties / meta / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / meta / additionalProperties / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.1.13

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses the merge/overwrite/delete semantics, that untouched keys are preserved, that reserved keys have special meaning, and critically that the return value is the app's true merged metadata rather than the raw input. It does not cover failure modes (invalid paneId, rejected reserved keys), which is the remaining gap.

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?

Three sentences, all load-bearing: purpose and merge rules first, return-value caveat second, orchestration use case last. The parenthetical is dense but each clause conveys a distinct behavioral rule; there is no filler.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no output schema, the description covers the mutation semantics, the return value, and the intended orchestration use case. Missing only error/validation behavior and guidance on which reserved key values are legal, which is a minor omission rather than a blocking one.

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 50% (meta documented, paneId not). The description compensates by explaining the value semantics in prose — string sets/overwrites, explicit null deletes, untouched keys kept — plus the reserved-key namespace, which adds real meaning beyond the schema's terse one-line property note. paneId's target remains self-evident but unstated.

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+resource pair ('Attach or update free-form metadata on a pane') and immediately scopes it as merge semantics against a pane, which clearly separates it from siblings like rename_pane, recolor_pane, or set_layout that also mutate pane attributes.

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 concrete when-to-use context ('this is how an orchestrator records the org chart as data') and describes the merge contract that determines how to call it. It stops short of naming an alternative or stating exclusions, so it falls below the 5 bar but is well above implied usage.

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