find_resources_by_tag
Find visible Server, Stack or Deployment records by one exact tag id or case-sensitive name. Resolve the tag to its stable ID, then use bounded positive pages and verify returned tag assignments. This remains read-only in every local profile. Hidden records and concurrent changes are not an exhaustive snapshot; an empty visible page does not prove no assignments.
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.
kind- Required · Schema
ResourceKind pagetype "integer"·minimum 0·default 0page_sizetype "integer"·minimum 1·maximum 100·default 20tag- Required · Schema
DetailInput
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"kind": {
"$ref": "#/$defs/ResourceKind"
},
"page": {
"default": 0,
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"page_size": {
"default": 20,
"format": "uint64",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"tag": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"tag",
"kind"
],
"$defs": {
"DetailInput": {
"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"
},
"ResourceKind": {
"enum": [
"stack",
"deployment",
"server"
],
"type": "string"
}
}
}Output
The registered output schema covers structured results and tool errors.
FindResultevidence_gaps,has_more,hidden_records_possible,next_page,page,page_size,resources,tagAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/FindResult"
},
{
"$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"
},
"Assignment": {
"properties": {
"error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"expected_effect": {
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"observation": {
"type": [
"string",
"null"
]
},
"tags_after": {
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"tags_before": {
"items": {
"type": "string"
},
"type": "array"
},
"template": {
"type": "boolean"
},
"unrelated_tags_preserved": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"kind",
"id",
"name",
"template",
"tags_before",
"expected_effect",
"observation",
"tags_after",
"unrelated_tags_preserved",
"error"
],
"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"
},
"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"
},
"FindResult": {
"properties": {
"evidence_gaps": {
"items": {
"type": "string"
},
"type": "array"
},
"has_more": {
"type": "boolean"
},
"hidden_records_possible": {
"type": "boolean"
},
"next_page": {
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"page": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"page_size": {
"format": "uint64",
"minimum": 0,
"type": "integer"
},
"resources": {
"items": {
"$ref": "#/$defs/Assignment"
},
"type": "array"
},
"tag": {
"$ref": "#/$defs/TagView"
}
},
"required": [
"tag",
"resources",
"page",
"page_size",
"has_more",
"next_page",
"hidden_records_possible",
"evidence_gaps"
],
"type": "object"
},
"TagView": {
"properties": {
"color": {
"type": "string"
},
"id": {
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name",
"color"
],
"type": "object"
}
}
}