Skip to main content
Glama
darthzen

fossa-mcp

by darthzen

fossa_exchange_oidc_token

Check whether an OIDC trust relationship is configured correctly by performing the token exchange a CI job would perform, returning the resolved identity and metadata without exposing the live token.

Instructions

Check that an OIDC trust relationship actually works, by performing the token exchange a CI job would perform.

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

The FOSSA API token this mints is deliberately not returned. What comes back is the identity FOSSA resolved (user, provider, issuer, subject) and the credential's metadata (whether it is push-only, when it expires) with the token itself replaced by a placeholder. A live API token in a tool result is a credential in a model's context, a transcript, and every log downstream of it; that is not a trade this server makes, and there is no argument that turns it back on. A CI job that needs the real token should call POST /oidc/token-exchange directly.

So use this to answer "is my trust relationship configured correctly?", not to obtain a token. Note that the token is still minted and still valid until it expires (15 minutes to 12 hours) even though nobody here can read it.

token is the JWT the identity provider issued; username is the FOSSA service account to log in as. FOSSA reports an invalid token, an unknown provider, and "no matching trust relationship" all as a 400.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYes
usernameYes
expires_inNo
provider_idYes
is_push_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations indicate this is a write operation (readOnlyHint=false) and not idempotent, and the description reinforces this with 'WRITES TO FOSSA.' It goes beyond annotations by disclosing that the minted token is deliberately not returned, the response contains identity and metadata instead, the token remains valid for 15 minutes to 12 hours, and specific error conditions all return 400. This provides rich behavioral context beyond what annotations alone convey.

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?

The description is well-structured with bold headings, clear paragraphs, and front-loaded purpose. It is longer than strictly necessary, especially the security rationale about the token not being returned, but that content is valuable for transparency and safety. Every sentence contributes to understanding the tool's behavior, so it earns its place.

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, security-sensitive tool, the description is remarkably complete. It covers the operation, prerequisites, return value semantics, error handling, and even the alternative API call. The output schema exists, which likely documents the response structure, so the description does not need to repeat that. The only minor gap is full parameter semantics, but overall completeness is high.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It explains `token` (JWT from identity provider) and `username` (FOSSA service account), but does not describe `provider_id`, `expires_in`, or `is_push_only`. Since `provider_id` is a required parameter, the lack of explanation for it is a meaningful gap, though the tool's purpose and the mention of 'unknown provider' errors partially infer its role.

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 clearly states the tool's purpose: to check whether an OIDC trust relationship works by performing the token exchange a CI job would perform. It explicitly distinguishes from sibling tools by saying 'use this to answer "is my trust relationship configured correctly?", not to obtain a token.' This is a specific verb+resource combination.

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 gives explicit guidance on when to use this tool versus when not to. It states to use it for verification, not for obtaining a token, and directs CI jobs needing the real token to call `POST /oidc/token-exchange` directly. It also notes required environment variables (FOSSA_ALLOW_WRITES, FOSSA_ALLOW_ADMIN), providing clear context and exclusions.

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