Skip to main content
Glama
defectdojo-http-api-mcp

defectdojo-http-api-mcp

by rkorablin

defectdojo_whoami

Checks DefectDojo API identity for CI/service tokens by querying user profile, /users/me/, or falling back to product counts when the user endpoint returns 404.

Instructions

Identity smoke: prefers GET /user_profile/ (username), then /users/me/, else products-count fallback for CI/service tokens. 404 on /users/me/ is normal on some DD builds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "defectdojo_whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses a three-step resolution order, a fallback path specific to service tokens, and the non-obvious fact that a 404 on /users/me/ is normal on some builds — preventing the agent from reporting a false failure. It stops short of describing the response shape or what the fallback payload actually contains.

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?

Two dense sentences with no filler, and the primary resolution path is front-loaded ahead of the fallback caveat. The compressed, colon-and-slash style borders on cryptic for an agent unfamiliar with DefectDojo endpoints, which keeps it from a 5.

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

Completeness4/5

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

For a zero-parameter identity probe with no output schema, the definition covers the essential behavior: resolution order, fallback, and the expected-404 caveat. The one gap is return-value shape — it names 'username' and hints at 'products-count' but never states what fields the agent should expect to report back.

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?

The tool takes zero parameters, so there is no parameter semantics to add; the baseline of 4 applies. The endpoint detail in the description is behavioral rather than parametric.

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?

Combined with the name, 'Identity smoke' plus the concrete endpoint chain makes clear this resolves the currently authenticated identity (username via /user_profile/, else /users/me/, else product counts). It is not a tautology and is distinguishable from the CRUD siblings, but the phrasing is telegraphic jargon rather than a plain verb+resource statement.

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?

Usage is only implied: the tool verifies credentials/identity, and the mention of 'CI/service tokens' signals when the fallback path matters. There is no explicit 'use this when...' guidance or exclusion against any alternative, so the agent must infer the calling context.

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