Skip to main content
Glama
darthzen

fossa-mcp

by darthzen

fossa_set_package_label_assignments

DestructiveIdempotent

Reconcile label assignments for a package version at a scope to an exact desired set, removing any labels not specified. Use for precise label state management in FOSSA.

Instructions

Replace a package's label assignments at one scope with an exact desired state.

WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_DESTRUCTIVE=true.

This is a reconcile, not an addition: FOSSA removes every existing assignment for this package and scope that new_label_ids does not mention. Read the current state with fossa_list_package_label_assignments first, or labels applied by someone else will disappear. new_label_ids maps a package version — or the literal all for assignments covering every version — to the list of label ids that should be assigned for it; an empty list clears that version. Use fossa_assign_package_labels when the intent is to add without removing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeYes
scope_idNo
package_idYes
new_label_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond the annotations, the description discloses key behavioral traits: it is destructive (removes unmentioned assignments), requires both FOSSA_ALLOW_WRITES and FOSSA_ALLOW_DESTRUCTIVE, and warns about clobbering others' labels. It also explains the reconcile semantics and empty-list clearing behavior, which the annotations alone do not convey.

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?

The description is concise and logically ordered: purpose, warnings, reconcile semantics, prerequisite read, parameter clarification, and alternative tool. Every sentence adds value and none are redundant.

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 destructive write tool with nested object parameters and no schema descriptions, the description covers purpose, usage, destructive implications, prerequisites, parameter semantics, and alternatives. The output schema exists, so return details need not be described. It is fully sufficient for correct invocation.

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?

With 0% schema description coverage, the description compensates well for the most complex parameter `new_label_ids`, clearly defining its key-value mapping, the literal 'all' for all versions, and empty-array clearing. It does not explicitly explain `scope_id`, but the schema's enum and default null provide some structure.

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?

The description opens with a specific verb-resource pair: 'Replace a package's label assignments at one scope with an exact desired state.' It clearly distinguishes this from related tools by labeling it a 'reconcile, not an addition' and by contrast with fossa_assign_package_labels.

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?

Explicitly states when to use this tool versus the alternative, recommending fossa_assign_package_labels for additive intent. It also instructs to read current state with fossa_list_package_label_assignments first, and highlights required environment variables for writes/destructive operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/darthzen/fossa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server