Elephant: PDF AI & Docs Q&A

v1.5.1
io.github.calypso-so/elephant-mcp-server Checked 9 hours ago Published 1 day ago

PDF AI for your own documents: ask from any MCP client and get answers that cite the source.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

elephant-ask Ask Elephant

Answers a question from the team's Calypso knowledge (documents, websites, images and other sources the team has added), with citations. Use it when the user asks about their own company, product, policies, documents or anything their team keeps in Calypso. Always cite the sources the answer returns. If the answer says the knowledge does not cover the question, say so plainly instead of answering from general knowledge. Each call stands alone: put everything needed to answer, including the subject of a follow-up, in the prompt. Without `model`, Elephant answers from every bucket the user has,…

ParameterTypeDescription
prompt *stringThe user's question, with any context or format they asked for.
bucketsarrayOptional bucket ids or slugs (from elephant-list-buckets), up to 5, to answer only from those. Use it when the user names a folder or topic that matches a bucket; omit it otherwise and Elephant finds…
depthstringHow much work the answer is worth. Omit it for the agent's own default. `fast`: a lookup of one stated fact (a price, a date, a limit); a few seconds. `balanced`: an explanation or summary that draws…
fileIdsarrayOptional source ids (from elephant-list-buckets or a search result) that the answer must take into account. The answer may still draw on the agent's other sources; to read only certain buckets, use el…
modelstringOptional id of one of the team's Calypso agents, when the user names one. Omit it to answer from every bucket the user has, including ones created a moment ago.

elephant-list-buckets List buckets

Lists the team's knowledge buckets — folders of sources Elephant remembers — with their names, slugs, file counts and the sources in each (id, name, type, and whether it is ready to answer from). Use it to show the user what Elephant knows about, to pick buckets before elephant-search, or to find a source's id by its name. Call a source by its name when you tell the user about it. `moreSources: true` means the bucket holds more than the ones named.

ParameterTypeDescription
includeArchivedbooleanIf true, also list archived buckets. Defaults to false.
includeSourcesbooleanName the sources in each bucket (id, name, type, ready). Defaults to true; pass false for counts only.

elephant-open-source Open a source

Returns one source's details by file id: name, type, size, the buckets it is in and whether it is ready to answer from. Use it when the user asks about a specific source cited in an answer or listed by elephant-list-buckets.

ParameterTypeDescription
fileId *stringThe source's file id, as listed by elephant-list-buckets.
verifybooleanIf true, double-check the source's indexing status with the index itself. Slower.

elephant-add-file Add a file

Adds one file to a knowledge bucket so Elephant can answer from it. Pass exactly one source: `file` (a file the user attached in ChatGPT), `sourceUrl` (a public http(s) link) or `contentBase64`. Also pass a bucket (`bucket`, `bucketSlugs` or `bucketIds`). Pass `waitForIndexing: true` when the user wants to ask about the file right away.

ParameterTypeDescription
bucketstringOne bucket slug, as a shortcut for a single destination.
bucketIdsarrayIds of existing buckets to add to (from elephant-list-buckets). Give this, bucketSlugs or bucket.
bucketSlugsarraySlugs of buckets to add to (from elephant-list-buckets). Give this, bucketIds or bucket.
contentBase64stringThe file's bytes as base64. Use only when the file is neither attached nor at a public link.
createMissingBucketsbooleanIf true, buckets named by slug that do not exist yet are created.
fileobjectA file the user attached in ChatGPT. The preferred source when there is one.
filenamestringFile name to show for this source. Required with contentBase64; taken from the file otherwise.
idempotencyKeystringOptional key that makes a retry return the first result instead of adding the same thing twice.
metadataobjectOptional extra fields stored with the source.
mimeTypestringContent type of the file. Required with contentBase64; taken from the file otherwise.
sourceUrlstringA public http(s) link to the file. Calypso fetches it itself (public hosts only, up to 25 MB).
tagsarrayOptional tags to organise the source.
titlestringOptional human-readable title for the source.
waitForIndexingbooleanIf true, wait until the file is ready to answer from before returning.

elephant-add-files Add files

Adds 1 to 100 files to knowledge buckets in one request. Each item carries its bytes as `contentBase64`. A shared bucket applies to every item unless an item names its own. For a single file the user attached, use elephant-add-file instead.

ParameterTypeDescription
items *arrayThe files to add, 1 to 100.
batchIdempotencyKeystringOptional key that makes a retry of the whole batch return the first result. Generated when omitted.
bucket
bucketIds
bucketSlugs
createMissingBuckets
waitForBatchReadybooleanIf true, wait until every file is ready (or has failed) before returning.

elephant-add-website Add a website

Adds a web page to knowledge buckets so Elephant can answer from it. Calypso reads the page and writes its title, summary and tags. Use it when the user shares a link and wants Elephant to remember it. Adding a page the team already has is refused as `website_url_exists`, unless the same `idempotencyKey` is sent again.

ParameterTypeDescription
url *stringThe web page to add. https:// is assumed when left out.
bucketstringOne bucket slug, as a shortcut for a single destination.
bucketIdsarrayIds of existing buckets to add to (from elephant-list-buckets). Give this, bucketSlugs or bucket.
bucketSlugsarraySlugs of buckets to add to (from elephant-list-buckets). Give this, bucketIds or bucket.
createMissingBucketsbooleanIf true, buckets named by slug that do not exist yet are created.
idempotencyKeystringOptional key that makes a retry return the first result instead of adding the same thing twice.
preferredLanguagestringLanguage for the title, summary and tags Calypso writes, e.g. 'en' or 'es'.
tagsHintstringOptional comma-separated hint for the tags Calypso writes.
titlestringOptional title to use instead of the one Calypso writes.

elephant-create-bucket Create a bucket

Creates a new knowledge bucket (a folder of sources) for the team. Use it when the user wants to keep a new topic separate before adding files or websites. A new bucket needs no other setup: elephant-ask and elephant-search answer from it as soon as its files finish indexing.

ParameterTypeDescription
name *stringThe bucket's name.
descriptionstringOptional note on what the bucket holds.
idempotencyKeystringOptional key that makes a retry return the first result instead of adding the same thing twice.
slugstringOptional short id for the bucket, used to add to it later. Made from the name when left out; a slug already in use is refused as `bucket_slug_exists`.

elephant-rename-bucket Rename a bucket

Changes a bucket's name, its description, or both. The sources in the bucket, their indexing and the bucket's slug stay as they are. Use it when the user wants a bucket called something else or wants to note what it holds. Find the bucket with elephant-list-buckets first, and tell the user the old and the new name. Pass at least one of `name` and `description`. It does not move, add or delete anything: to move sources use elephant-move-sources.

ParameterTypeDescription
bucket *stringThe bucket to change: its id or slug, from elephant-list-buckets.
descriptionstringA new note on what the bucket holds.
namestringThe bucket's new name.

elephant-move-sources Move sources

Moves sources from one bucket to another. Each source is added to the destination first and only then taken out of the bucket it came from, so it is never left without a bucket. Files are not deleted or uploaded again. Use it when the user wants to refile sources: split a bucket, tidy up, or put a file where it belongs. Before calling, name the sources and both buckets to the user. The destination must already exist: create it with elephant-create-bucket if this connection can. The result lists each source with what happened: `moved`, `not_in_source_bucket` (it was never in `fromBucket`), `no…

ParameterTypeDescription
fromBucket *stringThe bucket the sources are in now: its id or slug.
sourceIds *arrayIds of the sources to move, from elephant-list-buckets. Up to 100.
toBucket *stringThe bucket the sources go to: its id or slug. It must exist.