Skip to main content
Glama

Update report

update_report
DestructiveIdempotent

Update authored report fields with expectedVersion and an idempotencyKey; existing paragraphs and untouched fields are preserved.

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": {
      "projectId": "<projectId>",
      "idempotencyKey": "<idempotencyKey>",
      "reportId": "<reportId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "update_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMain text of the hosted report.
titleNoHeadline displayed for the report or reported issue.
outcomeNoOptional scoped outcome. At most 8 criteria, 8 observations per criterion, and 16000 serialized UTF-8 bytes including retained criterion wording. All scope/revision/result values are recorded claims.
summaryNoConcise account of the work or result being recorded.
reportIdYesExisting hosted report to read, queue or update.
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
attachmentsNoAttachment records associated with this hosted report.
executionIdNoExecution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
expectedVersionYesCurrent version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.
markOutcomeReviewedNoWhether to mark the report outcome as reviewed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / executionId / description
      Previous value: -"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."New value: +"Execution record ID returned when the execution was registered; associates this call with that execution. Not a session or project ID."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed9 schema fields changed
    • addedInput schema / properties / attachments / description
      Added value: +"Attachment records associated with this hosted report."
    • changedInput schema / properties / attachments / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "maxLength": 6990508,
      -        "type": "string"
      -      },
      -      "name": {
      -        "maxLength": 180,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "data"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "maxLength": 6990508,
      +        "type": "string"
      +      },
      +      "name": {
      +        "maxLength": 180,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / body / description
      Added value: +"Main text of the hosted report."
    • changedInput schema / properties / executionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID."
    • addedInput schema / properties / markOutcomeReviewed / description
      Added value: +"Whether to mark the report outcome as reviewed."
    • changedInput schema / properties / reportId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Existing hosted report to read, queue or update."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
    • addedInput schema / properties / summary / description
      Added value: +"Concise account of the work or result being recorded."
    • addedInput schema / properties / title / description
      Added value: +"Headline displayed for the report or reported issue."
  3. Changed7 schema fields changed
    • changedInput schema / properties / attachments / items / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "maxLength": 6990508,
      -        "type": "string"
      -      },
      -      "name": {
      -        "maxLength": 180,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "data"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "maxLength": 6990508,
      +        "type": "string"
      +      },
      +      "name": {
      +        "maxLength": 180,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "data"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / executionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / expectedVersion / description
      Added value: +"Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / reportId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. Changed1 schema field changed
    • changedInput schema / properties / outcome / properties / resourceObservations / items / properties / coverage / enum
      Previous value: -[
      -  "turn",
      -  "cumulative",
      -  "operation"
      -]New value: +[
      +  "turn",
      +  "cumulative",
      +  "operation",
      +  "increment"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / outcome / properties / mission
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "id": {
      +      "maxLength": 70,
      +      "minLength": 1,
      +      "pattern": "^focus_[A-Za-z0-9_-]{1,64}$",
      +      "type": "string"
      +    },
      +    "intent": {
      +      "maxLength": 4000,
      +      "minLength": 0,
      +      "type": "string"
      +    },
      +    "name": {
      +      "maxLength": 120,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "nodeIds": {
      +      "items": {
      +        "maxLength": 160,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 64,
      +      "minItems": 0,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "nodeIds"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / outcome / properties / references
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "changeReviewId": {
      +      "maxLength": 160,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "sessionId": {
      +      "maxLength": 160,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "taskId": {
      +      "maxLength": 160,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [],
      +  "type": "object"
      +}
    • addedInput schema / properties / outcome / properties / resourceObservations
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "coverage": {
      +        "enum": [
      +          "turn",
      +          "cumulative",
      +          "operation"
      +        ],
      +        "type": "string"
      +      },
      +      "id": {
      +        "maxLength": 160,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "kind": {
      +        "enum": [
      +          "tokens",
      +          "cost",
      +          "retries",
      +          "validation_effort",
      +          "support_effort"
      +        ],
      +        "type": "string"
      +      },
      +      "reference": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "sessionId": {
      +        "maxLength": 160,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "source": {
      +        "enum": [
      +          "measured",
      +          "estimated",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "taskId": {
      +        "maxLength": 160,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "turnId": {
      +        "maxLength": 160,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "unit": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "value": {
      +        "minimum": 0,
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "kind",
      +      "value",
      +      "unit",
      +      "source",
      +      "reference"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 64,
      +  "minItems": 0,
      +  "type": "array"
      +}
    • addedInput schema / properties / outcome / properties / scopeExplanations
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "explanation": {
      +        "maxLength": 1000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "path": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "reference": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "explanation",
      +      "reference"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 32,
      +  "minItems": 0,
      +  "type": "array"
      +}
  6. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so the safety profile is known. The description adds meaningful behavioral context beyond that: existing paragraphs and untouched fields are preserved, indicating a partial-update model, and it highlights the expectedVersion and idempotencyKey requirements for conflict handling and retry safety.

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

Conciseness5/5

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

The description is a single front-loaded sentence that states the action, the key control parameters, and the preservation guarantee. There is no redundant or filler wording.

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 complex 12-parameter update with nested objects and no output schema, the description covers the essential mutation semantics: it updates fields, preserves untouched content, and requires expectedVersion plus idempotencyKey. The rich input schema supplies the remaining parameter detail, though the description could say more about conflict behavior or the fact that the update is partial rather than replacement.

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 100%, so the schema already documents every parameter, including the nested outcome and attachment structures. The description only adds general meaning around expectedVersion and idempotencyKey, which is useful but does not go beyond the schema's existing parameter documentation.

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?

The description names a specific verb and resource: 'Update authored report fields,' so the agent knows this is a mutation of an existing report rather than a create or read. It does not explicitly distinguish itself from siblings such as update_finding or update_queue_item, but the resource scope is clear.

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 implied by the mention of expectedVersion and idempotencyKey, which signal an existing-record mutation with optimistic concurrency and retry safety. However, there is no explicit when-to-use guidance, no stated exclusions, and no named alternative such as create_report for new reports.

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