teamInfo
Gets information about the current team.
Details
- Method:
GET - Path:
/team.info - Operation ID:
team_info
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `team:read`",
"required": true,
"location": "query",
"type": "string"
},
"team": {
"description": "Team to get info on, if omitted, will return information about the current team. Team to get info about; if omitted, will return information about the current team.",
"required": false,
"location": "query",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response from team.info method",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
},
"team": {
"additionalProperties": false,
"properties": {
"archived": {
"type": "boolean"
},
"avatar_base_url": {
"format": "uri",
"type": "string"
},
"created": {
"type": "integer"
},
"date_create": {
"type": "integer"
},
"deleted": {
"type": "boolean"
},
"description": {
"type": [
"null",
"string"
]
},
"discoverable": {
"items": [
{
"type": "null"
},
{
"type": "string"
}
]
},
"domain": {
"type": "string"
},
"email_domain": {
"type": "string"
},
"enterprise_id": {
"pattern": "^[E][A-Z0-9]{8,}$",
"title": "Enterprise ID",
"type": "string"
},
"enterprise_name": {
"title": "Name of the enterprise org",
"type": "string"
},
"external_org_migrations": {
"properties": {
"current": {
"items": {
"properties": {
"date_started": {
"type": "integer"
},
"team_id": {
"type": "string"
}
},
"required": [
"team_id",
"date_started"
],
"type": "object"
},
"type": "array"
},
"date_updated": {
"type": "integer"
}
},
"required": [
"date_updated",
"current"
],
"title": "External Org Migrations",
"type": "object"
},
"has_compliance_export": {
"type": "boolean"
},
"icon": {
"properties": {
"image_102": {
"type": "string"
},
"image_132": {
"type": "string"
},
"image_230": {
"type": "string"
},
"image_34": {
"type": "string"
},
"image_44": {
"type": "string"
},
"image_68": {
"type": "string"
},
"image_88": {
"type": "string"
},
"image_default": {
"type": "boolean"
}
},
"type": "object"
},
"id": {
"pattern": "^[TE][A-Z0-9]{8,}$",
"title": "Team or Enterprise ID",
"type": "string"
},
"is_assigned": {
"type": "boolean"
},
"is_enterprise": {
"type": "integer"
},
"is_over_storage_limit": {
"type": "boolean"
},
"limit_ts": {
"type": "integer"
},
"locale": {
"type": "string"
},
"messages_count": {
"type": "integer"
},
"msg_edit_window_mins": {
"type": "integer"
},
"name": {
"type": "string"
},
"over_integrations_limit": {
"type": "boolean"
},
"over_storage_limit": {
"type": "boolean"
},
"pay_prod_cur": {
"type": "string"
},
"plan": {
"enum": [
"",
"std",
"plus",
"compliance",
"enterprise"
],
"type": "string"
},
"primary_owner": {
"properties": {
"email": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"id",
"email"
],
"type": "object"
},
"sso_provider": {
"properties": {
"label": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"id",
"name",
"domain",
"email_domain",
"icon"
],
"title": "Team Object",
"type": "object"
}
},
"required": [
"ok",
"team"
],
"title": "team.info schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('teamInfo', {
# Add required parameters here
})