Skip to main content
Glama

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_uuid names 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

NameRequiredDescriptionDefault
findingsYesThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / findings / items / properties / asset_identifier / description
      Previous value: -"Stable identifier for the affected asset, e.g. 'acme-prod-assets' or 'acme-corp/api-gateway'. Participates in duplicate detection, so keep it consistent across runs. Never a placeholder or a tool, scanner or data-source name."New value: +"Stable identifier for the affected asset, e.g. 'acme-prod-assets' or 'acme-corp/api-gateway'. Participates in duplicate detection, so keep it consistent across runs. Never a placeholder or a tool, scanner or data-source name. Required with asset_type unless asset_uuid is given."
    • changedInput schema / properties / findings / items / properties / asset_type / description
      Previous value: -"What kind of thing is affected, as a provider.service.object value from core's AssetType enum, e.g. 'aws.s3.bucket', 'aws.iam.role', 'github.repo', 'azure.storage.account'. Use 'generic' when nothing fits. Legacy underscore forms like 's3_bucket' are rejected with a 422."New value: +"What kind of thing is affected, as a provider.service.object value from core's AssetType enum, e.g. 'aws.s3.bucket', 'aws.iam.role', 'github.repo', 'azure.storage.account'. Use 'generic' when nothing fits. Legacy underscore forms like 's3_bucket' are rejected with a 422. Required with asset_identifier unless asset_uuid is given; send both or neither. Never 'host' or 'asset'. Keep an existing valid pair unchanged when adding asset_uuid; omit the pair only for an intentionally UUID-only finding identity."
    • addedInput schema / properties / findings / items / properties / asset_uuid
      Added value: +{
      +  "description": "UUID of a resolved tenant asset of any class. Find a name with GET /v1/assets using where=display_name == \"<name>\" or display_name.contains(\"<text>\"). For an identity key with a known kind, use GET /v1/assets/by-identifier?type=<key type>&value=<value>; type is the identity key type, not the asset class, and class is optional. Link only one distinct asset_uuid from a complete lookup. Keep asset_type/asset_identifier byte-identical as the duplicate key and add this link. Omit the pair only when the resolved asset itself is the finding's identity; core defaults it to asset and the canonical UUID. Merged UUIDs resolve to the survivor; unknown or cross-tenant assets give 404.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / findings / items / required
      Previous value: -[
      -  "definition_slug",
      -  "title",
      -  "asset_type",
      -  "asset_identifier"
      -]New value: +[
      +  "definition_slug",
      +  "title"
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / findings / items / properties / qualifier / description
      Previous value: -"Optional discriminator when one asset can have several instances of the same definition (e.g. the specific IAM role or workflow file). Part of the dedupe key."New value: +"Optional for a single instance. 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."
    • changedInput schema / properties / findings / items / properties / remediation / description
      Previous value: -"Concrete steps to fix it, ideally a runnable command. Rendered as markdown."New value: +"Appropriate next steps: fix a security problem, or confirm ownership and expected use for an observation. Do not invent a fix for product presence alone. Rendered as markdown."
    • changedInput schema / properties / findings / items / properties / summary / description
      Previous value: -"One or two sentences: what is wrong. Rendered as markdown."New value: +"One or two sentences: what was observed. Rendered as markdown."
  3. First observed

TDQS

A4.5/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 most of it: 'WRITES IMMEDIATELY', no draft/preview/confirmation, org-wide visibility in the UI, nothing on the server deletes a finding, batch max 25, per-finding independent outcomes and a full outcome/error table including PLAN_LIMIT. It stops short of describing idempotency guarantees or auth/permission requirements beyond tenancy scoping.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the most important constraint ('WRITES IMMEDIATELY') and organized under headers, but it is very long for a single-array-parameter tool and repeatedly re-explains duplicate-key and asset-resolution rules already stated in the schema. The outcome table and usage gate earn their place; the duplicated parameter prose does not.

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?

No output schema exists, and the description compensates fully: it documents the `created`/`failed` response shape, canonical asset_uuid and null list_url behavior, plus how to read a finding back with getFinding. For a high-stakes write tool, an agent has everything needed to call it correctly and interpret the result.

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?

Schema coverage is 100%, so much of the 'WHAT TO SEND' section restates field descriptions (asset_type, asset_uuid, qualifier, evidence). What it adds beyond the schema is genuinely valuable and procedural: one finding per condition per asset with distinct qualifiers, byte-identical duplicate-key fields across runs, and when to omit asset_uuid rather than guess.

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?

States a specific verb and resource ('Create one or more findings in Mallory'), then defines what a finding is and is not ('not a chat message or a note to yourself', 'durable record of a security problem'). It distinguishes itself from updateFinding, getFinding, listFindings and queryApi by role, so the agent can pick it without opening a schema.

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?

Gives an explicit gate: only call when the user asked in so many words for findings to be filed, and 'Finishing an investigation is not permission to file its results.' It also routes prerequisites to the right tools (queryApi '/v1/finding_definitions' for slugs, updateFinding for changes, getFinding/listFindings for read-back) and forbids retrying on DUPLICATE.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources