Skip to main content
Glama
longbridge

longbridge

Official

Analyst Consensus

consensus
Read-onlyIdempotent

Retrieve analyst estimates for upcoming periods for a given security symbol. Automatically adapts to US or HK market based on account. Use canonical symbols.

Instructions

Get financial consensus estimates for upcoming periods. US accounts querying a .US symbol get a US-specific variant (ai_summary plus a details[] list per period, instead of items[]). The region is detected from the account automatically.

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.
symbolYesSecurity symbol, e.g. "700.HK". Use the canonical form — a padded code like "00700.HK" returns an empty record, not an error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields 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."
    • changedInput schema / properties / symbol / description
      Previous value: -"Security symbol, e.g. \"700.HK\""New value: +"Security symbol, e.g. \"700.HK\". Use the canonical form — a padded code like \"00700.HK\" returns an empty record, not an error."
  2. Changed2 schema fields changedv0.10.6
    • addedInput schema / properties / _jq
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "$defs": {
      -    "ConsensusItem": {
      -      "properties": {
      -        "analyst_count": {
      -          "format": "int64",
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "eps_estimate": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "last_updated": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "net_income_estimate": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "period": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "revenue_estimate": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "UsConsensusEstimate": {
      -      "properties": {
      -        "actual": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "estimate": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "UsConsensusPeriod": {
      -      "properties": {
      -        "ebit": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/UsConsensusEstimate"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "eps": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/UsConsensusEstimate"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "fiscal_year": {
      -          "format": "int32",
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "report_txt": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "revenue": {
      -          "anyOf": [
      -            {
      -              "$ref": "#/$defs/UsConsensusEstimate"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        }
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "properties": {
      -    "ai_summary": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "currency": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "items": {
      -      "items": {
      -        "$ref": "#/$defs/ConsensusItem"
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "list": {
      -      "items": {
      -        "$ref": "#/$defs/UsConsensusPeriod"
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "opt_reports": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "report": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Changed7 schema fields changedv0.8.4
    • addedOutput schema / $defs / UsConsensusEstimate
      Added value: +{
      +  "properties": {
      +    "actual": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "estimate": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / UsConsensusPeriod
      Added value: +{
      +  "properties": {
      +    "ebit": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/UsConsensusEstimate"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "eps": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/UsConsensusEstimate"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "fiscal_year": {
      +      "format": "int32",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "report_txt": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "revenue": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/UsConsensusEstimate"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / ai_summary
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / currency
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / list
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/UsConsensusPeriod"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / opt_reports
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / report
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed1 schema field changedv0.7.1
    • removedInput schema / title
      Removed value: -"SymbolParam"
  5. Changed11 schema fields changedv0.6.0
    • removedOutput schema / $defs / ConsensusItem / description
      Removed value: -"One record in `consensus`'s `items`.\n\nSubset of documented fields; upstream may return more."
    • removedOutput schema / $defs / ConsensusItem / properties / analyst_count / description
      Removed value: -"Number of contributing analysts."
    • removedOutput schema / $defs / ConsensusItem / properties / eps_estimate / description
      Removed value: -"EPS estimate."
    • removedOutput schema / $defs / ConsensusItem / properties / last_updated / description
      Removed value: -"Last update time."
    • removedOutput schema / $defs / ConsensusItem / properties / net_income_estimate / description
      Removed value: -"Net income estimate."
    • removedOutput schema / $defs / ConsensusItem / properties / period / description
      Removed value: -"Estimate period."
    • removedOutput schema / $defs / ConsensusItem / properties / revenue_estimate / description
      Removed value: -"Revenue estimate."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / description
      Removed value: -"Returned by `consensus`. Wraps an `items` array of consensus estimates.\n\nSubset of documented fields; upstream may return more."
    • removedOutput schema / properties / items / description
      Removed value: -"Consensus estimate records for upcoming periods."
    • removedOutput schema / title
      Removed value: -"ConsensusResponse"
  6. Changed1 schema field changedv0.5.6
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ConsensusItem": {
      +      "description": "One record in `consensus`'s `items`.\n\nSubset of documented fields; upstream may return more.",
      +      "properties": {
      +        "analyst_count": {
      +          "description": "Number of contributing analysts.",
      +          "format": "int64",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "eps_estimate": {
      +          "description": "EPS estimate.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "last_updated": {
      +          "description": "Last update time.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "net_income_estimate": {
      +          "description": "Net income estimate.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "period": {
      +          "description": "Estimate period.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "revenue_estimate": {
      +          "description": "Revenue estimate.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "description": "Returned by `consensus`. Wraps an `items` array of consensus estimates.\n\nSubset of documented fields; upstream may return more.",
      +  "properties": {
      +    "items": {
      +      "description": "Consensus estimate records for upcoming periods.",
      +      "items": {
      +        "$ref": "#/$defs/ConsensusItem"
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "title": "ConsensusResponse",
      +  "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.7/5.0
Behavior4/5

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

Annotations already indicate readOnly, idempotent, and non-destructive behavior. The description adds valuable context about the response variant (ai_summary plus details[] vs items[]) and automatic region detection, going beyond what annotations state. No contradiction with annotations.

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?

The description is two sentences, front-loaded with the primary purpose and immediately followed by the most important behavioral note. Every word earns its place; no fluff or repetition.

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

Completeness3/5

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

There is no output schema, so the description should explain return values. It mentions the US variant response shape but does not detail fields, periods, or error behavior. For a tool with a single required parameter and strong annotations, this is adequate but not fully complete.

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?

The input schema describes both parameters fully (symbol and _jq), so the baseline is 3. The description adds a minor nuance about region detection affecting the symbol interpretation, but does not materially enhance parameter meaning beyond the schema.

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 ('Get financial consensus estimates') and highlights a notable US-specific variant, which helps distinguish it from other data tools. However, it does not explicitly differentiate from sibling tools like forecast_eps or institutional_views, so clarity is good but not exceptional.

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?

Provides context about when the US variant applies and that region is auto-detected, which is useful. But there is no explicit guidance on when to use this tool versus alternatives, nor any exclusions or preconditions beyond the symbol requirement.

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