Skip to main content
Glama

Add knowledge from text

add_knowledge_text

Add a document of plain text the AI agents can look up, such as hours, policies, specials, or directions. Agents can find it within a minute or two.

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

Input Schema

NameRequiredDescriptionDefault
titleYesShort title
contentYesThe text agents should know
categoryNoOptional grouping, such as Service or Sales
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write to an open world, so the safety profile is covered. The description adds real value with the propagation latency note ("agents can find it within a minute or two"), but says nothing about duplicate handling, limits, or what happens to existing entries.

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

Conciseness5/5

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

Two short sentences, front-loaded with the action and resource, and the second sentence carries non-obvious timing information rather than filler. Nothing to cut.

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

Completeness3/5

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

Adequate for a simple create tool with fully documented parameters and safety annotations, but it leaves the create-vs-update lifecycle unaddressed: no mention of whether re-adding the same title duplicates content or should be paired with remove_knowledge. That gap matters given several sibling knowledge tools.

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

Parameters2/5

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

Schema description coverage is 100% and the schema already documents title, content, category, and the workspace_id fallback behavior in detail. The description adds no parameter meaning beyond that, so it only restates the tool's intent rather than clarifying arguments.

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

Purpose4/5

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

States a specific verb and resource: "Add a document of plain text the AI agents can look up." The content examples (hours, policies, specials, directions) make the resource concrete and implicitly separate it from add_knowledge_website, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Examples of suitable content imply when to use it, but there is no explicit when-not guidance, no prerequisite (e.g., agent must exist and knowledge be attached via set_agent_knowledge), and no routing to alternatives such as add_knowledge_website or add_answer.

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