updateTool

Replace the description of a structured project tool, where REST and GraphQL clear an omitted description and the MCP tool keeps it; returns the updated tool source document. Requires project.agents.write.

Arguments

  • projectReferenceString!required

  • idString!required

    The id of the definition, from its list.

  • inputUpdateToolInput!required

  • input.descriptionString

    Replaces the description; omit it or send null to clear it.

  • input.sourceTargetKindWriteTargetKind

    The source to write; default project. One of project, preview_branch.

  • input.targetBranchIdID

    Required with the kind preview_branch.

Responses

mutation UpdateTool($projectReference: String!, $id: String!, $input: UpdateToolInput!) {  updateTool(projectReference: $projectReference, id: $id, input: $input) {    id    name    description    sourcePath    source    editMode    sourceOnlyReasons  }}
{  "data": {    "updateTool": {      "id": "string",      "name": "string",      "description": "string",      "sourcePath": "string",      "source": "string",      "editMode": "structured",      "sourceOnlyReasons": [        "string"      ]    }  }}

The ToolSource! in data.updateTool.