createFinding
Create one or more findings in Mallory. A finding is a durable record of a security problem or an evidenced observation, such as product presence, on a specific asset. Product presence alone does not establish a vulnerability or require removal or patching. The asset must belong to the caller's own organization. A finding is not a chat message or a note to yourself. It is visible in the Mallory UI to everyone in that organization, and nothing on this server deletes one: a finding filed by mistake can only be marked dismissed with updateFinding.
WRITES IMMEDIATELY. There is no draft, no preview and no confirmation step — calling this tool IS the write. Only call it when the user has asked, in so many words, for findings to be filed in Mallory ("create a finding for that", "file these"). Finishing an investigation is not permission to file its results: report them and let the user decide.
WHAT TO SEND
definition_slug must ALREADY EXIST in the catalog. Look one up with the queryApi tool, path "/v1/finding_definitions" (filter by category or severity to narrow). Never invent a slug, and never substitute a near-match for one that was rejected — that files the wrong kind of finding.
One finding per condition per asset. Five misconfigured buckets are five findings sharing a definition_slug with five different asset_identifier values, not one finding listing five buckets. When one asset has several instances of the same definition, use a distinct qualifier for each instance, such as the detected product name, IAM role, or workflow file. Keep each qualifier byte-identical across runs: it is part of the duplicate key. Without distinct qualifiers, separate instances can be reported as DUPLICATE. Send the whole batch in ONE call (max 25): each is created independently, so one duplicate does not block the rest.
asset_type is a provider.service.object value (e.g. aws.s3.bucket, aws.iam.role, github.repo, azure.storage.account), or "generic" when nothing fits. Legacy underscore forms like "s3_bucket" are rejected.
Keep asset_type and asset_identifier byte-identical across runs as the duplicate key and add asset_uuid as a link to a resolved asset of any class. Find a name (or part of one) with GET /v1/assets using where=display_name == "" or display_name.contains(""); this searches every class and needs no class or key type. For an identity key whose kind the user provides (serial number, ARN, repo URL, digest), use GET /v1/assets/by-identifier?type=&value=; type is the identity key type, not the asset class, and class is optional. Count distinct asset_uuid values across the complete result: while there is a next_cursor, read the next page with cursor and unchanged filters and sort. A truncated or incomplete lookup cannot produce a link; with zero or multiple matches, omit asset_uuid and never guess. Keep the same pair whether or not resolution succeeds. For new github.repo findings use github.com/owner/repo; never rewrite an existing identifier. Send asset_uuid without a pair only when the resolved asset itself is the finding identity. Never send asset_type "host" or "asset". A partial pair, or neither a pair nor asset_uuid, is INVALID. ASSET_NOT_FOUND means the UUID is not an asset of this tenant. Link the returned canonical asset_uuid as /environment/{asset_uuid}.
summary / body / remediation are markdown, and are read by people who were not in your conversation: what you observed, how you established it, and appropriate next steps. For a product-presence observation, next steps may be ownership or expected-use review; do not invent a security problem or fix.
evidence is one entry per thing you actually OBSERVED — the query and what it returned, the endpoint and its status, the file and the matching line. Three observations are three entries. Never write evidence for something you inferred rather than observed; lower confidence and say so in body instead.
ENUM VALUES ARE CASE-SENSITIVE AND EACH FIELD HAS ITS OWN SET. severity is UPPERCASE (CRITICAL, HIGH, MEDIUM, LOW, INFO) and optional — omit it and the definition's own default applies, which is usually right; override only when this instance is genuinely worse or milder than the type normally is, and say why in body. confidence is lowercase (low, medium, high). Status is not settable here: a finding is created open, and status values are lowercase (see updateFinding).
OUTCOMES come back per finding, in created and failed:
DUPLICATE — an open finding already covers that asset (for asset_uuid without a pair, that asset or an asset merged into it), and
existing_finding_uuidnames it. Say so and move on. Do NOT re-word the title and retry; to change the one that exists, call updateFinding with that uuid.UNKNOWN_DEFINITION — the slug is not in the catalog. Look up a real one; do not guess a neighbouring slug.
INVALID — core rejected a field, most often asset_type. Fix that field, not the slug.
ASSET_NOT_FOUND — asset_uuid is not an asset of this organization. Nothing was written. Resolve it again; never guess a UUID or change the asset pair.
INVALID_ASSET_IDENTIFIER — asset_identifier names no asset (a placeholder such as "unknown", or a bare word such as a tool or data-source name, with asset_type "generic"). Nothing was written. Use the real affected asset from the source data (host:port, hostname, URL, account, repository); never invent one.
PLAN_LIMIT — findings are not included in this tenant's plan. The request was fine, nothing is broken and nothing was written: tell the user, pass on the upgrade link if the outcome carries one, and do not retry or reach for another tool to file it.
A created finding carries the canonical linked asset_uuid; an absent link is null.
list_url is null outside the Mallory chat app — there is no conversation for an MCP call to scope a list to. Read a created finding back with getFinding using the uuid in created, or browse the tenant's findings with listFindings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"findings": "<findings>"
},
"name": "createFinding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| findings | Yes | The findings to create. Pass every finding from one investigation in a single call — each is created independently, so one duplicate does not block the rest. |