Skip to main content
Glama

Add a file as text only

add_course_text
Idempotent

Adds a document as text only: the fallback when its original cannot be uploaded with prepare_course_file (for example no way to send a file, an upload that failed, or the person preferring to send the text). The text is stored exactly as sent, so it is the document's own extracted text with the original file's name and kind, not a summary. Text that did not come from a file (typed or pasted notes) is added the same way, with kind 'file' and no name; soclever lists it as Pasted text, which has no original and is not marked incomplete in the status. soclever marks the file text only and incomplete: the original file itself, its layout, pictures and charts, unread scanned pages, recording detail and reliable page references are not kept, and the person sees that in soclever. Before the draft is planned, the same file can still be replaced by its original with prepare_course_file. Text with nothing usable is refused (no_usable_text). A recording's transcript needs recordingConsent true: the person's own statement that everyone recorded agreed, which soclever cannot check.

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": {
      "requestId": "<requestId>",
      "draftId": "<draftId>",
      "kind": "<kind>",
      "text": "<text>"
    },
    "name": "add_course_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes'file' (a document: PDF, Word, slides, text), 'photo' (a picture of pages or a whiteboard) or 'recording' (audio or video).
nameNoThe file's original name with its extension, for text that came from a file. Left out only for kind 'file' text that came from no file (typed or pasted notes); a recording's transcript or a photo's text keeps its original's name.
textYesThe text you extracted, up to 200000 characters.
draftIdYesThe draftId start_document_course returned (or list_drafts shows).
requestIdYesA random UUID, not derived from names, dates or any other content, that identifies one intended action. A retry of that same action uses the same UUID with identical arguments and returns that action's result; each new action has a new UUID. A UUID already used with different arguments is refused (request_conflict); one used for an earlier action returns that earlier result.
destinationNoWhere the course goes: 'personal' (the person's own soclever library, the default) or 'teaching' (a teacher's classes).personal
recordingConsentNoRecordings only: true is the person's own statement that everyone recorded agreed to it being used; soclever cannot check it. Omitted for other files.
interfaceLanguageNoThe person's language for soclever's own words: 'en' or 'he'.en

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the artifact is marked 'text only and incomplete', specific losses are enumerated (layout, pictures, charts, unread scanned pages, page references), the refusal case (no_usable_text) is named, and the consent prerequisite is flagged as unverifiable. The annotations already cover safety/idempotency, so the remaining gap is the absence of any note on how the replacement-before-planning window interacts with the idempotency key.

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-loaded with purpose and alternative, then loss disclosure, then edge cases — a sensible ordering. It is dense and slightly repetitive ('soclever marks the file text only and incomplete' followed by 'the person sees that in soclever'), and phrases like 'recording detail' in the loss list are vague, but no sentence is 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 an 8-parameter mutation with three enums, an output schema and full annotation coverage, the description supplies everything an agent needs: the relationship to prepare_course_file, the data-loss contract, the no_usable_text refusal, and the consent requirement. Return values are left to the output schema, which is appropriate.

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 coverage is 100%, so field meanings are already documented; the description does add the practical rule that name is omitted only for pasted notes with kind 'file' and that soclever surfaces those as 'Pasted text'. That is a real clarification of the name/kind interaction, but the rest of the narrative does not extend per-parameter meaning much further, so it sits at the baseline.

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 ('Adds a document as text only') and immediately qualifies it as the fallback to prepare_course_file, so an agent can distinguish it from the sibling upload path without opening either schema. It also names the second case (typed/pasted notes added the same way) so the scope is unambiguous.

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 explicit when-to-use conditions (no way to send a file, a failed upload, or the person preferring to send text) and names the preferred alternative, prepare_course_file, twice — including the time window ('before the draft is planned, the same file can still be replaced'). It also states a prerequisite for transcripts (recordingConsent true) and what to do for non-file text.

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