Skip to main content
Glama

profile_skill_attachments

List or replace an agent profile's platform skill attachments in position order. Provide the full skill list to overwrite the current set, or leave it out to view current attachments.

Instructions

List or replace a profile's PLATFORM skill attachments (agent_profile_skills — the set the runtime catalogs each turn). action: list → current attachment rows in position order; set → REPLACE the join with skill_ids in order (position = index). Only active platform skills (business_id null) matching the profile's agent_kind attach; tenant skills resolve dynamically and are never pinned. No confirm gate — reversible config, matching the portal. To add/remove ONE skill without re-sending the list, use profile_attachments(kind="skills").

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": {
      "profile_id": "<profile_id>"
    },
    "name": "profile_skill_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
actionNoOperation to run: list | set. The tool description lists what each action needs.list
skill_idsNoFull skill list in order — REPLACES the current set.
profile_idYesAgent profile UUID (list_profiles / get_profile).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/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 so: it discloses that set is a full replacement, that position equals list index, that only active platform skills (business_id null) matching the profile's agent_kind can attach, that tenant skills resolve dynamically and are never pinned, and that there is no confirm gate because the change is reversible config. These are exactly the destructive/blast-radius facts an agent needs before calling.

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 resource and the two actions, then elaborates constraints in short clauses; nearly every sentence earns its place. It is density-heavy with stacked parentheticals, which slightly slows parsing but carries no 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?

For a four-parameter, moderately risky config-mutation tool with an output schema and full schema coverage, nothing material is missing: replacement behavior, attachability constraints, ordering, confirm-gate absence, and the finer-grained sibling are all covered.

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 3 baseline is met by the schema alone; the description nonetheless adds real meaning beyond it — replacement semantics for skill_ids, positional ordering derived from array index, and the action-specific requirements. It does not restate env, but the schema already documents that branch fully.

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 pair (list/replace) and a specific resource (a profile's platform skill attachments, qualified as agent_profile_skills), and explicitly contrasts itself with profile_attachments(kind="skills"). An agent can tell exactly which join table this touches 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit action semantics (list → current rows in position order; set → REPLACE the join) and a clear when-not: for adding/removing a single skill, use profile_attachments(kind="skills") instead. The alternative is named with the exact argument that selects it.

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