Skip to main content
Glama

Add a knowledge document

add_knowledge_document

Add an uploaded file to the workspace's knowledge base.

    Hail indexes PDF with text, DOCX, TXT, Markdown, CSV and XLSX (tables
    in pieces of up to 25 rows, each with its column names) for agents
    with ``knowledge`` on. A document starts ``pending``. Check
    ``get_knowledge_document`` for ``ready`` or ``failed`` (see
    ``error``).
    The knowledge base comes with the Pro, Business and Enterprise plans
    on Hail's cloud (a self-hosted Hail's operator turns it on); without
    it, adding returns an error (listing, reading and deleting documents
    still work).
    Returns the document or an error.

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": {
      "upload_id": "<upload_id>"
    },
    "name": "add_knowledge_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name. Omitted: the upload's file name.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
upload_idYesThe ``id`` of a ``create_file_upload`` link with purpose ``knowledge_document`` whose file was sent.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / $defs / KnowledgeDocumentTagResponse / properties / source
      Added value: +{
      +  "description": "`auto`: found by Hail. `manual`: this type was set in the console or through the API. Hail never changes a type set that way.",
      +  "enum": [
      +    "auto",
      +    "manual"
      +  ],
      +  "title": "Source",
      +  "type": "string"
      +}
    • changedOutput schema / $defs / KnowledgeDocumentTagResponse / properties / type / description
      Previous value: -"Type of tag, for example `brand`."New value: +"Type of tag: `brand` or `serial_id`."
    • changedOutput schema / $defs / KnowledgeDocumentTagResponse / required
      Previous value: -[
      -  "type",
      -  "value"
      -]New value: +[
      +  "type",
      +  "value",
      +  "source"
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "One knowledge base document and how far its reading got.",
      -    "properties": {
      -      "content_type": {
      -        "description": "The file's MIME type.",
      -        "title": "Content Type",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Why the document failed, in plain words. Null otherwise.",
      -        "title": "Error"
      -      },
      -      "id": {
      -        "description": "The document's id.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "piece_count": {
      -        "description": "Searchable pieces made from the file (0 until indexed).",
      -        "title": "Piece Count",
      -        "type": "integer"
      -      },
      -      "size_bytes": {
      -        "description": "The file's size in bytes.",
      -        "title": "Size Bytes",
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`.",
      -        "enum": [
      -          "pending",
      -          "processing",
      -          "ready",
      -          "failed"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "tags": {
      -        "description": "Assigned tags, ordered by type.",
      -        "items": {
      -          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      -        },
      -        "title": "Tags",
      -        "type": "array"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "content_type",
      -      "size_bytes",
      -      "status",
      -      "error",
      -      "piece_count",
      -      "created_at",
      -      "updated_at",
      -      "tags"
      -    ],
      -    "title": "KnowledgeDocumentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "One knowledge base document and how far its reading got.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The file's MIME type.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Why the document failed, in plain words. Null otherwise.",
      +        "title": "Error"
      +      },
      +      "id": {
      +        "description": "The document's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "piece_count": {
      +        "description": "Searchable pieces made from the file (0 until indexed).",
      +        "title": "Piece Count",
      +        "type": "integer"
      +      },
      +      "size_bytes": {
      +        "description": "The file's size in bytes.",
      +        "title": "Size Bytes",
      +        "type": "integer"
      +      },
      +      "status": {
      +        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`.",
      +        "enum": [
      +          "pending",
      +          "processing",
      +          "ready",
      +          "failed"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "tags": {
      +        "description": "Assigned tags, ordered by type, then value. A document can have several values of one type.",
      +        "items": {
      +          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      +        },
      +        "title": "Tags",
      +        "type": "array"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "content_type",
      +      "size_bytes",
      +      "status",
      +      "error",
      +      "piece_count",
      +      "created_at",
      +      "updated_at",
      +      "tags"
      +    ],
      +    "title": "KnowledgeDocumentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "One knowledge base document and how far its reading got.",
      -    "properties": {
      -      "content_type": {
      -        "description": "The file's MIME type.",
      -        "title": "Content Type",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Why the document failed, in plain words. Null otherwise.",
      -        "title": "Error"
      -      },
      -      "id": {
      -        "description": "The document's id.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "piece_count": {
      -        "description": "Searchable pieces made from the file (0 until indexed, always 0 for XLSX).",
      -        "title": "Piece Count",
      -        "type": "integer"
      -      },
      -      "size_bytes": {
      -        "description": "The file's size in bytes.",
      -        "title": "Size Bytes",
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. XLSX is ready for viewing only. `failed`: see `error`.",
      -        "enum": [
      -          "pending",
      -          "processing",
      -          "ready",
      -          "failed"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "tags": {
      -        "description": "Assigned tags, ordered by type.",
      -        "items": {
      -          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      -        },
      -        "title": "Tags",
      -        "type": "array"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "content_type",
      -      "size_bytes",
      -      "status",
      -      "error",
      -      "piece_count",
      -      "created_at",
      -      "updated_at",
      -      "tags"
      -    ],
      -    "title": "KnowledgeDocumentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "One knowledge base document and how far its reading got.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The file's MIME type.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Why the document failed, in plain words. Null otherwise.",
      +        "title": "Error"
      +      },
      +      "id": {
      +        "description": "The document's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "piece_count": {
      +        "description": "Searchable pieces made from the file (0 until indexed).",
      +        "title": "Piece Count",
      +        "type": "integer"
      +      },
      +      "size_bytes": {
      +        "description": "The file's size in bytes.",
      +        "title": "Size Bytes",
      +        "type": "integer"
      +      },
      +      "status": {
      +        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`.",
      +        "enum": [
      +          "pending",
      +          "processing",
      +          "ready",
      +          "failed"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "tags": {
      +        "description": "Assigned tags, ordered by type.",
      +        "items": {
      +          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      +        },
      +        "title": "Tags",
      +        "type": "array"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "content_type",
      +      "size_bytes",
      +      "status",
      +      "error",
      +      "piece_count",
      +      "created_at",
      +      "updated_at",
      +      "tags"
      +    ],
      +    "title": "KnowledgeDocumentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "One knowledge base document and how far its reading got.",
      -    "properties": {
      -      "content_type": {
      -        "description": "The file's MIME type.",
      -        "title": "Content Type",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Why the document failed, in plain words. Null otherwise.",
      -        "title": "Error"
      -      },
      -      "id": {
      -        "description": "The document's id.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "piece_count": {
      -        "description": "Searchable pieces made from the file (0 until ready).",
      -        "title": "Piece Count",
      -        "type": "integer"
      -      },
      -      "size_bytes": {
      -        "description": "The file's size in bytes.",
      -        "title": "Size Bytes",
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: agents answer from it. `failed`: see `error`.",
      -        "enum": [
      -          "pending",
      -          "processing",
      -          "ready",
      -          "failed"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "tags": {
      -        "description": "Assigned tags, ordered by type.",
      -        "items": {
      -          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      -        },
      -        "title": "Tags",
      -        "type": "array"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "content_type",
      -      "size_bytes",
      -      "status",
      -      "error",
      -      "piece_count",
      -      "created_at",
      -      "updated_at",
      -      "tags"
      -    ],
      -    "title": "KnowledgeDocumentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "One knowledge base document and how far its reading got.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The file's MIME type.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Why the document failed, in plain words. Null otherwise.",
      +        "title": "Error"
      +      },
      +      "id": {
      +        "description": "The document's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "piece_count": {
      +        "description": "Searchable pieces made from the file (0 until indexed, always 0 for XLSX).",
      +        "title": "Piece Count",
      +        "type": "integer"
      +      },
      +      "size_bytes": {
      +        "description": "The file's size in bytes.",
      +        "title": "Size Bytes",
      +        "type": "integer"
      +      },
      +      "status": {
      +        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. XLSX is ready for viewing only. `failed`: see `error`.",
      +        "enum": [
      +          "pending",
      +          "processing",
      +          "ready",
      +          "failed"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "tags": {
      +        "description": "Assigned tags, ordered by type.",
      +        "items": {
      +          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      +        },
      +        "title": "Tags",
      +        "type": "array"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "content_type",
      +      "size_bytes",
      +      "status",
      +      "error",
      +      "piece_count",
      +      "created_at",
      +      "updated_at",
      +      "tags"
      +    ],
      +    "title": "KnowledgeDocumentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed2 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "KnowledgeDocumentTagResponse": {
      +    "properties": {
      +      "type": {
      +        "description": "Type of tag, for example `brand`.",
      +        "title": "Type",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "The workspace's display spelling of the tag.",
      +        "title": "Value",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "value"
      +    ],
      +    "title": "KnowledgeDocumentTagResponse",
      +    "type": "object"
      +  }
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "description": "One knowledge base document and how far its reading got.",
      -    "properties": {
      -      "content_type": {
      -        "description": "The file's MIME type.",
      -        "title": "Content Type",
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Created At",
      -        "type": "string"
      -      },
      -      "error": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Why the document failed, in plain words. Null otherwise.",
      -        "title": "Error"
      -      },
      -      "id": {
      -        "description": "The document's id.",
      -        "format": "uuid",
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "description": "Display name.",
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "piece_count": {
      -        "description": "Searchable pieces made from the file (0 until ready).",
      -        "title": "Piece Count",
      -        "type": "integer"
      -      },
      -      "size_bytes": {
      -        "description": "The file's size in bytes.",
      -        "title": "Size Bytes",
      -        "type": "integer"
      -      },
      -      "status": {
      -        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: agents answer from it. `failed`: see `error`.",
      -        "enum": [
      -          "pending",
      -          "processing",
      -          "ready",
      -          "failed"
      -        ],
      -        "title": "Status",
      -        "type": "string"
      -      },
      -      "updated_at": {
      -        "description": "ISO 8601 timestamp.",
      -        "format": "date-time",
      -        "title": "Updated At",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name",
      -      "content_type",
      -      "size_bytes",
      -      "status",
      -      "error",
      -      "piece_count",
      -      "created_at",
      -      "updated_at"
      -    ],
      -    "title": "KnowledgeDocumentResponse",
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "One knowledge base document and how far its reading got.",
      +    "properties": {
      +      "content_type": {
      +        "description": "The file's MIME type.",
      +        "title": "Content Type",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "error": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Why the document failed, in plain words. Null otherwise.",
      +        "title": "Error"
      +      },
      +      "id": {
      +        "description": "The document's id.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Display name.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "piece_count": {
      +        "description": "Searchable pieces made from the file (0 until ready).",
      +        "title": "Piece Count",
      +        "type": "integer"
      +      },
      +      "size_bytes": {
      +        "description": "The file's size in bytes.",
      +        "title": "Size Bytes",
      +        "type": "integer"
      +      },
      +      "status": {
      +        "description": "`pending`: waiting to be read. `processing`: being read and indexed. `ready`: agents answer from it. `failed`: see `error`.",
      +        "enum": [
      +          "pending",
      +          "processing",
      +          "ready",
      +          "failed"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "tags": {
      +        "description": "Assigned tags, ordered by type.",
      +        "items": {
      +          "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      +        },
      +        "title": "Tags",
      +        "type": "array"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "name",
      +      "content_type",
      +      "size_bytes",
      +      "status",
      +      "error",
      +      "piece_count",
      +      "created_at",
      +      "updated_at",
      +      "tags"
      +    ],
      +    "title": "KnowledgeDocumentResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: an asynchronous pending/ready/failed lifecycle, an 'error' field on failure, supported file formats and the chunking behavior (tables in pieces of up to 25 rows with column names), and the degraded-mode behavior where adding errors out but listing/reading/deleting still work. Annotations only declare the non-read-only, non-destructive, non-idempotent, non-open-world profile; the description supplies the operational detail an agent actually needs.

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 core action and the follow-up check are front-loaded, and nearly every sentence carries real information (formats, lifecycle, plan gating, return shape). It loses a point for the slightly tangled parentheticals — the nested '(a self-hosted Hail's operator turns it on)' and the 'tables in pieces of up to 25 rows' aside — which interrupt scanning more than they need to.

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 a three-parameter write tool with an output schema, the description covers the async completion path, the failure surface, the plan prerequisite, accepted formats, and the return shape. The presence of an output schema means return values need not be enumerated, and the description correctly stops at 'returns the document or an error.' Nothing an agent needs to invoke and follow up correctly is missing.

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 upload_id's provenance (a create_file_upload link with purpose 'knowledge_document'), the name default, and llm_model's analytics purpose are already documented in the schema. The description's 'Add an uploaded file' framing corroborates upload_id but adds no syntax, format, or constraint detail beyond the structured fields. Baseline 3 applies when the schema carries the semantics.

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?

Opens with a specific verb and resource: 'Add an uploaded file to the workspace's knowledge base.' This is immediately distinguishable from the sibling set (get_knowledge_document, delete_knowledge_document, list_knowledge_documents, search_knowledge), which all operate on already-ingested documents.

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

Usage Guidelines4/5

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

Gives clear workflow context: a document starts 'pending' and the caller should poll get_knowledge_document for 'ready' or 'failed', naming the alternative tool and the condition that selects it. It also states the plan prerequisite (Pro/Business/Enterprise, or operator-enabled self-hosted) and what happens without it. It stops short of explicit exclusions (e.g., re-uploading a duplicate or updating an existing document), so a 4 rather than 5.

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.