Skip to main content
Glama

Attach a skill to an agent

attach_skill
Idempotent

Attach a skill to an agent so the agent can use it. Give skill as org: or a bare name for a skill the organization published. The agent always follows the skill's latest version; a version pin such as @v2 is ignored, and the answer says so. An org skill must already exist and be published (create_service with kind skill, then publish_skill), except a built-in such as governance or security: when the organization has published no skill of that name, the agent holds Valet's default, follows it, and moves to the organization's own skill once one is published. Give catalog: for a skill from Valet's curated catalog: it installs a copy into the organization, or reuses the copy installed before, and attaches it at its latest version. A catalog skill whose name the organization's own skill holds is refused. The agent is rebuilt so the change takes effect. A skill that is already attached answers that nothing changed, without a rebuild; one whose name another attached skill holds is refused with nothing changed. Skills attach to agents only. Requires connecting a Valet account.

Input Schema

NameRequiredDescriptionDefault
nameYesRequired. The agent's name.
skillYesRequired. org:<name> or a bare name for an organization skill, or catalog:<name> to install and attach a catalog skill. The agent follows the latest version; a @v<N> pin is ignored.
org_nameNoThe Valet organization the agent belongs to. Omit to use the organization the account joined first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / skill / description
      Previous value: -"Required. org:<name> or a bare name for an organization skill, optionally followed by @v<N> to pin a version, or catalog:<name> to install and attach a catalog skill."New value: +"Required. org:<name> or a bare name for an organization skill, or catalog:<name> to install and attach a catalog skill. The agent follows the latest version; a @v<N> pin is ignored."
  2. Changed1 schema field changed
    • changedInput schema / properties / skill / description
      Previous value: -"Required. catalog:<name> for a catalog skill, org:<name> or a bare name for an organization skill, optionally followed by @v<N> to pin a version."New value: +"Required. org:<name> or a bare name for an organization skill, optionally followed by @v<N> to pin a version, or catalog:<name> to install and attach a catalog skill."
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare readOnlyHint=false, idempotentHint=true and destructiveHint=false. The description discloses that version pins are ignored, that org skills must be published, the built-in fallback behavior, catalog copy/install/reuse semantics, refusal cases, and that the agent is rebuilt so the change takes effect.

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

Conciseness3/5

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

Purpose is correctly front-loaded in the first sentence, but the body is dense run-on prose and repeats the latest-version/@v2-ignored rule that the schema already states. Every clause carries substance, yet the length is higher than needed for a three-parameter tool.

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 complex, no-output-schema mutation tool, the description covers prerequisites, edge cases, refusal outcomes, idempotent behavior, and account requirements. Nothing an agent needs to invoke this 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 schema already documents each parameter and the @v<N> pin. The description nonetheless adds meaning by explaining what org:, bare, and catalog: prefixes do at runtime (install a copy, reuse an existing copy, refuse name collisions), which is beyond the schema text.

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 and resource ('Attach a skill to an agent so the agent can use it') and adds the key scope constraint 'Skills attach to agents only,' which separates it from attach_channel, attach_connector, and attach_resource. An agent knows exactly what this does 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?

Gives clear routing context for the argument forms (org:/bare name vs catalog:<name>) and the prerequisite chain (create_service with kind skill, then publish_skill, or a built-in). It does not, however, explicitly compare itself to sibling tools like attach_resource or detach_skill, so selection against alternatives is left implicit.

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