Tool details
| Field | Value |
|---|---|
| Name | get_resource |
| Group | Project Primitives |
Playground
Input schema
Input schema
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug"
},
"resource_id": {
"type": "string",
"description": "Resource ID from list_resources"
},
"runtime_target_kind": {
"anyOf": [
{
"type": "string",
"enum": [
"production",
"environment",
"preview_branch"
],
"description": "Provide the runtime target kind."
},
{
"type": "null",
"description": "Provide the runtime target kind."
}
],
"description": "Provide the runtime target kind."
},
"target_environment_id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"description": "Provide the target environment id."
},
{
"type": "null",
"description": "Provide the target environment id."
}
],
"description": "Provide the target environment id."
},
"target_branch_id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"description": "Provide the target branch id."
},
{
"type": "null",
"description": "Provide the target branch id."
}
],
"description": "Provide the target branch id."
},
"source_target_kind": {
"type": "string",
"enum": [
"project",
"production",
"environment",
"preview_branch"
],
"description": "Provide the source target kind."
}
},
"required": [
"project_reference",
"resource_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Input schema for the get_resource tool."
}
Output schema
Output schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the record."
},
"pattern": {
"type": "string",
"description": "The pattern associated with this record."
},
"description": {
"type": "string",
"description": "Human-readable description for the record."
},
"title": {
"type": [
"string",
"null"
],
"description": "Short human-readable title for the record."
},
"source_path": {
"type": "string",
"description": "The source path associated with this record."
}
},
"required": [
"id",
"pattern",
"description",
"source_path"
],
"additionalProperties": false,
"description": "Structured resource output schema for MCP tools.",
"$schema": "http://json-schema.org/draft-07/schema#"
}