§CorporaSign inGet started

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.

Server address
https://mcp.corpora.abstract.partners/mcp
  • Four tools: find_rules searches, get_rule fetches one rule, get_all_rules reads all served rules, and flag_rule reports a rule that looks wrong.
  • Rules stay in your team’s hands: flag_rule records 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:

Handshake
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"}}}'
Then ask a question
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:

CaseHTTP statusBody
No Authorization header, or not Bearer401{"detail": "serve token required"}
Unknown key, or a key that was replaced401{"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:

Response
{
  "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-18 if it asked for none.
  • Session id. The reply carries an Mcp-Session-Id header (for example 978333d03974480bb12876efd4faf04f). 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:

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.

tools/call response
{
  "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.

InputTypeRequiredMeaning
taskstringyesThe task or question, in plain words.
Call
{"name": "find_rules", "arguments": {"task": "Who needs to approve a $60,000 media buy?"}}
Text returned
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.

Another question: How do we calculate cost per acquisition for the monthly report?
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.

Text returned for: naming a new campaign
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.

Text returned for: What is the holiday blackout calendar?
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.

Text returned for: How fast should spend be delivered each week?
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.

Text returned for: What's a good recipe for banana bread?
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.

Text returned for: Who needs to approve a $60,000 media buy? (placement failed)
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.

Text returned for: What are Acme's rules?
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.

InputTypeRequiredMeaning
numberinteger, at least 1yesThe rule's § number. Send it as a number, not a string: "1" does not match § 1.
Call
{"name": "get_rule", "arguments": {"number": 1}}
Result
{
  "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.

§ numbers can change. They reflect a rule’s current position in the full list. Use the rule id when you need a lasting reference.

Unknown number. The answer says so and gives the current count:

Text returned for number 99
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.

Call
{"name": "get_all_rules", "arguments": {}}
Text returned
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.

InputTypeRequiredMeaning
rule_idstringyesThe rule's id, copied from the end of its last line (id 1dba15f8-...). A § number is not accepted.
reasonstringyesWhy the rule is wrong, in plain words. Must not be empty.
suggested_correctionstringnoWhat the rule should say instead.
Call
{
  "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."
  }
}
Text returned
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.

CaseText returned
Empty or missing reasonA reason is required to flag a rule.
An id that is not a rule in this workspace, including a § numberNo 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

SituationisErrorText returned
MCP access is turned off in SettingstrueServing 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)falseGlobex's knowledge has no rules yet. Nothing can be answered from it; say so instead of guessing.
A tool name that does not existtrueUnknown tool: delete_rule
Something failed inside CorporatrueSomething 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
LineWhat 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 · idThe provenance line. Facts about the rule, separated by “·”, explained below.

The last line, field by field

FieldMeaningAlways there?
binds track-pacingWhere 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 citationsHow 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 flagHow 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, PeugeotThe 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:

AreaExample step ids
New business and onboardingqualify-the-rfp, go-no-go
Account setup and foundationauthor-the-data-dictionary, load-rates
Strategy and planningset-the-budget, allocate-channels
Sourcing and buy authorizationnegotiate-terms, evaluate-proposals
Execution and traffickingauthorize-the-buy, run-prelaunch-qa
In-flight managementtrack-pacing, report-performance
Reconciliation and closematch-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 backWhy
Facts and other set-aside notesOne-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 rulesA person on your team said the rule is wrong.
Superseded rulesA newer version of the rule replaced it. Only the newer one is served.
Retired rulesThe 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 mappedNew 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.

Flags are stored in the rule’s decision history and appear as a count in later MCP responses. There is no flag review view in the app yet.
  • 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”.

Freshness

Each call reads the current rules. Changes appear in the next response.

When this happensYour AI sees it
You add a fileAfter 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 ruleOn the next call. It is no longer served.
You delete a fileOn 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 documentsOn the next call. Its citation count goes up, and its § number may move earlier.
Someone flags a ruleOn the next call. The flag count appears on its provenance line.
An admin turns MCP access off, or replaces the keyOn 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

RecordedDetails
What was askedThe 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 placedFor 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 answeredThe 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 sizeWhen the call arrived, how long the answer took, and its size.
Who calledThe 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.

Keep questions specific. Corpora stores the task text a tool sends, including any conversation or personal details it puts in the request.

Errors

Protocol errors use JSON-RPC error responses. Tool errors use isError in a tool result.

SituationWhat comes back
No key, unknown key, or replaced keyHTTP 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 yetisError: false and a plain explanation
MCP access off, unknown tool, bad flag, internal failureisError: true and a plain explanation

Troubleshooting

SymptomLikely cause and fix
The tool cannot connect, or reports 401The 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 offMCP 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 yetNo 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 foundThe 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 MCPIt 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 idThe 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 keyIts 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.