Skip to main content
Glama

Create document

create_doc

Create a new Silvalabs library card from the agent (needs API key scope ingest:write). Accepts markdown text OR a http(s) URL — not both. Files/PDF/DOCX uploads are NOT supported; if you have a file, save a link (url) instead. Video/audio URLs (YouTube, Vimeo, media files) are saved as BOOKMARK only — source_url in UI, no media download/transcript. New cards are visible_to_agent=true and marked source_type=api (badge «Создано агентом»). Agent cards are NOT in Ask/Library search until a human opts in from the UI («В поиск»). Optional collection: folder name, UUID, or silvalabs:folder//… After create, use get_doc with returned id/ref. Do not invent ids.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNohttp(s) URL to save (mutually exclusive with markdown); video/audio → BOOKMARK
titleNoOptional title
markdownNoMarkdown/text body (mutually exclusive with url)
collectionNoOptional folder name, UUID, or silvalabs:folder/<uuid>/<name>
user_notesNoOptional note
ingest_depthNoFor url only: FULL (default) or BOOKMARK; forced BOOKMARK for video/audio

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (write, open-world, non-idempotent, non-destructive), it discloses auth scope (ingest:write), the resulting visibility_to_agent=true and source_type=api badge, and the critical caveat that agent-created cards are excluded from Ask/Library search until a human opts in. It also clarifies that media URLs are bookmarks with no download or transcript, which is behavior no annotation conveys.

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 action, auth requirement, and input constraint are front-loaded, and most sentences carry distinct information (visibility, search opt-in, follow-up call). There is some redundancy with the schema on url/markdown exclusivity and collection formats, which slightly dilutes density.

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?

With no output schema and zero required parameters, the description compensates by explaining the effective input requirement (url or markdown, not both), the auth prerequisite, the resulting record state, and how to retrieve the created card. That is sufficient for an agent to call it correctly on the first attempt.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents url, markdown, collection, user_notes, and ingest_depth, including the video/audio BOOKMARK forcing. The description largely restates these constraints (mutual exclusivity, collection formats) rather than adding new syntax or edge-case meaning, so the baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Create a new Silvalabs library card from the agent', plus the required API key scope. It clearly separates this from siblings like get_doc (follow-up retrieval) and update_doc_body (post-create editing), so an agent can distinguish it without opening another schema.

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?

It gives explicit routing rules: markdown OR url, never both; files/PDF/DOCX unsupported, so save a link instead; video/audio URLs become BOOKMARK only. It also names the follow-up tool ('After create, use get_doc with returned id/ref. Do not invent ids'), which tells the agent what to do next and what not to do.

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