Connect your AI to Corpora
Set up a connection, see what each tool returns, and learn how Corpora finds rules in your workspace. Examples show the exact text an AI agent receives.
MCP Documentation
What it is
MCP lets a compatible AI agent ask Corpora about your workspace. It can find relevant rules, read a specific rule, or read the full set. Each rule includes a quote and its source. If nothing matches, Corpora says so.
https://mcp.corpora.abstract.partners/mcp
- Four tools:
find_rulessearches,get_rulefetches one rule,get_all_rulesreads all served rules, andflag_rulereports a rule that looks wrong. - Rules stay in your team’s hands:
flag_rulerecords a concern. It does not change the rule. - Search starts from the marketing graph: a model places each question on the steps of your marketing graph where it belongs, and a second call picks which rules at and around those steps answer it. The rules themselves are never written or summarized by a model.
- Responses are text: the format and examples are below.
Connecting a tool
1. Get an access key
Open Settings → MCP. An owner or admin can turn on MCP access and select Create key. Copy the key when it appears. It starts with crpra_live_ and is shown only once; Corpora stores a one-way hash, so it cannot show the key again.
- One key per workspace. A key reads rules from one workspace. To use two workspaces, set up a connection for each.
- One active key at a time. Replace key revokes the old key immediately. Update every tool that used it.
- MCP access can be turned off. A valid key still connects, but tool calls return a serving-off message. Turn access on again to restore answers with the same key.
- Keep the key private. Anyone with it can read served rules while MCP access is on. Replace a key you believe was exposed.
2. Add Corpora to your tool
Add the server address above and send your key in the Authorization: Bearer YOUR_ACCESS_KEY header. Your tool must support a remote HTTP MCP server and custom headers. Check its setup instructions for where to enter these values.
Claude Code, from a terminal:
claude mcp add --transport http corpora https://mcp.corpora.abstract.partners/mcp \ --header "Authorization: Bearer YOUR_ACCESS_KEY"
Tools configured with JSON. Settings → MCP gives you this snippet. Your tool may use a different name for the server list; follow its required format.
{
"mcpServers": {
"corpora": {
"type": "http",
"url": "https://mcp.corpora.abstract.partners/mcp",
"headers": { "Authorization": "Bearer YOUR_ACCESS_KEY" }
}
}
}Chat apps such as Claude and ChatGPT. Use the app’s connector settings if they accept a remote MCP server and a custom Authorization header. An app that only offers a sign-in flow cannot use a Corpora key today.
Your own agent or script. Send JSON-RPC 2.0 by POST. You can test the connection with curl:
curl -i https://mcp.corpora.abstract.partners/mcp \
-H "Authorization: Bearer YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize",
"params":{"protocolVersion":"2025-06-18",
"clientInfo":{"name":"my-agent","version":"1.0"}}}'curl https://mcp.corpora.abstract.partners/mcp \
-H "Authorization: Bearer YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":4,"method":"tools/call",
"params":{"name":"find_rules",
"arguments":{"task":"Who needs to approve a $60,000 media buy?"}}}'3. What a bad key gets
Missing, unknown, and revoked keys return HTTP 401 before Corpora looks up a workspace. The body is JSON, not a JSON-RPC message:
| Case | HTTP status | Body |
|---|---|---|
| No Authorization header, or not Bearer | 401 | {"detail": "serve token required"} |
| Unknown key, or a key that was replaced | 401 | {"detail": "unknown or revoked token"} |
The handshake
An MCP client calls initialize, then usually tools/list. Corpora also answers ping and accepts notifications. Other methods return method not found.
initialize
The response names the server, lists its capabilities, and includes instructions for the client. The instructions name the workspace. This example uses Acme:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2025-06-18",
"capabilities": {
"tools": {}
},
"serverInfo": {
"name": "corpora",
"title": "Corpora",
"version": "1.0"
},
"instructions": "This server answers from Acme's knowledge. Every rule carries its source: the exact quote and the document it came from. Where no rule covers a question, it says so: treat that as the answer, not a gap to fill by guessing."
}
}- Protocol version. Corpora answers with the version the client asked for, or
2025-06-18if it asked for none. - Session id. The reply carries an
Mcp-Session-Idheader (for example978333d03974480bb12876efd4faf04f). Sending it back on later calls ties them to the client name and version given here, for the call log only. Calls without it, or with an unknown one, are answered the same way. - Plain JSON. Every reply is a single JSON object. Corpora does not stream, and it expects one JSON-RPC message per request, not a batch.
tools/list
Corpora lists four tools with descriptions and input schemas. Here is the full response:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"tools": [
{
"name": "find_rules",
"description": "Find the rules in this workspace's knowledge that apply to a task or question. Returns each matching rule with the exact quote and document it came from, where it applies, and how many documents it was found in. If nothing matches, no rule covers it: say so instead of guessing. Ask about one task at a time: split a brief or plan into its parts and ask about each.",
"inputSchema": {
"type": "object",
"properties": {
"task": {
"type": "string",
"description": "The task or question, in plain words."
}
},
"required": [
"task"
]
}
},
{
"name": "get_rule",
"description": "Fetch one rule by its section number: its current display position, which can move as rules are added or found in more documents. To act on a specific rule later, use the stable id from its provenance, not this number.",
"inputSchema": {
"type": "object",
"properties": {
"number": {
"type": "integer",
"minimum": 1
}
},
"required": [
"number"
]
}
},
{
"name": "get_all_rules",
"description": "The whole of this workspace's knowledge: every served rule, numbered and cited. Prefer find_rules for a specific task; this is for reading in full.",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "flag_rule",
"description": "Report that a served rule is wrong. Pass the rule's id (the UUID carried on the rule's provenance line as 'id <uuid>'), a plain-words reason, and optionally what it should say instead. The id is required; a section (§) number is a display position only and is not accepted here. This files the objection for a human to act on; it does not change the rule itself.",
"inputSchema": {
"type": "object",
"properties": {
"rule_id": {
"type": "string",
"description": "The rule's UUID, copied from the 'id <uuid>' field on its provenance line. Not the § section number."
},
"reason": {
"type": "string",
"description": "Why the rule is wrong, in plain words."
},
"suggested_correction": {
"type": "string",
"description": "Optional: what the rule should say instead."
}
},
"required": [
"rule_id",
"reason"
]
}
}
]
}
}ping and notifications
ping returns an empty result, {}. A notification (a message with no id, such as notifications/initialized) gets HTTP 202 with an empty body.
The four tools
Every tool returns a content list with one text item and an isError value. This is a complete response. The examples that follow show only the text.
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"content": [
{
"type": "text",
"text": "This question sits at 2 steps of Acme's marketing graph: authorize-the-buy (Convert approved budget into committed spend.) and spend-authorized (Committed spend is authorized.). 1 rule from Acme's knowledge applies, best match first:\n\n§ 1. Any media buy above $50,000 needs written approval from the finance director before it is booked.\nMUST · when a buy exceeds $50,000\nSource: \"Buys over $50,000 require written sign-off from the Finance Director prior to booking.\" (Approval Matrix 2026.pdf, page 3)\nbinds authorize-the-buy · 2 citations · id 65fa2cc6-0466-4e5c-b778-28c4e8bfe5be"
}
],
"isError": false
}
}The sample workspace, Acme, has four rules: media approval, campaign naming, cost per acquisition, and pacing. The pacing rule has been flagged. These examples use output from the serving code.
find_rules
Find rules for a task or question. Use this before drafting a plan, naming a campaign, reporting a metric, or answering how your team works.
| Input | Type | Required | Meaning |
|---|---|---|---|
task | string | yes | The task or question, in plain words. |
{"name": "find_rules", "arguments": {"task": "Who needs to approve a $60,000 media buy?"}}This question sits at 2 steps of Acme's marketing graph: authorize-the-buy (Convert approved budget into committed spend.) and spend-authorized (Committed spend is authorized.). 1 rule from Acme's knowledge applies, best match first: § 1. Any media buy above $50,000 needs written approval from the finance director before it is booked. MUST · when a buy exceeds $50,000 Source: "Buys over $50,000 require written sign-off from the Finance Director prior to booking." (Approval Matrix 2026.pdf, page 3) binds authorize-the-buy · 2 citations · id 65fa2cc6-0466-4e5c-b778-28c4e8bfe5be
The response first names the steps of your marketing graph the question was placed on, with what each step covers. Then it gives a count and lists the rules, best first. Read how each rule is formatted.
This question sits at 2 steps of Acme's marketing graph: metric-definitions (What a metric means, what sits in its denominator, and what is excluded.) and report-performance (Produce the recurring performance read across governed dimensions, fees included.). 1 rule from Acme's knowledge applies, best match first: § 2. Cost per acquisition is total media spend divided by new customers, excluding returning customers. DEFINITION · when reporting cost per acquisition Source: "CPA = total media spend / new customers. Returning customers are excluded." (Measurement Playbook.pdf, page 7) binds metric-definitions · 2 citations · id 8a8e1f97-61b7-4839-8d5d-deb33113ba81
Only rules that help answer the question come back. For naming a new campaign, the cost per acquisition rule also contains the word “new”, but it does not help name a campaign, so it is left out.
This question sits at 2 steps of Acme's marketing graph: naming-and-taxonomy (Controlled vocabularies, naming conventions, and cross-system name mappings.) and generate-activation-records (Create taxonomy-compliant campaign, package, and placement records; only approved values are usable.). 1 rule from Acme's knowledge applies, best match first: § 3. Campaign names follow the pattern Brand_Market_Channel_YYYYMM. MUST Source: "Campaign name format: Brand_Market_Channel_YYYYMM" (Naming Conventions.xlsx, sheet Campaigns, row 4) binds naming-and-taxonomy · 1 citation · id c43f67ee-5d29-4647-9da1-a918afb36cca
No rules at these steps. When the steps a question belongs to hold no rules, Corpora names the steps, says no rules sit there yet, and says the documents it has read do not cover the question. isError is false because the search succeeded.
This question sits at 2 steps of Acme's marketing graph: shape-the-flighting (Schedule spend across time.) and brand-safety-and-suitability (Where a brand may and may not appear.). Acme's knowledge has no rules at these steps yet. The documents Corpora has read do not cover it.
Rules at these steps, none about the question. When the steps hold rules but none answers the question, Corpora names the steps, says how many rules sit there, and says the documents it has read do not cover the question. It does not list those rules.
This question sits at 2 steps of Acme's marketing graph: track-pacing (Track delivery against plan on the agreed cadence.) and shape-the-flighting (Schedule spend across time.). Acme's knowledge has 1 rule at these steps, and it does not answer this question. The documents Corpora has read do not cover it.
Not about media work. A question with no place on the marketing graph gets a plain answer that the workspace does not cover it.
This question is not about media or marketing work, so Acme's knowledge does not cover it.
Word match. If the question cannot be placed, because the model call failed or the workspace has reached its monthly spending limit, Corpora falls back to matching words across all rules. The answer says so first, and gives the reason.
This is a word match. The question could not be placed on the marketing graph just now, so these rules were found by matching its words. Check that each one applies. 1 rule from Acme's knowledge applies, best match first: § 1. Any media buy above $50,000 needs written approval from the finance director before it is booked. MUST · when a buy exceeds $50,000 Source: "Buys over $50,000 require written sign-off from the Finance Director prior to booking." (Approval Matrix 2026.pdf, page 3) binds authorize-the-buy · 2 citations · id 65fa2cc6-0466-4e5c-b778-28c4e8bfe5be
No searchable terms. A question made only of common words and the workspace name gives Corpora nothing to match. It asks for a subject.
Nothing matched: the question has no specific terms to look up in Acme's knowledge. Ask again naming the subject, such as a metric, process step, or document.
Limits. The answer names the first 2 steps the question is placed on. The model picks from up to 30 candidate rules and returns up to 10. See How search works.
get_rule
Fetch one rule by its § number. Use it to reread a rule found earlier.
| Input | Type | Required | Meaning |
|---|---|---|---|
number | integer, at least 1 | yes | The rule's § number. Send it as a number, not a string: "1" does not match § 1. |
{"name": "get_rule", "arguments": {"number": 1}}{
"jsonrpc": "2.0",
"id": 4,
"result": {
"content": [
{
"type": "text",
"text": "§ 1. Any media buy above $50,000 needs written approval from the finance director before it is booked.\nMUST · when a buy exceeds $50,000\nSource: \"Buys over $50,000 require written sign-off from the Finance Director prior to booking.\" (Approval Matrix 2026.pdf, page 3)\nbinds authorize-the-buy · 2 citations · id 65fa2cc6-0466-4e5c-b778-28c4e8bfe5be"
}
],
"isError": false,
"rule_id": "65fa2cc6-0466-4e5c-b778-28c4e8bfe5be"
}
}The response includes a rule_id field beside content. The same id appears at the end of the rule text.
Unknown number. The answer says so and gives the current count:
There is no § 99 in Acme's knowledge; it has 4 rules.
get_all_rules
Read every served rule, numbered and cited. This tool takes no input. For a specific task, use find_rules to keep the response shorter.
{"name": "get_all_rules", "arguments": {}}Acme's knowledge · revision 0 · 4 rules. Answer only from these rules; where none applies, say so. § 1. Any media buy above $50,000 needs written approval from the finance director before it is booked. MUST · when a buy exceeds $50,000 Source: "Buys over $50,000 require written sign-off from the Finance Director prior to booking." (Approval Matrix 2026.pdf, page 3) binds authorize-the-buy · 2 citations · id 65fa2cc6-0466-4e5c-b778-28c4e8bfe5be § 2. Cost per acquisition is total media spend divided by new customers, excluding returning customers. DEFINITION · when reporting cost per acquisition Source: "CPA = total media spend / new customers. Returning customers are excluded." (Measurement Playbook.pdf, page 7) binds metric-definitions · 2 citations · id 8a8e1f97-61b7-4839-8d5d-deb33113ba81 § 3. Campaign names follow the pattern Brand_Market_Channel_YYYYMM. MUST Source: "Campaign name format: Brand_Market_Channel_YYYYMM" (Naming Conventions.xlsx, sheet Campaigns, row 4) binds naming-and-taxonomy · 1 citation · id c43f67ee-5d29-4647-9da1-a918afb36cca § 4. Pacing is reviewed every Monday, and any line more than 10% off plan is flagged to the account lead. when a line is more than 10% off plan Source: "Every Monday we review pacing; anything 10%+ off plan gets flagged to the account lead." (Media Operations Handbook.docx, section 6.1) binds track-pacing · 1 citation · 1 agent flag · id 1dba15f8-c628-4963-a7d4-c7de64760247
- Header. The workspace, a revision number, and the rule count. The revision is a counter that goes up as the workspace’s knowledge changes; two reads with the same revision saw the same knowledge. (The sample workspace shows 0 because it was seeded directly.)
- Order. Rules found in the most separate documents come first, then the earliest found, then by rule id. That order is what gives each rule its § number. No score decides it.
- Everything, no limit. Unlike
find_rules, there is no cap of 10.
flag_rule
Record a concern about a served rule. For example, someone may tell the tool that an approval process changed last month.
| Input | Type | Required | Meaning |
|---|---|---|---|
rule_id | string | yes | The rule's id, copied from the end of its last line (id 1dba15f8-...). A § number is not accepted. |
reason | string | yes | Why the rule is wrong, in plain words. Must not be empty. |
suggested_correction | string | no | What the rule should say instead. |
{
"name": "flag_rule",
"arguments": {
"rule_id": "1dba15f8-c628-4963-a7d4-c7de64760247",
"reason": "We moved pacing reviews to Tuesday in September.",
"suggested_correction": "Pacing is reviewed every Tuesday."
}
}Flagged. The objection is recorded on the rule (1 flag on this rule). The rule is unchanged until a person acts on it.
These requests return isError true. No flag is recorded.
| Case | Text returned |
|---|---|
| Empty or missing reason | A reason is required to flag a rule. |
| An id that is not a rule in this workspace, including a § number | No rule with id 3 in this workspace; nothing was flagged. |
What happens after a flag is covered in Flagging a rule.
Answers every tool can give
| Situation | isError | Text returned |
|---|---|---|
| MCP access is turned off in Settings | true | Serving is turned off for this workspace. An admin can turn it on in Settings. |
| The workspace has no served rules yet (here, a workspace named Globex) | false | Globex's knowledge has no rules yet. Nothing can be answered from it; say so instead of guessing. |
| A tool name that does not exist | true | Unknown tool: delete_rule |
| Something failed inside Corpora | true | Something went wrong answering this, and nothing was answered. Try again; if it keeps failing, say so instead of guessing. |
Reading a rule
Every rule has three or four lines, in this order:
§ 4. Pacing is reviewed every Monday, and any line more than 10% off plan is flagged to the account lead. when a line is more than 10% off plan Source: "Every Monday we review pacing; anything 10%+ off plan gets flagged to the account lead." (Media Operations Handbook.docx, section 6.1) binds track-pacing · 1 citation · 1 agent flag · id 1dba15f8-c628-4963-a7d4-c7de64760247
| Line | What it says |
|---|---|
§ 4. Pacing is reviewed… | The rule. Its current § number and the statement Corpora drew from the source. |
when a line is… | Kind and condition, when known. The kind comes first in capitals: MUST, MUST NOT, PRECONDITION, SEQUENCE, or DEFINITION. The condition (when the rule applies) follows, always starting with “when”. The two are joined by “·”, as in MUST · when a buy exceeds $50,000. This rule has a condition but no kind. A rule with neither has no line here, so it is three lines. |
Source: "…" (file, locator) | The source. A quote, file name, and, when available, the page, section, slide, sheet, or row. If several documents contain the rule, this line shows the first source found. |
binds … · citations · flags · id | The provenance line. Facts about the rule, separated by “·”, explained below. |
The last line, field by field
| Field | Meaning | Always there? |
|---|---|---|
binds track-pacing | Where the rule sits in your marketing graph: the step or area it governs. The id is a stable, hyphenated name for that step. See the list of areas below. | Only when Corpora placed the rule on a step. |
2 citations | How many separate documents state this rule. Counted by document, so a file read twice still counts once. More documents means the rule is more widely written down, not that it is more correct. | Yes. Never less than 1. |
1 agent flag | How many times a connected AI agent has flagged this rule with flag_rule. Mention the flag when using the rule. | Only when the rule has been flagged. |
mentions Prisma, Peugeot | The things the rule refers to, by name: up to 6 of them, such as a platform, a brand, a metric, or a term. Corpora matches these against the things a question names. | Only when the rule refers to a thing Corpora has named. |
id 1dba15f8-… | The rule's stable id. It never changes, unlike the § number. It is the value flag_rule needs. | Yes, always last. |
The marketing graph groups steps into areas. Here are example binds values from each area:
| Area | Example step ids |
|---|---|
| New business and onboarding | qualify-the-rfp, go-no-go |
| Account setup and foundation | author-the-data-dictionary, load-rates |
| Strategy and planning | set-the-budget, allocate-channels |
| Sourcing and buy authorization | negotiate-terms, evaluate-proposals |
| Execution and trafficking | authorize-the-buy, run-prelaunch-qa |
| In-flight management | track-pacing, report-performance |
| Reconciliation and close | match-vendor-invoices, bill-the-client |
| Standing domains (apply across all steps) | approvals-and-authority, naming-and-taxonomy, metric-definitions |
Review status is not shown. Proposed rules can be served before your team reviews them, with their sources attached. They look the same as confirmed rules in the response. Rejected rules stop being served.
What is not served
AI agents can read the live rules on the Knowledge page. Corpora holds back:
| Held back | Why |
|---|---|
| Facts and other set-aside notes | One-time figures and plan details that Corpora set aside. Your team can see them in Knowledge, but your AI cannot read them as rules. |
| Rejected rules | A person on your team said the rule is wrong. |
| Superseded rules | A newer version of the rule replaced it. Only the newer one is served. |
| Retired rules | The only document that stated the rule was deleted, or replaced by a new version that no longer states it. A rule also found in another document keeps serving, with its remaining sources. |
| Rules still being mapped | New findings wait until Corpora decides whether they are rules or notes. A scan can still be running when some rules become available. |
AI agents also do not receive reviewer names, review history, quotes from a rule’s other sources, full documents, or anything from another workspace.
Flagging a rule
flag_rule records a concern. The rule keeps serving until someone on your team changes or rejects it.
- What is recorded. The flag is written to the rule’s decision history with the reason, the suggested correction if given, the rule’s status and step at that moment, and a link to the MCP call it came in on. It is attributed to a connected AI agent, not to a person.
- What tools see next. Later responses include the number of flags, such as
1 agent flag. - Flags add up. Each call adds one more flag. The reply gives the running total.
- Who decides. A person can change or reject the rule. A flag does not decide its status.
Give a specific reason. “Approvals moved to the CFO in September” helps your team more than “outdated”.
How search works
find_rules works in three steps. First it places the question on your marketing graph, the map of media work every rule is tied to. Then it gathers candidate rules at those steps and nearby. Last, a model reads the candidates and keeps the ones that answer the question.
1. Placing the question
- One model call. Corpora sends the question to Google’s Gemini 3.8 Flash model through Vertex AI, along with the marketing graph’s steps and what each one covers. The model names up to 3 steps where the answer belongs, best first.
- It is not told where rules are. The model places the question where its answer belongs, not where it guesses rules exist. That is how Corpora can say truthfully that nothing is known at a step.
- Checked after the call. Step names the model invents are dropped. The first 2 valid steps are the ones used.
- It costs a little. Each placement is recorded as model usage and counts toward the workspace’s monthly spending limit. At the limit, Corpora uses the word match below on all rules instead, and says so.
2. Gathering candidates
- Rules at the steps. Up to 12 rules from each of the 2 steps, best word match first.
- Rules that mention what the question names. When the question names a thing the workspace’s rules refer to, such as a platform, a brand, or a term, every rule that mentions it is added, whichever step it binds. The pick below keeps the ones that answer.
- The best word matches anywhere. Up to 10 rules from all the workspace’s rules, so a rule filed one step away is still seen.
- Rare words. Every rule containing a question word that appears in 5% or fewer of the workspace’s rules, such as a platform or a contract name.
- At most 30. Candidates are added in that order until there are 30.
3. Picking the rules
- One more model call. Corpora sends the question and the numbered candidates to Gemini 3.8 Flash. The model returns the numbers of the rules a person asking that exact question would want, best first, up to 10. It drops rules that only share words or a topic with the question.
- None is a valid answer. When no candidate helps, the model returns none, and Corpora says so instead of returning weak matches.
- No rules are written by the model. It only returns numbers. Numbers it was not offered are ignored. Every rule returned is the stored rule, with its quote and source.
- It costs a little too. Each pick is recorded as model usage and counts toward the monthly spending limit. If the pick fails or the limit is reached, Corpora returns the rules at the 2 steps by word match instead, as described below.
How words are matched
- Words are pulled from the task. Lowercased, split on anything that is not a letter or digit. Thousands separators are removed, so
$60,000becomes60000. - Filler is dropped. Common words (the, what, how, our, need), generic question words (define, explain, rule, policy, process, team, company), single letters, and the workspace’s own name. Every rule in a workspace is about that workspace, so its name would match everything.
- Endings are trimmed. Common endings are cut, so “approving” finds “approved” and “approval”, and “plans” finds “plan”. This is a simple match: “approve” does not find “approval”. Short words are left alone.
- Numbers match exactly.
60000finds only rules containing 60,000. Search does not compare amounts, so a question about a $60,000 buy does not find a $50,000 rule by its number; it finds it by words like “media” and “buy”. - Phrases count extra. Runs of up to 5 words from the task (small joining words like “of”, “per”, and “the” allowed inside) are also looked for intact, so “cost per acquisition” outranks a rule that merely contains “cost” and “acquisition” far apart.
- The step name does not count. Every rule at a step shares it, so a question about plan approval does not match a rule just because its step is called govern-the-plan.
Scoring
| Match | Points |
|---|---|
| A task word found in the rule's statement | 1 |
| A task word found only elsewhere: the condition, named entities, or the source file name | 0.5 |
| A whole phrase found in the statement | 2 per word in the phrase |
| A whole phrase found only elsewhere | 1 per word in the phrase |
Points order the candidates the model sees. They decide the answer only when the pick cannot run. Then, within each step, rules with no points are left out, and rules under 40% of the step’s best are dropped. Rules from the first step come before rules from the second. At most 10 are kept, and ties go to the rule found in more separate documents, then to the rule id. The points are never shown to your AI. The word match fallback, used when the question cannot be placed, scores the same way across all rules, with the step name counting as 0.5.
Tips for asking well
- Say what you are doing: the task, decision, or deliverable. "Who approves a media buy over $50,000" names the task; "approvals" alone gives the model little to place.
- Name the subject too: the metric, platform, or document. Specific words help find a rule filed at a nearby step.
- Ask about one task at a time. To work from a brief or a plan, split it into its parts (budget, audiences, channels, approvals, measurement) and ask about each one. A whole brief in one question touches more steps than one answer covers.
- Do not rely on numbers to find a rule. Ask about "media buy approval", then compare the threshold in the rule yourself.
- If the answer says no rules are known at those steps, take it at face value: your team has not recorded one yet.
Freshness
Each call reads the current rules. Changes appear in the next response.
| When this happens | Your AI sees it |
|---|---|
| You add a file | After Corpora has read it and mapped its rules. Rules from a file still being scanned appear as each is placed, or all at once when the scan finishes. |
| Your team rejects a rule | On the next call. It is no longer served. |
| You delete a file | On the next call. Rules found only in that file stop being served; rules also found elsewhere lose that citation. |
| A rule is found in more documents | On the next call. Its citation count goes up, and its § number may move earlier. |
| Someone flags a rule | On the next call. The flag count appears on its provenance line. |
| An admin turns MCP access off, or replaces the key | On the next call. Calls are refused until it is turned back on or the tool has the new key. |
Privacy and logging
Corpora records each request that reaches your workspace. This shows what tools asked, which rules they received, and where no rule matched.
What each call records
| Recorded | Details |
|---|---|
| What was asked | The method and tool, the full arguments as sent (the task text, the § number, or the flag's rule id, reason and correction), and the words actually searched after filler was dropped. |
| Where it was placed | For find_rules: the steps the model chose, the steps served, the model's short reason for each, any invalid step names, the model, its time, tokens, and cost, and whether the answer fell back to word matching and why. |
| What was answered | The outcome (answered, no rules at the steps, none relevant at the steps, not about media work, answered by word match, nothing matched, no terms, refused, serving off, or error), each rule returned with its rank, its step, and the words that matched, the knowledge revision, and the full text the tool received, up to 64,000 characters. Longer answers keep only their length and a fingerprint (a SHA-256 hash). |
| Timing and size | When the call arrived, how long the answer took, and its size. |
| Who called | The client name and version the tool gave when it connected, the protocol version, its User-Agent header, the session id, and an internal reference to the key used. Never the key itself. |
This record does not include IP addresses. Our service logs, kept separately for security and operations, can include IP addresses and request details, and also get a one-line summary of each call with the first 200 characters of the question. A request with a missing or wrong key is refused before any workspace is known, so it appears only in those service logs.
Who can see it, and how long it stays
- The record belongs to the workspace: it is held under the same workspace-scoped access controls as your rules, and no other workspace can read it.
- It is not shown in the app today. Authorized Corpora operators can read it to run and support the service.
- It is deleted when the workspace is deleted. Separate operational logs may be kept longer, as our Privacy Policy describes.
- Each find_rules question is sent to Google's Gemini 3.8 Flash model through Vertex AI to place it on the marketing graph. It is not used to train models.
- We do not train our own models on customer documents. The rules, questions, and answers served over MCP are not used for advertising or sold.
Full details are in the Privacy Policy.
Errors
Protocol errors use JSON-RPC error responses. Tool errors use isError in a tool result.
| Situation | What comes back |
|---|---|
| No key, unknown key, or replaced key | HTTP 401, body {"detail": ...} (see Connecting) |
| Body is not valid JSON, or is a list (batch) | { "jsonrpc": "2.0", "id": null, "error": { "code": -32700, "message": "parse error" } } |
| Unknown method, for example resources/list | { "jsonrpc": "2.0", "id": 1, "error": { "code": -32601, "message": "method not found: resources/list" } } |
| Notification (no id) | HTTP 202, empty body |
| Tool answered, with nothing found or no rules yet | isError: false and a plain explanation |
| MCP access off, unknown tool, bad flag, internal failure | isError: true and a plain explanation |
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| The tool cannot connect, or reports 401 | The key is missing, mistyped, or was replaced. Check the header reads exactly Authorization: Bearer crpra_live_…, with no quotes or spaces inside the key. If unsure, replace the key in Settings > MCP and update the tool. |
| Every answer says serving is turned off | MCP access is off for the workspace. An owner or admin can turn it on in Settings > MCP. |
| The answer says the workspace has no rules yet | No rules have finished mapping. Add files and wait for the scan to finish, then ask again. |
| A rule you can see on the Knowledge page is never found | The question was placed on different steps than the one the rule binds, or it shares no words with the rule. Name the task the rule is about, use the words it uses, or read it with get_all_rules. |
| An answer starts with "This is a word match" | The question could not be placed: the model call failed, or the workspace reached its monthly spending limit. The rules were found by words alone, so check each one applies. |
| A rule appears in the app but not over MCP | It may still be mapping, or it was set aside as a fact. Set-aside notes are never served. |
| get_rule returns the wrong rule | § numbers moved since the tool last read them. Search again, or refer to the rule by its id. |
| flag_rule says no rule with that id | The tool passed a § number or a shortened id. It needs the full id from the end of the rule's last line. |
| Your app has no place for the key | Its connector setup only supports a sign-in flow. It needs a remote MCP option that can send an Authorization header. |
FAQ
Does an AI model choose which rules my tool gets?
A model chooses where on your marketing graph the question belongs, and a second model call picks which candidate rules answer the question, as How search works describes. When that pick cannot run, the word scoring on this page decides. The model never writes or changes a rule.
Can a connected tool change or delete rules?
No. The only tool that writes anything is flag_rule, which records a concern. Rules change only when a person acts in Corpora.
Does my tool receive my documents?
No. It receives the rule, a short quote from the source, the file name, and where in the file. Not the file itself.
What does an answer with no rules mean?
Corpora found no rule that answers the question. The answer says where the question lands, how many rules sit there, and that the documents Corpora has read do not cover it. Treat that as the answer. The question is recorded, as described under Privacy and logging.
Why are unreviewed rules served?
Tools can use rules as Corpora finds them. Each rule includes its source. Rejecting a rule removes it from future responses.
Can I connect more than one tool?
Yes. Every tool uses the same workspace key. Replacing the key disconnects all of them until they get the new one.
What does "revision" in get_all_rules mean?
A counter that goes up as the workspace's knowledge changes. Two reads with the same revision saw the same knowledge.
Can I see what my tools asked?
Not in the app yet. Every call is recorded in your workspace's data, as described under Privacy and logging. Write to support@abstract.partners if you need it.