Skip to main content
Glama

Social media studio

Create Knowledge

create_knowledge

Create a knowledge document from an uploaded file or a typed note

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": {
      "sourceType": "<sourceType>",
      "title": "<title>"
    },
    "name": "create_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoNote body text (for sourceType=note)
tagsNoOptional tags
titleYesDocument title
fileIdNoUploaded media file UUID (for pdf/image/text_file)
isActiveNoWhether the document is active for RAG
sourceTypeYesDocument source type. fileId is required for pdf/image/text_file; body is required for note

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish that this is a non-read-only, non-destructive, closed-world write. The description adds only the two source modes; it does not say whether creation triggers indexing/embedding for RAG, what happens if a title already exists, or whether the document is active by default. With annotations covering the safety profile, a 3 is appropriate.

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?

A single front-loaded sentence with no filler; the mode distinction is stated immediately after the verb and resource. Nothing is redundant or buried.

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?

For a create operation with no output schema, the description does not say what is returned (e.g., a document ID needed for later get/update calls) or what post-creation processing occurs. Coverage of inputs is complete via the schema, but the post-call contract is left implicit.

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 description coverage is 100%, so all six parameters, including the sourceType enum and its fileId/body conditional requirement, are documented in the schema. The description's 'uploaded file or typed note' framing reinforces that conditional split but adds no syntax or constraint beyond what the schema states, so baseline-plus is the right level.

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?

The description gives a specific verb ('Create') and resource ('knowledge document') and names the two input modes ('uploaded file' or 'typed note'), which maps onto the sourceType enum. It is clearly distinguishable from siblings like get_knowledge, update_knowledge, and delete_knowledge by verb alone, though it does not explicitly reference them.

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?

The 'from an uploaded file or a typed note' phrasing implies the two usage paths, and the schema makes the fileId-vs-body split concrete. There is no explicit guidance on when to prefer this over other knowledge tools or on prerequisites such as the file needing to be uploaded first.

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