Skip to main content
Glama

Сообщения диалога Kwork

get_dialog
Read-onlyIdempotent

Fetch complete dialog messages for a given Kwork username. Without a page parameter, returns the most recent page; specify a page number to retrieve earlier messages.

Instructions

Получить полные сообщения диалога по username.

Без page возвращается последняя страница с самыми свежими сообщениями. Страницы нумеруются от начала переписки: более ранние сообщения лежат на page на единицу меньше, page=1 — самое начало.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
usernameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
metaYes
errorNo
summaryYes
schema_versionNo1.0
knowledge_stateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.2.3
    • addedInput schema / properties / page / anyOf
      Added value: +[
      +  {
      +    "maximum": 10000,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / page / default
      Previous value: -1New value: +null
    • removedInput schema / properties / page / type
      Removed value: -"integer"
    • addedInput schema / properties / username / maxLength
      Added value: +64
    • addedInput schema / properties / username / minLength
      Added value: +1
    • addedOutput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / data
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "completeness": {
      +          "default": "complete",
      +          "enum": [
      +            "complete",
      +            "partial_upstream_limit"
      +          ],
      +          "title": "Completeness",
      +          "type": "string"
      +        },
      +        "items": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "created_at": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "title": "Created At"
      +              },
      +              "message_id": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "title": "Message Id"
      +              },
      +              "raw": {
      +                "additionalProperties": {},
      +                "title": "Raw",
      +                "type": "object"
      +              },
      +              "sender_id": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "title": "Sender Id"
      +              },
      +              "sender_username": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "title": "Sender Username"
      +              },
      +              "text": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null,
      +                "title": "Text"
      +              }
      +            },
      +            "required": [
      +              "raw"
      +            ],
      +            "title": "MessageRecord",
      +            "type": "object"
      +          },
      +          "title": "Items",
      +          "type": "array"
      +        },
      +        "page": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "has_more": {
      +                  "anyOf": [
      +                    {
      +                      "type": "boolean"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Has More"
      +                },
      +                "high_watermark": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "High Watermark"
      +                },
      +                "next_cursor": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Next Cursor"
      +                },
      +                "page": {
      +                  "title": "Page",
      +                  "type": "integer"
      +                },
      +                "page_size": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Page Size"
      +                },
      +                "query_fingerprint": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Query Fingerprint"
      +                },
      +                "total_items": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Total Items"
      +                },
      +                "total_pages": {
      +                  "anyOf": [
      +                    {
      +                      "type": "integer"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "default": null,
      +                  "title": "Total Pages"
      +                }
      +              },
      +              "required": [
      +                "page"
      +              ],
      +              "title": "PageInfo",
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null
      +        },
      +        "raw_metadata": {
      +          "additionalProperties": {},
      +          "title": "Raw Metadata",
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "items"
      +      ],
      +      "title": "ItemCollection[MessageRecord]",
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / error
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "enum": [
      +            "auth_required",
      +            "auth_expired",
      +            "auth_in_progress",
      +            "account_binding_required",
      +            "account_mismatch",
      +            "captcha",
      +            "permission",
      +            "ip_blocked",
      +            "csrf",
      +            "rate_limit",
      +            "circuit_open",
      +            "proxy",
      +            "timeout",
      +            "closed_project",
      +            "duplicate",
      +            "insufficient_connects",
      +            "contract_drift",
      +            "credential_update_unknown",
      +            "ambiguous_write",
      +            "idempotency_conflict",
      +            "preparation_expired",
      +            "invalid_confirmation",
      +            "write_in_progress",
      +            "write_disabled",
      +            "not_found",
      +            "validation",
      +            "site_unsupported",
      +            "site_mismatch",
      +            "upstream_unavailable",
      +            "internal"
      +          ],
      +          "title": "ErrorCode",
      +          "type": "string"
      +        },
      +        "correlation_id": {
      +          "title": "Correlation Id",
      +          "type": "string"
      +        },
      +        "message": {
      +          "title": "Message",
      +          "type": "string"
      +        },
      +        "reconciliation_required": {
      +          "default": false,
      +          "title": "Reconciliation Required",
      +          "type": "boolean"
      +        },
      +        "related_write_id": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "description": "Unresolved write that blocks this operation; reconcile it first.",
      +          "title": "Related Write Id"
      +        },
      +        "retry_after_seconds": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "default": null,
      +          "title": "Retry After Seconds"
      +        },
      +        "retryable": {
      +          "default": false,
      +          "title": "Retryable",
      +          "type": "boolean"
      +        },
      +        "safe_to_retry": {
      +          "default": false,
      +          "title": "Safe To Retry",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message",
      +        "correlation_id"
      +      ],
      +      "title": "ErrorInfo",
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedOutput schema / properties / knowledge_state
      Added value: +{
      +  "enum": [
      +    "known_data",
      +    "known_empty",
      +    "unknown_error"
      +  ],
      +  "title": "KnowledgeState",
      +  "type": "string"
      +}
    • addedOutput schema / properties / meta
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "content_trust": {
      +      "const": "external_untrusted",
      +      "default": "external_untrusted",
      +      "title": "Content Trust",
      +      "type": "string"
      +    },
      +    "correlation_id": {
      +      "title": "Correlation Id",
      +      "type": "string"
      +    },
      +    "observed_at": {
      +      "format": "date-time",
      +      "title": "Observed At",
      +      "type": "string"
      +    },
      +    "source": {
      +      "const": "kwork",
      +      "default": "kwork",
      +      "title": "Source",
      +      "type": "string"
      +    },
      +    "upstream_contract": {
      +      "const": "kwork==0.2.0",
      +      "default": "kwork==0.2.0",
      +      "title": "Upstream Contract",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "observed_at",
      +    "correlation_id"
      +  ],
      +  "title": "ResultMeta",
      +  "type": "object"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / schema_version
      Added value: +{
      +  "const": "1.0",
      +  "default": "1.0",
      +  "title": "Schema Version",
      +  "type": "string"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "title": "Summary",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "knowledge_state",
      +  "summary",
      +  "meta"
      +]
    • addedOutput schema / title
      Added value: +"ResultEnvelope[ItemCollection[MessageRecord]]"
    • removedOutput schema / x-fastmcp-wrap-result
      Removed value: -true
  2. First observedv0.2.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: omitting page returns the newest page, and pages are ordered from the start of the conversation with page=1 as the oldest. It stops short of explaining page size or total-page behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action, followed by the two facts an agent needs about paging. Nothing is redundant and no sentence is filler.

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-value explanation is not required, and the description covers the real complexity here, which is pagination direction and default. It could still say how many messages a page holds or whether more pages exist, but nothing critical for a correct call is 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 description coverage is 0%, so the description carries the burden. It fully specifies page semantics (default = latest page, direction of numbering), which is the parameter most likely to be misused. The username parameter is only implied by 'по username' — no format or identifier-source detail — so it does not fully compensate for the coverage gap.

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?

States a specific verb and resource ('Получить полные сообщения диалога по username'), which is unambiguous and clearly distinct from the sibling list_dialogs that enumerates dialogs rather than messages. It does not explicitly name that sibling or draw the contrast, so it falls just short of 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?

The description implies when to call it (you have a username and want that dialog's messages) and explains the page-omitted case, but gives no explicit when-not guidance or reference to alternative tools. Usage is inferable rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.