Skip to main content
Glama
longbridge

longbridge

Official

Topic Detail

topic_detail
Read-onlyIdempotent

Fetch full details of a discussion topic using its topic ID. Access specific post content and metadata for any discussion.

Instructions

Get discussion topic detail by topic_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_jqNoOptional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response.
topic_idYesTopic ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • addedInput schema / properties / _jq / description
      Added value: +"Optional jq filter (jaq syntax) applied to this tool's JSON response before it is returned; it never changes the upstream request. One output is returned as-is, several as a JSON array, none as []. Module imports and the `env`/`debug`/`stderr` builtins are unavailable. Example: .data | map({symbol}). Omit for the full response."
  2. Changed2 schema fields changedv0.10.6
    • addedInput schema / properties / _jq
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "TopicAuthor": {
      -      "properties": {
      -        "avatar": {
      -          "type": "string"
      -        },
      -        "member_id": {
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "member_id",
      -        "name",
      -        "avatar"
      -      ],
      -      "type": "object"
      -    },
      -    "TopicImage": {
      -      "properties": {
      -        "lg": {
      -          "type": "string"
      -        },
      -        "sm": {
      -          "type": "string"
      -        },
      -        "url": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "url",
      -        "sm",
      -        "lg"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "properties": {
      -    "author": {
      -      "$ref": "#/$defs/TopicAuthor"
      -    },
      -    "body": {
      -      "type": "string"
      -    },
      -    "comments_count": {
      -      "format": "int32",
      -      "type": "integer"
      -    },
      -    "created_at": {
      -      "type": "string"
      -    },
      -    "description": {
      -      "type": "string"
      -    },
      -    "detail_url": {
      -      "type": "string"
      -    },
      -    "hashtags": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "id": {
      -      "type": "string"
      -    },
      -    "images": {
      -      "items": {
      -        "$ref": "#/$defs/TopicImage"
      -      },
      -      "type": "array"
      -    },
      -    "likes_count": {
      -      "format": "int32",
      -      "type": "integer"
      -    },
      -    "shares_count": {
      -      "format": "int32",
      -      "type": "integer"
      -    },
      -    "tickers": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "title": {
      -      "type": "string"
      -    },
      -    "topic_type": {
      -      "type": "string"
      -    },
      -    "updated_at": {
      -      "type": "string"
      -    },
      -    "views_count": {
      -      "format": "int32",
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "id",
      -    "title",
      -    "description",
      -    "body",
      -    "author",
      -    "tickers",
      -    "hashtags",
      -    "images",
      -    "likes_count",
      -    "comments_count",
      -    "views_count",
      -    "shares_count",
      -    "topic_type",
      -    "detail_url",
      -    "created_at",
      -    "updated_at"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changedv0.8.7
    • addedOutput schema / properties / description
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / title
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field changedv0.7.1
    • removedInput schema / title
      Removed value: -"TopicIdParam"
  5. Changed27 schema fields changedv0.6.0
    • removedOutput schema / $defs / TopicAuthor / description
      Removed value: -"Author of a topic or reply."
    • removedOutput schema / $defs / TopicAuthor / properties / avatar / description
      Removed value: -"Avatar URL."
    • removedOutput schema / $defs / TopicAuthor / properties / member_id / description
      Removed value: -"Member ID."
    • removedOutput schema / $defs / TopicAuthor / properties / name / description
      Removed value: -"Display name."
    • removedOutput schema / $defs / TopicImage / description
      Removed value: -"An image attached to a topic or reply."
    • removedOutput schema / $defs / TopicImage / properties / lg / description
      Removed value: -"Large image URL."
    • removedOutput schema / $defs / TopicImage / properties / sm / description
      Removed value: -"Small thumbnail URL."
    • removedOutput schema / $defs / TopicImage / properties / url / description
      Removed value: -"Original image URL."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / description
      Removed value: -"Returned by `topic_detail`. Full details of a single community topic.\n\nSDK-typed (`longbridge::content::OwnedTopic`) and serialized via `tool_json`.\n`created_at` / `updated_at` are emitted as RFC3339 strings."
    • removedOutput schema / properties / author / description
      Removed value: -"Topic author."
    • removedOutput schema / properties / body / description
      Removed value: -"Markdown body."
    • removedOutput schema / properties / comments_count / description
      Removed value: -"Comments count."
    • removedOutput schema / properties / created_at / description
      Removed value: -"Created time (RFC3339)."
    • removedOutput schema / properties / description
      Removed value: -{
      -  "description": "Plain-text excerpt / description.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / detail_url / description
      Removed value: -"URL to the full topic page."
    • removedOutput schema / properties / hashtags / description
      Removed value: -"Hashtag names."
    • removedOutput schema / properties / id / description
      Removed value: -"Topic ID."
    • removedOutput schema / properties / images / description
      Removed value: -"Attached images."
    • removedOutput schema / properties / likes_count / description
      Removed value: -"Likes count."
    • removedOutput schema / properties / shares_count / description
      Removed value: -"Shares count."
    • removedOutput schema / properties / tickers / description
      Removed value: -"Related stock tickers, format `<CODE>.<MARKET>` (e.g. \"TSLA.US\")."
    • removedOutput schema / properties / title
      Removed value: -{
      -  "description": "Title.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / topic_type / description
      Removed value: -"Content type: \"article\" or \"post\"."
    • removedOutput schema / properties / updated_at / description
      Removed value: -"Last updated time (RFC3339)."
    • removedOutput schema / properties / views_count / description
      Removed value: -"Views count."
    • removedOutput schema / title
      Removed value: -"TopicDetailResponse"
  6. Changed1 schema field changedv0.5.6
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "TopicAuthor": {
      +      "description": "Author of a topic or reply.",
      +      "properties": {
      +        "avatar": {
      +          "description": "Avatar URL.",
      +          "type": "string"
      +        },
      +        "member_id": {
      +          "description": "Member ID.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Display name.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "member_id",
      +        "name",
      +        "avatar"
      +      ],
      +      "type": "object"
      +    },
      +    "TopicImage": {
      +      "description": "An image attached to a topic or reply.",
      +      "properties": {
      +        "lg": {
      +          "description": "Large image URL.",
      +          "type": "string"
      +        },
      +        "sm": {
      +          "description": "Small thumbnail URL.",
      +          "type": "string"
      +        },
      +        "url": {
      +          "description": "Original image URL.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "url",
      +        "sm",
      +        "lg"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "description": "Returned by `topic_detail`. Full details of a single community topic.\n\nSDK-typed (`longbridge::content::OwnedTopic`) and serialized via `tool_json`.\n`created_at` / `updated_at` are emitted as RFC3339 strings.",
      +  "properties": {
      +    "author": {
      +      "$ref": "#/$defs/TopicAuthor",
      +      "description": "Topic author."
      +    },
      +    "body": {
      +      "description": "Markdown body.",
      +      "type": "string"
      +    },
      +    "comments_count": {
      +      "description": "Comments count.",
      +      "format": "int32",
      +      "type": "integer"
      +    },
      +    "created_at": {
      +      "description": "Created time (RFC3339).",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Plain-text excerpt / description.",
      +      "type": "string"
      +    },
      +    "detail_url": {
      +      "description": "URL to the full topic page.",
      +      "type": "string"
      +    },
      +    "hashtags": {
      +      "description": "Hashtag names.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "description": "Topic ID.",
      +      "type": "string"
      +    },
      +    "images": {
      +      "description": "Attached images.",
      +      "items": {
      +        "$ref": "#/$defs/TopicImage"
      +      },
      +      "type": "array"
      +    },
      +    "likes_count": {
      +      "description": "Likes count.",
      +      "format": "int32",
      +      "type": "integer"
      +    },
      +    "shares_count": {
      +      "description": "Shares count.",
      +      "format": "int32",
      +      "type": "integer"
      +    },
      +    "tickers": {
      +      "description": "Related stock tickers, format `<CODE>.<MARKET>` (e.g. \"TSLA.US\").",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "description": "Title.",
      +      "type": "string"
      +    },
      +    "topic_type": {
      +      "description": "Content type: \"article\" or \"post\".",
      +      "type": "string"
      +    },
      +    "updated_at": {
      +      "description": "Last updated time (RFC3339).",
      +      "type": "string"
      +    },
      +    "views_count": {
      +      "description": "Views count.",
      +      "format": "int32",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "title",
      +    "description",
      +    "body",
      +    "author",
      +    "tickers",
      +    "hashtags",
      +    "images",
      +    "likes_count",
      +    "comments_count",
      +    "views_count",
      +    "shares_count",
      +    "topic_type",
      +    "detail_url",
      +    "created_at",
      +    "updated_at"
      +  ],
      +  "title": "TopicDetailResponse",
      +  "type": "object"
      +}
  7. Addedv0.4.5
  8. Removedv0.4.0
  9. Addedv0.3.2
  10. Removedv0.3.1
  11. First observedv0.1.12

TDQS

A3.6/5.0
Behavior2/5

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

The description adds no behavioral traits beyond what the annotations already declare. It simply restates the tool's purpose and repeats the topic_id parameter already present in the schema, with no mention of return format, possible errors, or any additional side-effect scope.

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?

A single short sentence that communicates the essential action and input. It is front-loaded and free of any filler, perfectly appropriate for a simple read-only detail tool.

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?

Given the strong annotations, fully described parameters, and simple read-only nature, the description is adequate for selecting and invoking the tool. It could mention what fields the detail returns, but that is not critical for a correct call.

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%, and both parameters are documented in the schema. The description does not enrich the meaning of topic_id or _jq beyond the schema, so the baseline of 3 applies.

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?

The description uses a specific verb ('Get'), names the resource ('discussion topic detail'), and specifies the key access pattern ('by topic_id'). This clearly distinguishes it from sibling tools like topic_search, topic_replies, and topic_create.

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 its usage: call this when you have a topic_id and want the full detail of a single discussion topic. However, it provides no explicit guidance on when to prefer this over siblings such as topic_search or topic_replies, nor does it mention any exclusions.

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

Deploy Server

Other Tools