Skip to main content
Glama

Ingest into a project's memory

ingest_memory
DestructiveIdempotent

Ingests one data point into a project's memory, as POST /api/v1/ingest does, and answers as it does: the ingestion id, the source id and the status. With no audience the data point is for the whole project; name an audience by its slug to keep it to that audience. An id that already exists replaces the earlier revision and the memories that came from it, and the same content under the same id is unchanged and costs nothing. It spends the project's credits as an API ingestion does. Ingest only what the person asks you to keep. Needs project Write.

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": {
      "content": "<content>"
    },
    "name": "ingest_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoYour own id for this data point, with no '/' in it. Send it again to replace the earlier revision. When omitted, the id comes from the content.
labelNoA short title for the data point, such as "Email from Nadia". When omitted on a re-send, the stored label stays.
contentYesThe text to keep, as the person gave it.
projectNoThe project's slug, exactly as list_projects returned it. Omit it only when the organization has one live project.
audienceNoThe slug of an audience that exists in the project, to keep the data point to that audience. Omit it for the whole project.
identityNoThe author: the customer's own id for one of their users. Its first appearance creates it in the identity directory.
metadataNoYour own JSON, stored and returned as sent. Keys such as role, author, conversationId and messageId help past attribute and order what it reads.
timestampNoWhen the data point happened (ISO 8601). Now when omitted, or the stored time on a re-send.
idempotencyKeyNoYour own key for this call, up to 200 characters, so a retry after a lost answer cannot ingest twice. The same key with the same arguments answers the first call's ingestion id again, starts nothing and costs nothing; the same key with other arguments is refused idempotency-conflict. Omit it when you do not retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "default": null,
      +  "description": "Your own key for this call, up to 200 characters, so a retry after a lost answer cannot ingest twice. The same key with the same arguments answers the first call's ingestion id again, starts nothing and costs nothing; the same key with other arguments is refused idempotency-conflict. Omit it when you do not retry.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Your own id for this data point. Send it again to replace the earlier revision. When omitted, the id comes from the content."New value: +"Your own id for this data point, with no '/' in it. Send it again to replace the earlier revision. When omitted, the id comes from the content."
  3. Changed5 schema fields changed
    • changedInput schema / properties / audience / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / id / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / identity / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / label / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / project / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that an existing id replaces the earlier revision and the memories derived from it (explaining the destructiveHint meaningfully), that identical content under the same id is a free no-op, that credits are consumed per call, and that project Write permission is required. These are exactly the mutation, cost, and auth facts an agent needs before calling.

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?

Front-loads the operation and its return values, and nearly every sentence carries distinct information (scoping, replacement, cost, permission). It is a dense single paragraph and the "as POST /api/v1/ingest does" framing is a little reference-heavy for an agent, but there is no filler.

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

Completeness5/5

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

For a 9-parameter mutating tool with no output schema, the description supplies the return values, the replacement semantics, the credit cost, the permission requirement, and the audience/project scoping rules. Nothing an agent needs to invoke it correctly is missing.

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, but the description adds meaning above the schema by tying `audience` absence to project-wide scope and by explaining the replace/no-op/replace-derived-memories consequence of re-sending an `id`. That cost-and-revision semantics is not spelled out in the parameter descriptions themselves.

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?

Names a specific verb and resource ("Ingests one data point into a project's memory") and immediately states the response shape (ingestion id, source id, status), which pins down exactly what the tool does. The audience/id scoping sentences further delineate it from a plain search or read tool, so an agent can distinguish it from recall_memory without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear when-to-use constraint ("Ingest only what the person asks you to keep") plus the prerequisite "Needs project Write" and the cost warning that it spends credits. It does not explicitly name an alternative sibling (e.g. recall_memory for reads), so exclusion routing is implied rather than stated.

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