> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentlinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# context profile check

> Check that every [fact:…] and [manual:…] citation in the human/agent-owned site-profile.md resolves to a fact row or manual entry.

`context_profile_check`

Check that every \[fact:…] and \[manual:…] citation in the human/agent-owned site-profile.md resolves to a fact row or manual entry. Facts are read-only to the profile: editing a judgment never edits a fact row, and a citation nothing backs is reported, never dropped.

<Note>Repository-local stdio MCP only. This tool is absent from hosted MCP and HTTP. It reads local context without starting a cloud job.</Note>

## Setup and request

Start the [local context host](/guides/local-context) with an explicit repository root. Paths are restricted to that root, including symlink resolution.

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "context_profile_check",
    "arguments": {}
  }
}
```

## Input fields

This operation accepts an empty object.

## Returned result

Captured from a local fixture repository without external credentials.

```json theme={null}
{
  "citations": 1,
  "unresolved": [],
  "facts_read_only": true
}
```

| Field             | Type    | Presence | Meaning and constraints                                              |
| ----------------- | ------- | -------- | -------------------------------------------------------------------- |
| `citations`       | integer | Optional | Citations inspected, including repeats. minimum: 0                   |
| `unresolved`      | array   | Optional | Unresolved fact: or manual: citation references.                     |
| `facts_read_only` | boolean | Optional | Checking citations does not rewrite fact rows. must equal true       |
| `error`           | string  | Optional | Missing-file or parse diagnostic; the local MCP result sets isError. |

Missing profile returns an error object. Any unresolved citation makes the MCP result isError even though the structured citation report remains available.

[Download result schema](/schemas/context_profile_check.output.json).

## Result and recovery

The host returns JSON in both `structuredContent` and text content. The [local context reference](/reference/context/results) describes each result, file ownership and recovery. Start/end dates must be supplied together. Thrown input or file failures return `isError: true`. Missing manual/profile files and unresolved citations also flag an error. Inspect returned connection states separately: revoked or unavailable access can be result data. Manual-only configuration is valid.

See [local context](/guides/local-context), [CLI context commands](/reference/local/index) and [schema conventions](/reference/schemas).
