Skip to main content
Glama
darthzen

fossa-mcp

by darthzen

fossa_manage_role

Destructive

Create, update, or delete a custom FOSSA role, setting its scope, name, description, and permissions.

Instructions

Create, update, or delete a custom FOSSA role.

WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_ADMIN=true. action="delete" additionally requires FOSSA_ALLOW_DESTRUCTIVE=true.

A role is a scope plus a permission list, so the three actions share one shape and one tool. "create" needs scope ("organization" or "team"), name, and description; "update" needs role_id and at least one of name, description, or permissions; "delete" needs only role_id.

Each entry in permissions is an object with the keys resourceType and action, both drawn from fossa_list_roles section "permissions" — FOSSA rejects a pair that is not in that catalog. Passing permissions on an update replaces the role's entire permission list, so send the full set, not a delta; omit it to leave the permissions alone. A role's scope cannot be changed after creation.

Only custom roles can be edited or deleted. FOSSA refuses to delete a built-in role, and refuses to delete any role still assigned to a user, so a delete cannot silently strip someone's access.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
scopeNo
actionYes
role_idNo
descriptionNo
permissionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

The description adds significant behavioral context beyond annotations: it discloses that passing 'permissions' on update replaces the entire list, that scope is immutable after creation, and that deletion is refused for built-in roles or roles still assigned to users. This goes well beyond the basic readOnlyHint/destructiveHint annotations and provides no contradictions.

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 dense yet well-structured, with a clear first sentence, a block for write prerequisites, action-specific parameter breakdowns, and a dedicated paragraph for permissions behavior and edge cases. No sentence is wasted; the length is justified by the tool's complexity.

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?

The description covers all essential operational context: purpose, prerequisites, parameter usage, replacement semantics, immutability, and deletion restrictions. It references fossa_list_roles for valid permissions and handles edge cases, making it fully complete for an agent to use the tool correctly. Output schema exists, so return value documentation is not required.

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

Parameters5/5

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

Despite 0% schema description coverage, the description fully compensates by explaining each parameter's role in the context of each action: scope values ('organization'/'team'), role_id for update/delete, name/description/permissions for create/update, and the structure of permissions entries. It also clarifies which parameters are needed for each action, making the schema's defaults and nullability interpretable.

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 'Create, update, or delete a custom FOSSA role,' which uses a specific verb and resource, clearly distinguishing this tool from siblings like team management or project tools. It also specifies that it handles all three actions in one tool and focuses on custom roles, differentiating from built-in roles.

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?

The description provides explicit when-to-use guidance for each action (create, update, delete), including required parameters for each. It mentions prerequisites (FOSSA_ALLOW_WRITES, FOSSA_ALLOW_ADMIN, FOSSA_ALLOW_DESTRUCTIVE) and points to fossa_list_roles for valid permissions, helping the agent choose correctly. It also explains restrictions on deleting built-in or assigned roles.

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