get_repo
Inspect exactly one Repo by stable ID or exact case-sensitive name. Disclose saved on-clone/on-pull hook presence, environment, webhook policy and Server target without exposing commands or credentials. Inspect these trusted effects BEFORE clone/pull and copy the two hook flags into expected_hooks. Configured branch/pinned commit and cached observed cloned revision are separate; cached revision is not proof of a particular run.
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.
RepoDetailconfigured_branch,definition,id,name,observed_cloned_revision,provider,repo,revision_evidence,server_id,state,templateAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/RepoDetail"
},
{
"$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": {
"custom_path_configured": {
"type": "boolean"
},
"environment_configured": {
"type": "boolean"
},
"on_clone_configured": {
"type": "boolean"
},
"on_pull_configured": {
"type": "boolean"
},
"server_id": {
"type": [
"string",
"null"
]
},
"source": {
"$ref": "#/$defs/SourceSummary"
},
"webhook_enabled": {
"type": "boolean"
}
},
"required": [
"source",
"server_id",
"custom_path_configured",
"on_clone_configured",
"on_pull_configured",
"environment_configured",
"webhook_enabled"
],
"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"
},
"RepoDetail": {
"properties": {
"configured_branch": {
"type": "string"
},
"definition": {
"$ref": "#/$defs/DefinitionSummary"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"observed_cloned_revision": {
"description": "Current Core/Periphery cache, not proof of a particular execution's result.",
"type": [
"string",
"null"
]
},
"provider": {
"type": "string"
},
"repo": {
"type": "string"
},
"revision_evidence": {
"type": "string"
},
"server_id": {
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
},
"template": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"template",
"state",
"server_id",
"repo",
"provider",
"configured_branch",
"observed_cloned_revision",
"definition",
"revision_evidence"
],
"type": "object"
},
"SourceSummary": {
"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"
}
}
}