Skip to main content
Glama

Attach evidence to an approved decision

dm.attach_decision_evidence
Idempotent

Link Evidence to an APPROVED decision, in one call and one all-or-nothing transaction (1-20 items). Each item is EITHER an existing authorized reference {evidence_chunk_id} (no duplication) OR new Evidence {snippet, source_type, optional source_artifact_id, source_title, source_uri, ...} through the same ingestion path as the DM website. Requires the delegated human's OAuth grant, the decisions.edit permission and confirm=true after the user agrees. Evidence visibility and ownership are enforced exactly as in the UI: you can only link Evidence the human may read, linking never widens its visibility, and there is no visibility, workspace, status or approval argument (unsupported arguments are rejected). Retrying the same items is safe: equivalent links return status=already_linked. This never approves a decision.

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": {
      "decision_id": "<decision_id>",
      "items": "<items>"
    },
    "name": "dm.attach_decision_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
confirmNoMust be true after the user agrees to link Evidence to an approved decision.
decision_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, idempotent=true, destructive=false), which already cover the safety profile. It discloses the all-or-nothing transaction semantics, item-count bounds, permission and consent requirements, that visibility is enforced as in the UI and never widened, that unsupported arguments are rejected, and that retries return status=already_linked. No contradiction with the declared hints.

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 action and its precondition are front-loaded, then constraints follow in a logical order. The parenthetical list of unsupported argument classes is somewhat dense and partly redundant with the permission sentence, but every sentence carries actionable content.

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 mutation tool with three parameters, a nested item schema and no output schema, the description covers the essentials an agent needs to call it correctly: precondition, auth, consent gating, batch limits, atomicity, visibility enforcement and idempotent-retry outcome. Nothing important is left to inference.

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?

With schema coverage at 33%, the description compensates by explaining that each item is either an existing authorized {evidence_chunk_id} reference or new Evidence built from snippet/source_type/source_artifact_id/source_title/source_uri via the same ingestion path. It also explains confirm=true as post-consent confirmation. Minor gap: it does not mention the role/strength enums that shape each item's meaning.

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+resource ("Link Evidence to an APPROVED decision") plus the transactional scope (one call, all-or-nothing, 1-20 items). It also draws the boundary against the closest sibling behavior by ending with "This never approves a decision," so an agent can distinguish it from approval/proposal tools without reading the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions: the decision must be APPROVED, the delegated human's OAuth grant and decisions.edit permission are required, and confirm=true only after the user agrees. It also tells the agent to omit visibility/workspace/status arguments because unsupported arguments are rejected. It stops short of naming a specific alternative tool for non-approved decisions, so routing guidance is implied rather than explicit.

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