Skip to main content
Glama

Save a fact for review

cortex_add_fact

Save a fact to the cortex so future answers can find and cite it. This is the door for a fact with a source you can point to — a file path, a link, a meeting name — so give where it came from; answers cite that source back. For a claim learned in conversation with nothing to cite, cortex_remember is the right door. The fact is staged for the user's review — nothing goes live until they swipe, exactly like every other write from a client. Myeline stores only what you send in this call. Works against a private/local cortex or the Myeline platform; a hosted read-only cortex will refuse. Say WHO or WHAT it's about with about — an account, a person, a project — and the fact files itself.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "body_md": "<body_md>"
    },
    "name": "cortex_add_fact"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOptional kind of fact, e.g. company_fact, process, story, history, decision, capability, boilerplate (default company_fact).
aboutNoWHO or WHAT this fact is about — an account, a person, a project ('Meridian'). Becomes a tag on the fact so it files itself; pair with about_kind to name the dimension.
titleNoOptional short title for the fact.
body_mdYesThe fact, one self-contained statement in plain text or markdown.
about_kindNoOptional dimension for about: account | person | project — about 'Meridian' + about_kind 'account' files under account:meridian.
source_uriNoWhere the fact came from — a file path, URL, or reference (e.g. file:///notes/meeting-2026-10-28.md).
source_nameNoA human-readable name for that source (e.g. 'October planning meeting').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare this is a non-read-only, non-destructive write; the description goes well beyond that by disclosing that the write is staged for user review and 'nothing goes live until they swipe', that only what is sent in this call is stored, and that hosted read-only cortices will reject it. Those are the operational details an agent cannot infer from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instruction and the sibling contrast are front-loaded in the first two sentences, and the environment caveat is placed before the parameter guidance. It is slightly longer than needed, with the 'door' metaphor repeated and the about/about_kind advice restating the schema, but no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation with no output schema and thin annotations, the description supplies staging behavior, storage scope, environment constraints, and source/about guidance. The only real gap is what the call returns (e.g., an id or review-card reference) and how the staged fact can be retrieved, which an agent invoking it may want to know.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds value by tying source_uri/source_name to the citation behavior of answers and by explaining the pairing rule for `about` + `about_kind` ('files itself' under account:meridian). It does not add a great deal on `type`, `title`, or format expectations for `body_md`, so it stays below the top band.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Save a fact to the cortex') plus the downstream effect ('so future answers can find and cite it'). It also explicitly contrasts itself with the sibling cortex_remember ('For a claim learned in conversation with nothing to cite, cortex_remember is the right door'), which is exactly the differentiation an agent needs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit inclusion test (the fact must have a citable source: file path, link, meeting name) and an explicit exclusion with the named alternative for uncited conversational claims. It also states an environment precondition ('a hosted read-only cortex will refuse'), so the agent knows a failure mode before calling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources