Skip to main content
Glama

setup_trusted_publishing

Links a package to release.yml for OIDC trusted publishing, guiding npm, PyPI, or crates.io setup and leaving only sign-in, 2FA, or Save clicks to you.

Instructions

Link the package to release.yml for OIDC publishing. npm: npm trust (package must exist; user approves 2FA). PyPI/crates: opens the settings page with the values; user clicks Save.

Input Schema

NameRequiredDescriptionDefault
dirYes
repoYesowner/name
openBrowserNo
workflowFileNorelease.yml

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / dir / description
      Removed value: -"Project folder (absolute path, or relative to the server's working directory)."
    • changedInput schema / properties / repo / description
      Previous value: -"owner/name of the GitHub repo."New value: +"owner/name"
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only cover destructiveHint=false, so the description carries the interactive-behavior burden well: it discloses that npm runs `npm trust` and requires user 2FA approval, and that PyPI/crates opens a settings page the user must save manually. That is exactly the kind of halting/auth context an agent needs. It stops short of saying what happens on failure or whether it's idempotent.

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?

Three short fragments, front-loaded with the core action before the per-registry detail. Efficiency is high, though the telegraphic style comes at some cost to readability.

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

Completeness3/5

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

The critical complexity — divergent npm vs PyPI/crates behavior and user-interaction requirements — is covered, and no output schema means return values needn't be described. But with two required params and no annotations beyond destructiveHint, leaving `dir` undefined and the return/confirmation behavior unstated is a real gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only `repo` has "owner/name"), so the description should compensate. It only partially does: "release.yml" maps to the workflowFile default and "opens the settings page" hints at openBrowser. The required `dir` parameter is never explained in schema or description.

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?

States a specific action and mechanism: link the package to release.yml for OIDC publishing, then branch by registry (npm trust vs PyPI/crates settings page). An agent can tell what the tool accomplishes, though the tool's name is the main thing distinguishing it from siblings like add_workflows or publish_package.

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?

"package must exist" gives one precondition, and the per-registry branch implies the tool is invoked once a package is on a registry. But there is no explicit when-not guidance, no mention of when to prefer login or add_workflows first, and no ordering advice relative to publish_package.

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