> For the complete documentation index, see [llms.txt](https://docs.teleskope.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.teleskope.ai/the-platform/mcp/tools-reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.teleskope.ai/~gitbook/mcp).

# MCP Tools Reference

These are the tools Teleskope exposes to your AI client. Your client chooses which to call based on your request. You don't need to call them by name.

All tools run under your Teleskope role and connector access. Tools that write data are marked below.

***

## AI Usage

Most tools run fixed queries against your Teleskope data and use no AI on Teleskope's side. The tools marked **Uses AI** below call a model in Teleskope, and each call draws units from your session's budget:

| Tool                              | Units | What the AI does                                                                                            |
| --------------------------------- | ----- | ----------------------------------------------------------------------------------------------------------- |
| `kosmo_search`, `kosmo_aggregate` | 1     | Turns your plain-language request into a query. The query then runs against your data, so counts are exact. |
| `kosmo_propose_document_type`     | 1     | Drafts a document type from your description.                                                               |
| `kosmo_triage`                    | 10    | Runs an analysis that makes several searches and aggregations.                                              |
| `kosmo_report`                    | 10    | Builds or edits a report.                                                                                   |
| `kosmo_create_document_type`      | 10    | Builds the new document type.                                                                               |

By default a session has 100 units. Checking on a triage or report (`kosmo_get_triage`, `kosmo_get_report`) is free. When the budget runs out, the AI tools return an error, and every other tool keeps working. Start a new session with `kosmo_start_session` to continue.

***

## Orientation

* `kosmo_whoami`: shows who Teleskope thinks you are and what access you hold.
* `kosmo_how_to`: explains what you can do. Each how-to states its own coverage limits.
* `kosmo_search_how_to`, `kosmo_resolve_how_to`, `kosmo_file_lookup_how_to`, `kosmo_identity_how_to`, `kosmo_triage_how_to`, `kosmo_guidance_how_to`, `kosmo_report_how_to`, `kosmo_document_types_how_to`, `polaris_how_to`, `polaris_authoring_how_to`: how-tos for searching, resolving entities, file lookup, identity and access, triage, guidance, reports, document types, policies, and policy authoring.
* `kosmo_search_teleskope_documentations`: searches Teleskope's product documentation and returns matching pages with excerpts and links. It doesn't search your data.
* `kosmo_start_session`: starts a new session and returns its ID. A session holds your AI budget, triage groups, and policy draft, and expires after one hour of inactivity or when the service restarts. Calls made without a session ID share one default session.
* `kosmo_list_connectors`: lists the connectors enrolled in your deployment.
* `kosmo_list_elements`: lists the data elements in your deployment.
* `kosmo_list_categories`: lists data categories.
* `kosmo_list_policies`: lists policy names from your tenant's vocabulary. To list and inspect actual policies, use `polaris_list_policies`.
* `kosmo_list_scenarios`: lists available triage scenarios.
* `kosmo_list_report_types`: lists the report types you can create.
* `kosmo_resolve_entity`: turns free text, such as a person's name or a connector, into the matching Teleskope entity. Use it before searching or triaging.

***

## Search and Analysis

All read-only.

* `kosmo_search`: searches findings and resources and returns the true total count with up to 200 rows. Respects your connector access. **Uses AI.**
* `kosmo_aggregate`: returns exact counts and sums per group across all matching rows. Results come directly from Teleskope's data, not from a model's estimate. **Uses AI** to build the query.
* `kosmo_file_lookup`: the reverse of search. You give it a list of files, and it returns each file's sensitivity and the sensitive data elements found in it. Give each file's full path or URL for an exact match. A bare file name matches every file with that name.

***

## Identity and Access

All read-only. None of these tools use AI.

* `kosmo_who_can_access`: lists the users, groups, and domain-wide or public-link shares that can reach one resource.
* `kosmo_what_can_access`: lists the resources one person can reach, or only those they can write. Useful for access reviews and offboarding.
* `kosmo_what_owns`: lists the resources one person owns, optionally only those also shared externally. Covers SharePoint and personal Google Drive.
* `kosmo_orphaned_resources`: finds resources whose owner has been offboarded or disabled. Covers SharePoint and personal Google Drive.
* `kosmo_identity_rank`: ranks users and groups by how much sensitive data they can reach. Covers Google Drive, SharePoint, and OneDrive.
* `kosmo_identity_risk_rank`: ranks users and groups by overall risk, combining sensitive data reach with exposure such as external access and write access.
* `kosmo_nhi_rank`: ranks non-human identities (AWS IAM roles and users) by how much S3 data they can reach.
* `kosmo_expand_nhi`: lists the S3 buckets one non-human identity can reach and how each grant was made.

Coverage differs by connector. Ask your AI client to read `kosmo_identity_how_to` for details.

***

## Guidance

All read-only. None of these tools use AI.

* `kosmo_framework_guidance`: returns guidance for a compliance framework, such as HIPAA or PCI DSS: its regulated data, which clause each finding maps to, and how to prioritize findings.
* `kosmo_scenario_playbook`: returns the playbook for a triage scenario: what to look at and how to prioritize.
* `kosmo_policy_playbook`: returns a playbook based on one of your existing policies: what it detects, on which connectors, and the actions it takes. Requires Policy Maker access.

***

## Triage

All read-only. Triage recommends actions but doesn't run them.

* `kosmo_triage`: starts a triage scenario in the background and returns a triage ID right away. **Uses AI.**
* `kosmo_get_triage`: returns the status of a triage run (running, failed, or complete). A completed run includes a summary, a priority action, and groups — each with a label, count, tier, recommended action, reason, connectors, and group ID.
* `kosmo_get_group_files`: lists the files in a triage group by group ID, 200 rows per page. Group IDs expire with the session.

***

## Reports

* `kosmo_report`: starts a report. It returns right away with a report ID and a link, and the report builds in the background under your identity. Given an existing report ID, it edits that report instead. **Writes data. Uses AI.**
* `kosmo_get_report`: checks a report's status and returns its title, type, link, takeaways, and results. Each result block shows up to 50 rows, with the total count and a `rows_truncated` flag.
* `kosmo_list_reports`: lists the reports you can see, limited to your connector access.

Reports created through MCP appear in Teleskope like any other report, are attributed to you, and link back to the Teleskope UI.

***

## Policies

Viewing policies requires Policy Maker access.

* `polaris_list_policies`: lists policies.
* `polaris_get_policy`: returns a policy's details.
* `polaris_disable_policy`: disables a policy. **Writes data.** Requires Policy Maker Create & Edit access.

### Authoring

All authoring tools require Policy Maker Create & Edit access.

* `polaris_start_policy_draft`: starts a policy draft, from scratch or from a saved policy. **Writes session state.**
* `polaris_read_policy_draft`: reads the current draft.
* `polaris_edit_policy_draft`: edits the draft — name, severity, data store, trigger conditions, and workflow nodes. **Writes session state.**
* `polaris_get_policy_options`: returns the trigger attributes, action types, and allowed values available for the draft's connector. Call it before building so the draft uses real values.
* `polaris_save_policy`: saves the draft as a new policy. **Writes data.** The saved policy is always switched off. Enabling it is a step you take in Teleskope.

Policy drafts are held for the session and expire after one hour of inactivity or when the service restarts.

***

## Document Types

* `kosmo_propose_document_type`: suggests a new document type from a one-sentence description of the documents. Returns a proposed name and description and any existing types it overlaps. Creates nothing. **Uses AI.**
* `kosmo_create_document_type`: creates the proposed document type for your whole organization and starts tagging documents with it. Admin only. **Writes data. Uses AI.**

***

## Feedback

* `kosmo_send_feedback`: sends a message to the Teleskope team. It takes two steps: the first call previews the message and returns a confirmation token, and the message is sent only after you confirm. Limited to 5 messages per hour. **Sends data to Teleskope.**
