Skip to main content
Glama

Read an exact stored document

koskamo_get_document
Read-onlyIdempotent

Read exact stored text for dataset and document_id, optionally document_version. Cursor pages bind one version and content hash. Public or exact owner-key access only. No writes, charges, or inference of source observation time.

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": {
      "dataset": "<dataset>",
      "document_id": "<document_id>"
    },
    "name": "koskamo_get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoOpaque continuation cursor returned by the previous page; keep the same resource and filters.
datasetYesID or slug of the dataset containing the document.
document_idYesID of the exact document to read.
document_versionNoOptional exact stored version; omit to read the current version.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "context": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "app_id": {
      -            "const": "koskamo",
      -            "type": "string"
      -          },
      -          "environment": {
      -            "enum": [
      -              "public",
      -              "production",
      -              "sandbox"
      -            ],
      -            "type": "string"
      -          },
      -          "tenant_ref": {
      -            "type": "null"
      -          },
      -          "timezone": {
      -            "const": "UTC",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "app_id",
      -          "tenant_ref",
      -          "environment",
      -          "timezone"
      -        ],
      -        "type": "object"
      -      },
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "canonical_source_url": {
      -            "anyOf": [
      -              {
      -                "format": "uri",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "content_hash": {
      -            "type": "string"
      -          },
      -          "dataset_id": {
      -            "maxLength": 256,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "document_id": {
      -            "maxLength": 256,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "document_version": {
      -            "type": "string"
      -          },
      -          "ingested_at": {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -            "type": "string"
      -          },
      -          "next_cursor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "sections": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "section_id": {
      -                  "type": "string"
      -                },
      -                "text": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "section_id",
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "source_observed_at": {
      -            "anyOf": [
      -              {
      -                "format": "date-time",
      -                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "title": {
      -            "type": "string"
      -          },
      -          "visibility": {
      -            "enum": [
      -              "public",
      -              "private"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "dataset_id",
      -          "document_id",
      -          "document_version",
      -          "visibility",
      -          "title",
      -          "canonical_source_url",
      -          "source_observed_at",
      -          "ingested_at",
      -          "sections",
      -          "next_cursor",
      -          "content_hash"
      -        ],
      -        "type": "object"
      -      },
      -      "generated_at": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "record",
      -        "type": "string"
      -      },
      -      "next_actions": {
      -        "items": {
      -          "oneOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "tool_name": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "call_tool",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "tool_name",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "open_url",
      -                  "type": "string"
      -                },
      -                "url": {
      -                  "format": "uri",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "url",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "provide_input",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "fields",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "retry_after_ms": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "type": {
      -                  "const": "wait",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "retry_after_ms",
      -                "reason"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "provenance": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "freshness": {
      -              "enum": [
      -                "fresh",
      -                "stale",
      -                "unknown"
      -              ],
      -              "type": "string"
      -            },
      -            "observed_at": {
      -              "anyOf": [
      -                {
      -                  "format": "date-time",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "retrieved_at": {
      -              "format": "date-time",
      -              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -              "type": "string"
      -            },
      -            "source_id": {
      -              "type": "string"
      -            },
      -            "source_url": {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            "source_version": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "source_id",
      -            "observed_at",
      -            "retrieved_at",
      -            "freshness"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0",
      -        "type": "string"
      -      },
      -      "warnings": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "field": {
      -              "type": "string"
      -            },
      -            "message": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "schema_version",
      -      "kind",
      -      "request_id",
      -      "generated_at",
      -      "context",
      -      "data",
      -      "warnings",
      -      "next_actions"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "context": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "app_id": {
      -            "const": "koskamo",
      -            "type": "string"
      -          },
      -          "environment": {
      -            "enum": [
      -              "public",
      -              "production",
      -              "sandbox"
      -            ],
      -            "type": "string"
      -          },
      -          "tenant_ref": {
      -            "type": "null"
      -          },
      -          "timezone": {
      -            "const": "UTC",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "app_id",
      -          "tenant_ref",
      -          "environment",
      -          "timezone"
      -        ],
      -        "type": "object"
      -      },
      -      "data": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "enum": [
      -              "invalid_input",
      -              "unauthenticated",
      -              "permission_denied",
      -              "consent_required",
      -              "ambiguous_target",
      -              "not_found",
      -              "unsupported_capability",
      -              "configuration_required",
      -              "integration_expired",
      -              "stale_data",
      -              "version_conflict",
      -              "approval_required",
      -              "approval_expired",
      -              "idempotency_conflict",
      -              "rate_limited",
      -              "quota_exceeded",
      -              "provider_unavailable",
      -              "outcome_unknown",
      -              "reconciliation_required",
      -              "cursor_expired",
      -              "artifact_expired",
      -              "internal_error"
      -            ],
      -            "type": "string"
      -          },
      -          "domain_code": {
      -            "type": "string"
      -          },
      -          "effects": {
      -            "enum": [
      -              "none",
      -              "committed",
      -              "partial",
      -              "unknown"
      -            ],
      -            "type": "string"
      -          },
      -          "field_errors": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "field": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "field",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "operation_id": {
      -            "type": "string"
      -          },
      -          "retry_after_ms": {
      -            "maximum": 9007199254740991,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "retry_strategy": {
      -            "enum": [
      -              "never",
      -              "same_request",
      -              "after_delay",
      -              "after_correction",
      -              "reconcile_first"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "effects",
      -          "retry_strategy"
      -        ],
      -        "type": "object"
      -      },
      -      "generated_at": {
      -        "format": "date-time",
      -        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -        "type": "string"
      -      },
      -      "kind": {
      -        "const": "error",
      -        "type": "string"
      -      },
      -      "next_actions": {
      -        "items": {
      -          "oneOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "tool_name": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "call_tool",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "tool_name",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "open_url",
      -                  "type": "string"
      -                },
      -                "url": {
      -                  "format": "uri",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "url",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "type": {
      -                  "const": "provide_input",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "fields",
      -                "reason"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "reason": {
      -                  "type": "string"
      -                },
      -                "retry_after_ms": {
      -                  "maximum": 9007199254740991,
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "type": {
      -                  "const": "wait",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "type",
      -                "retry_after_ms",
      -                "reason"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "provenance": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "freshness": {
      -              "enum": [
      -                "fresh",
      -                "stale",
      -                "unknown"
      -              ],
      -              "type": "string"
      -            },
      -            "observed_at": {
      -              "anyOf": [
      -                {
      -                  "format": "date-time",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "retrieved_at": {
      -              "format": "date-time",
      -              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -              "type": "string"
      -            },
      -            "source_id": {
      -              "type": "string"
      -            },
      -            "source_url": {
      -              "format": "uri",
      -              "type": "string"
      -            },
      -            "source_version": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "source_id",
      -            "observed_at",
      -            "retrieved_at",
      -            "freshness"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "schema_version": {
      -        "const": "1.0.0",
      -        "type": "string"
      -      },
      -      "warnings": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "type": "string"
      -            },
      -            "field": {
      -              "type": "string"
      -            },
      -            "message": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "code",
      -            "message"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "schema_version",
      -      "kind",
      -      "request_id",
      -      "generated_at",
      -      "context",
      -      "data",
      -      "warnings",
      -      "next_actions"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "context": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "app_id": {
      +            "const": "koskamo",
      +            "type": "string"
      +          },
      +          "environment": {
      +            "enum": [
      +              "public",
      +              "production",
      +              "sandbox"
      +            ],
      +            "type": "string"
      +          },
      +          "tenant_ref": {
      +            "type": "null"
      +          },
      +          "timezone": {
      +            "const": "UTC",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "app_id",
      +          "tenant_ref",
      +          "environment",
      +          "timezone"
      +        ],
      +        "type": "object"
      +      },
      +      "data": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "canonical_source_url": {
      +            "anyOf": [
      +              {
      +                "format": "uri",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "content_hash": {
      +            "type": "string"
      +          },
      +          "dataset_id": {
      +            "maxLength": 256,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "document_id": {
      +            "maxLength": 256,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "document_version": {
      +            "type": "string"
      +          },
      +          "ingested_at": {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +            "type": "string"
      +          },
      +          "next_cursor": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sections": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "section_id": {
      +                  "type": "string"
      +                },
      +                "text": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "section_id",
      +                "text"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "source_observed_at": {
      +            "anyOf": [
      +              {
      +                "format": "date-time",
      +                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "visibility": {
      +            "enum": [
      +              "public",
      +              "private"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "dataset_id",
      +          "document_id",
      +          "document_version",
      +          "visibility",
      +          "title",
      +          "canonical_source_url",
      +          "source_observed_at",
      +          "ingested_at",
      +          "sections",
      +          "next_cursor",
      +          "content_hash"
      +        ],
      +        "type": "object"
      +      },
      +      "generated_at": {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "record",
      +        "type": "string"
      +      },
      +      "next_actions": {
      +        "items": {
      +          "oneOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "tool_name": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "call_tool",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "tool_name",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "open_url",
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "format": "uri",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "url",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "provide_input",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "fields",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "retry_after_ms": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "type": {
      +                  "const": "wait",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "retry_after_ms",
      +                "reason"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "provenance": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "freshness": {
      +              "enum": [
      +                "fresh",
      +                "stale",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "observed_at": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "retrieved_at": {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            "source_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "source_url": {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            "source_version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "source_id",
      +            "observed_at",
      +            "retrieved_at",
      +            "freshness"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "request_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0",
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "field": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "schema_version",
      +      "kind",
      +      "request_id",
      +      "generated_at",
      +      "context",
      +      "data",
      +      "warnings",
      +      "next_actions"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "context": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "app_id": {
      +            "const": "koskamo",
      +            "type": "string"
      +          },
      +          "environment": {
      +            "enum": [
      +              "public",
      +              "production",
      +              "sandbox"
      +            ],
      +            "type": "string"
      +          },
      +          "tenant_ref": {
      +            "type": "null"
      +          },
      +          "timezone": {
      +            "const": "UTC",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "app_id",
      +          "tenant_ref",
      +          "environment",
      +          "timezone"
      +        ],
      +        "type": "object"
      +      },
      +      "data": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "enum": [
      +              "invalid_input",
      +              "unauthenticated",
      +              "permission_denied",
      +              "consent_required",
      +              "ambiguous_target",
      +              "not_found",
      +              "unsupported_capability",
      +              "configuration_required",
      +              "integration_expired",
      +              "stale_data",
      +              "version_conflict",
      +              "approval_required",
      +              "approval_expired",
      +              "idempotency_conflict",
      +              "rate_limited",
      +              "quota_exceeded",
      +              "provider_unavailable",
      +              "outcome_unknown",
      +              "reconciliation_required",
      +              "cursor_expired",
      +              "artifact_expired",
      +              "internal_error"
      +            ],
      +            "type": "string"
      +          },
      +          "domain_code": {
      +            "type": "string"
      +          },
      +          "effects": {
      +            "enum": [
      +              "none",
      +              "committed",
      +              "partial",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "field_errors": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "field": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "field",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "operation_id": {
      +            "type": "string"
      +          },
      +          "retry_after_ms": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "retry_strategy": {
      +            "enum": [
      +              "never",
      +              "same_request",
      +              "after_delay",
      +              "after_correction",
      +              "reconcile_first"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "effects",
      +          "retry_strategy"
      +        ],
      +        "type": "object"
      +      },
      +      "generated_at": {
      +        "format": "date-time",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "const": "error",
      +        "type": "string"
      +      },
      +      "next_actions": {
      +        "items": {
      +          "oneOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "tool_name": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "call_tool",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "tool_name",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "open_url",
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "format": "uri",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "url",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "type": {
      +                  "const": "provide_input",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "fields",
      +                "reason"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "retry_after_ms": {
      +                  "maximum": 9007199254740991,
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "type": {
      +                  "const": "wait",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "type",
      +                "retry_after_ms",
      +                "reason"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "provenance": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "freshness": {
      +              "enum": [
      +                "fresh",
      +                "stale",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "observed_at": {
      +              "anyOf": [
      +                {
      +                  "format": "date-time",
      +                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "retrieved_at": {
      +              "format": "date-time",
      +              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +              "type": "string"
      +            },
      +            "source_id": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "source_url": {
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            "source_version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "source_id",
      +            "observed_at",
      +            "retrieved_at",
      +            "freshness"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "request_id": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "schema_version": {
      +        "const": "1.0.0",
      +        "type": "string"
      +      },
      +      "warnings": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "field": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "schema_version",
      +      "kind",
      +      "request_id",
      +      "generated_at",
      +      "context",
      +      "data",
      +      "warnings",
      +      "next_actions"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: cursor pages are bound to one version and content hash, and the tool performs "no writes, charges, or inference of source observation time" – the latter warning an agent that observation timestamps will not be synthesized. That is substantive context beyond the annotations, though error and edge-case behavior is unaddressed.

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?

Four short sentences, front-loaded with the read operation and its key parameters, with no filler. The phrasing is dense and slightly telegraphic ("Public or exact owner-key access only"), but every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description covers access control, version selection, pagination binding, and what the tool explicitly does not do. For a read-only 4-parameter tool with a fully documented schema, that is close to complete; only failure modes and pagination termination are missing.

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 coverage is 100%, so the baseline is 3. The description still adds value by framing document_version as selecting an exact stored version and by explaining the cursor invariant (one version plus content hash per page), which the schema's cursor text does not state. It stops short of describing the dataset/document_id formats, which the schema already owns.

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 opens with a specific verb and resource: "Read exact stored text for dataset and document_id, optionally document_version." That immediately distinguishes it from listing tools like koskamo_list_documents and from the broader koskamo_retrieve. It stops short of naming a sibling or stating an explicit boundary, which keeps it from a 5.

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?

"Public or exact owner-key access only" gives a real precondition for use, and "optionally document_version" implies the default path. However, there is no explicit statement of when to pick this over koskamo_retrieve, koskamo_get_artifact, or koskamo_list_documents, and no when-not guidance. Usage context is implied rather than stated.

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