get_resource_sync
Inspect one exact ResourceSync by stable ID or exact name. Return sanitized source/settings, effective managed-or-delete policy, tag restriction, separate variable/group flags and webhook configuration; omit inline TOML, credentials, webhook secrets and pending raw content/errors. Core-host sources are under sync_directory / normalized sync name. Cached inspection calls no refresh or execution. Raw definitions remain private.
Availability
Available under the default capability policy
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—truedestructiveHint—falseidempotentHint—true
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
id- Exact stable resource ID returned by a list tool.
type "string"·pattern "^[0-9a-fA-F]{24}$" name- Exact, case-sensitive name within this family; never interpreted as an ID.
type "string"·minLength 1·pattern "\\S"
Show input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"oneOf": [
{
"required": [
"id"
]
},
{
"required": [
"name"
]
}
],
"properties": {
"id": {
"description": "Exact stable resource ID returned by a list tool.",
"pattern": "^[0-9a-fA-F]{24}$",
"type": "string"
},
"name": {
"description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
"minLength": 1,
"pattern": "\\S",
"type": "string"
}
},
"type": "object"
}Output
The registered output schema covers structured results and tool errors.
SyncDetaildefinition,effects,summaryAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/SyncDetail"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"AppError": {
"additionalProperties": false,
"description": "Only application-owned messages and selected, nonsensitive metadata survive.",
"properties": {
"candidates": {
"items": {
"$ref": "#/$defs/Candidate"
},
"type": [
"array",
"null"
]
},
"correction": {
"type": [
"string",
"null"
]
},
"field": {
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/ErrorKind"
},
"message": {
"type": "string"
},
"operation": {
"type": "string"
},
"status": {
"format": "uint16",
"maximum": 65535,
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"kind",
"message",
"operation"
],
"type": "object"
},
"Candidate": {
"additionalProperties": false,
"description": "A bounded ambiguity hint, never a raw upstream resource.",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"type": "object"
},
"DefinitionSummary": {
"properties": {
"delete": {
"type": "boolean"
},
"effective_delete": {
"type": "boolean"
},
"include_resources": {
"type": "boolean"
},
"include_user_groups": {
"type": "boolean"
},
"include_variables": {
"type": "boolean"
},
"managed": {
"type": "boolean"
},
"match_tags": {
"items": {
"type": "string"
},
"type": "array"
},
"pending_alert": {
"type": "boolean"
},
"resource_tag_filter_unrestricted": {
"type": "boolean"
},
"source": {
"$ref": "#/$defs/SourceSummary"
},
"truncated": {
"type": "boolean"
},
"webhook_enabled": {
"type": "boolean"
},
"webhook_secret_configured": {
"type": "boolean"
}
},
"required": [
"source",
"managed",
"delete",
"effective_delete",
"include_resources",
"match_tags",
"resource_tag_filter_unrestricted",
"include_variables",
"include_user_groups",
"pending_alert",
"webhook_enabled",
"webhook_secret_configured",
"truncated"
],
"type": "object"
},
"ErrorKind": {
"description": "Stable public categories. No variant contains a raw upstream error.",
"enum": [
"invalid_arguments",
"not_found",
"ambiguous_target",
"incomplete_resolution",
"configuration",
"authentication",
"permission_denied",
"timeout",
"unreachable",
"upstream",
"invalid_response",
"response_too_large",
"capability_disabled",
"unsupported_target",
"stale_preview",
"invalid_preview"
],
"type": "string"
},
"SourceSummary": {
"properties": {
"git": {
"anyOf": [
{
"$ref": "#/$defs/SourceSummary2"
},
{
"type": "null"
}
]
},
"inline_content_configured": {
"type": "boolean"
},
"kind": {
"type": "string"
},
"linked_repo_id": {
"type": [
"string",
"null"
]
},
"resource_path_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"resource_paths": {
"items": {
"type": "string"
},
"type": "array"
},
"truncated": {
"type": "boolean"
}
},
"required": [
"kind",
"linked_repo_id",
"git",
"resource_paths",
"resource_path_count",
"inline_content_configured",
"truncated"
],
"type": "object"
},
"SourceSummary2": {
"properties": {
"branch": {
"type": "string"
},
"configured_commit": {
"type": [
"string",
"null"
]
},
"credential_reference_configured": {
"type": "boolean"
},
"https": {
"type": "boolean"
},
"provider": {
"type": "string"
},
"repo": {
"type": "string"
}
},
"required": [
"repo",
"provider",
"branch",
"configured_commit",
"https",
"credential_reference_configured"
],
"type": "object"
},
"SyncDetail": {
"properties": {
"definition": {
"$ref": "#/$defs/DefinitionSummary"
},
"effects": {
"items": {
"type": "string"
},
"type": "array"
},
"summary": {
"$ref": "#/$defs/SyncSummary"
}
},
"required": [
"summary",
"definition",
"effects"
],
"type": "object"
},
"SyncSummary": {
"properties": {
"id": {
"type": "string"
},
"managed": {
"type": "boolean"
},
"name": {
"type": "string"
},
"source_kind": {
"type": "string"
},
"state": {
"type": "string"
},
"template": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"template",
"state",
"source_kind",
"managed"
],
"type": "object"
}
}
}