Skip to main content
Glama

Valuein — SEC EDGAR Fundamentals & Smart-Money Data

This connector has been deprecated in the official MCP Registry

Replaced by Valuein — SEC EDGAR Fundamentals & Smart-Money Data.

Compute Multiples on Your Price

compute_price_multiples
Read-onlyIdempotent

Market cap, P/E, P/B, P/S, EV/EBITDA, EV/revenue and dividend yield on a share price you pass (1 to 25 per call), joined to point-in-time SEC EDGAR filings. Pass a price only from get_price_history (a graded daily close; put its close_source and grade in source_label), or one the user gave you or a tool the user connected returned in this conversation; never from memory. Each row needs the price date, the close, its currency and (for the record) where it came from in source_label, e.g. the get_price_history source, your market-data provider, broker export or internal price database. RULES: a price joins only filings accepted BEFORE it was observed (default 16:00 New York on price_date); a ticker means the company that held it ON price_date; splits effective after the filing and on or before the price date are applied to the filed share count and per-share figures, and a split between period end and filing is not (the filing already holds it); a company with more than one listed share class gets no multiple at all (multi_class_price_needed); a price in another currency needs fx_rate; a total_return close is refused; a split_adjusted close needs adjusted_through. OUTPUT per price: metrics, metrics_display (QUOTE VERBATIM), metrics_provenance (each figure's derived_id, the filed fact_ids behind it and rests_on: ["user_supplied_price"]), metrics_unavailable (why a figure is null), warnings, and price_inputs_echo (the price exactly as you sent it, basis: "user_supplied"). When you write a figure that rests on a price, state the price, its date and its source beside the figure (a user's price is called user-supplied; a get_price_history close is cited with its grade and IEX or SEC attribution); cite the derived_id so verify_facts can re-run it. The price is never called current. Check that your price and the filing use the same share basis; a split missing from the corporate-action table is not detected. Nothing is stored. Use as_of_date to cap the filings used. Plan: every plan, including no sign-in.

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": {
      "prices": "<prices>"
    },
    "name": "compute_price_multiples"
  }
}

Input Schema

NameRequiredDescriptionDefault
pricesYes1 to 25 prices, one per company and date.
as_of_dateNoOptional cap, YYYY-MM-DD: only filings accepted before the end of this day are used, even when a price is later.

Output Schema

NameRequiredDescriptionDefault
_metaYesResponse metadata (provenance, point-in-time flag, freshness, request id and warnings). Every field is documented once in the agent contract (agent_contract.meta in the server's manifest.json).
resultsYes
warningsYes
price_inputs_echoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / additionalProperties
      Removed value: -false
  2. Changed24 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / properties / _meta / additionalProperties
      Previous value: -falseNew value: +{}
    • changedOutput schema / properties / _meta / description
      Previous value: -"Provenance envelope — data lineage for every MCP response"New value: +"Response metadata (provenance, point-in-time flag, freshness, request id and warnings). Every field is documented once in the agent contract (agent_contract.meta in the server's manifest.json)."
    • removedOutput schema / properties / _meta / properties / as_of_date
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / _meta / properties / cost_usd
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Per-call cost transparency. Omitted for subscription-only and free tools, which have no MPP price.",
      -  "properties": {
      -    "amount_usd": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "basis": {
      -      "description": "mpp_charge = real pay-per-call charge (a card or MPP payment through agent-pay). mpp_rate_card = indicative price, not billed.",
      -      "enum": [
      -        "mpp_charge",
      -        "mpp_rate_card"
      -      ],
      -      "type": "string"
      -    },
      -    "billed": {
      -      "description": "true = this amount was actually charged via MPP for this call. false = indicative MPP-equivalent value only: no charge was made for this call (it was within your plan).",
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "amount_usd",
      -    "billed",
      -    "basis"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / data_plan
      Removed value: -{
      -  "description": "Access plan: sample | sp500 | pro | full",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / data_quality
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Server-side invariants run on this response",
      -  "properties": {
      -    "notes": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "validation_failed": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "detail": {
      -            "type": "string"
      -          },
      -          "rule": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "rule",
      -          "detail"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "validation_passed": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "validation_passed",
      -    "validation_failed",
      -    "notes"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / fundamentals_as_of
      Removed value: -{
      -  "description": "ISO timestamp when the FINANCIAL STATEMENTS were last rebuilt in bulk. Use THIS — not `last_updated` — when telling a user how current the cross-sectional fundamentals are. The snapshot is republished on every weekday price refresh while the statements are carried forward unchanged, so `last_updated` can be far more recent than the numbers it sits next to. It is a floor for a single filer, not a ceiling: a filer with a live partition receives its filing, facts and ratios intraday (minutes after EDGAR dissemination), so an entity-scoped read may carry a filing newer than this; cross-sectional ranks (factor scores, earnings signals) refresh with the weekly bulk export.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / last_updated
      Removed value: -{
      -  "description": "ISO timestamp when the snapshot was exported",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / latency_ms
      Removed value: -{
      -  "description": "Wall-clock milliseconds this tool call took, measured server-side around the handler.",
      -  "maximum": 9007199254740991,
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / _meta / properties / limit_warnings
      Removed value: -{
      -  "description": "Soft-warning array for partial fulfillment. Each entry carries a stable subcode + remediation.options[]. AI agents pattern-match on subcode.",
      -  "items": {
      -    "additionalProperties": {},
      -    "properties": {
      -      "code": {
      -        "const": "LIMIT_EXCEEDED",
      -        "type": "string"
      -      },
      -      "current_plan": {
      -        "type": "string"
      -      },
      -      "extensions": {
      -        "additionalProperties": {},
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "limit_type": {
      -        "type": "string"
      -      },
      -      "limit_value": {},
      -      "remediation": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "contact_sales": {
      -            "type": "string"
      -          },
      -          "default_action": {
      -            "type": "string"
      -          },
      -          "options": {
      -            "items": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "pricing_page": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "options",
      -          "default_action",
      -          "pricing_page",
      -          "contact_sales"
      -        ],
      -        "type": "object"
      -      },
      -      "requested_value": {},
      -      "returned_value": {},
      -      "subcode": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "subcode",
      -      "limit_type",
      -      "current_plan",
      -      "remediation"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_offer
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Present when figures still need payment: the MPP option (price, resource_url, request body) for the full run.",
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_override
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Set when this single response was paid for over MPP (card, agent-pay): the payment's order was honoured for this call only. agent-pay captures the payment only when this is present.",
      -  "properties": {
      -    "amount_cents": {
      -      "type": "number"
      -    },
      -    "category": {
      -      "type": "string"
      -    },
      -    "companies": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "company_count": {
      -      "type": "number"
      -    },
      -    "order_id": {
      -      "type": "string"
      -    },
      -    "run": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "run_token_hash": {
      -      "type": "string"
      -    },
      -    "scope_hash": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": "string"
      -    },
      -    "unlock_level": {
      -      "enum": [
      -        "pro",
      -        "full"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "order_id",
      -    "tool",
      -    "category",
      -    "amount_cents",
      -    "company_count",
      -    "scope_hash",
      -    "run_token_hash",
      -    "unlock_level",
      -    "companies",
      -    "run"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / mpp_verification
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Verification tools only, when some figures are outside the caller's plan. Figures the plan covers are always verified free; a Valuein account also verifies its first figures free, once, figures outside its plan included (the verification trial, size in pricing://current). served_free = own-plan figures plus trial figures; trial_used / trial_remaining = this run's draw and what the account has left; needs_payment = figures still to pay for (the paid verification run). A guest has no trial: note says how to get it.",
      -  "properties": {
      -    "figures": {
      -      "type": "number"
      -    },
      -    "needs_payment": {
      -      "type": "number"
      -    },
      -    "note": {
      -      "type": "string"
      -    },
      -    "served_free": {
      -      "type": "number"
      -    },
      -    "trial_remaining": {
      -      "type": "number"
      -    },
      -    "trial_used": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "figures",
      -    "served_free",
      -    "trial_used",
      -    "needs_payment"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / pit_safe
      Removed value: -{
      -  "description": "true iff a zero-look-ahead point-in-time cut was applied to every returned figure",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / _meta / properties / rate_limit
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Caller's remaining budget",
      -  "properties": {
      -    "limit": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "remaining": {
      -      "maximum": 9007199254740991,
      -      "minimum": -9007199254740991,
      -      "type": "integer"
      -    },
      -    "reset_at": {
      -      "description": "ISO 8601 timestamp when the window resets",
      -      "type": "string"
      -    },
      -    "window": {
      -      "enum": [
      -        "minute",
      -        "hour"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "limit",
      -    "remaining",
      -    "reset_at",
      -    "window"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / properties / request_id
      Removed value: -{
      -  "description": "Per-request correlation id (8-char)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / result_count
      Removed value: -{
      -  "maximum": 9007199254740991,
      -  "minimum": -9007199254740991,
      -  "type": "integer"
      -}
    • removedOutput schema / properties / _meta / properties / schema_version
      Removed value: -{
      -  "description": "Parquet schema version from manifest.json",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / snapshot
      Removed value: -{
      -  "description": "Snapshot directory name (e.g. snapshot_20260420)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / source
      Removed value: -{
      -  "const": "SEC EDGAR",
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / ticker
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / _meta / properties / truncation
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Set when fewer rows were returned than requested — explains why and points to a remedy",
      -  "properties": {
      -    "current_plan": {
      -      "type": "string"
      -    },
      -    "plan_limit": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "reason": {
      -      "enum": [
      -        "PLAN_LIMIT",
      -        "DATA_NOT_AVAILABLE",
      -        "FISCAL_YEAR_BOUNDARY_FILTER",
      -        "OTHER"
      -      ],
      -      "type": "string"
      -    },
      -    "requested": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "returned": {
      -      "maximum": 9007199254740991,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "upgrade_required_for": {
      -      "type": "string"
      -    },
      -    "upgrade_url": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "requested",
      -    "returned",
      -    "reason"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / _meta / required
      Removed value: -[
      -  "data_plan",
      -  "schema_version",
      -  "snapshot",
      -  "last_updated",
      -  "source",
      -  "pit_safe"
      -]
  3. Changed5 schema fields changed
    • removedInput schema / properties / ciks
      Removed value: -{
      -  "description": "With use_price_sheet: companies by CIK.",
      -  "items": {
      -    "maxLength": 16,
      -    "type": "string"
      -  },
      -  "maxItems": 25,
      -  "type": "array"
      -}
    • changedInput schema / properties / prices / description
      Previous value: -"1 to 25 prices, one per company and date. Omit when use_price_sheet is true."New value: +"1 to 25 prices, one per company and date."
    • removedInput schema / properties / tickers
      Removed value: -{
      -  "description": "With use_price_sheet: companies by ticker, resolved on the as_of_date (default today).",
      -  "items": {
      -    "maxLength": 16,
      -    "type": "string"
      -  },
      -  "maxItems": 25,
      -  "type": "array"
      -}
    • removedInput schema / properties / use_price_sheet
      Removed value: -{
      -  "const": true,
      -  "description": "Use the latest price in YOUR price sheet (signed in) instead of sending prices; name the companies in ciks and/or tickers.",
      -  "type": "boolean"
      -}
    • addedInput schema / required
      Added value: +[
      +  "prices"
      +]
  4. Changed5 schema fields changed
    • addedInput schema / properties / ciks
      Added value: +{
      +  "description": "With use_price_sheet: companies by CIK.",
      +  "items": {
      +    "maxLength": 16,
      +    "type": "string"
      +  },
      +  "maxItems": 25,
      +  "type": "array"
      +}
    • changedInput schema / properties / prices / description
      Previous value: -"1 to 25 prices, one per company and date."New value: +"1 to 25 prices, one per company and date. Omit when use_price_sheet is true."
    • addedInput schema / properties / tickers
      Added value: +{
      +  "description": "With use_price_sheet: companies by ticker, resolved on the as_of_date (default today).",
      +  "items": {
      +    "maxLength": 16,
      +    "type": "string"
      +  },
      +  "maxItems": 25,
      +  "type": "array"
      +}
    • addedInput schema / properties / use_price_sheet
      Added value: +{
      +  "const": true,
      +  "description": "Use the latest price in YOUR price sheet (signed in) instead of sending prices; name the companies in ciks and/or tickers.",
      +  "type": "boolean"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "prices"
      -]
  5. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description goes well beyond them: point-in-time acceptance cutoff (16:00 New York), split-application rules across filing and price dates, and disclosure that a split absent from the corporate-action table is undetected. It also states 'Nothing is stored' and 'The price is never called current', which corroborates rather than contradicts the annotations.

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

Conciseness3/5

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

The opening is well front-loaded, but the body is a single dense run-on paragraph mixing join rules, refusals, and output instructions. The OUTPUT section restates field names (metrics_display, metrics_provenance, price_inputs_echo) that the output schema already covers, which is redundant given a rich output schema exists.

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?

For a tool this intricate — point-in-time joins, share-basis reconciliation, FX, corporate actions — the description covers nearly all decision-relevant behavior, including citation duties with derived_id for verify_facts. The remaining gap is that output shape detail duplicates rather than complements the existing output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every field, including fx_rate, adjustment and adjusted_through. The description reinforces a few of these (currency → fx_rate, split_adjusted → adjusted_through) and adds the split-timing semantics, but much of its parameter talk repeats what the schema states, so it earns only modest credit above baseline.

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 opening sentence names the exact resource and outputs: 'Market cap, P/E, P/B, P/S, EV/EBITDA, EV/revenue and dividend yield on a share price you pass', joined to point-in-time SEC EDGAR filings. The 'on a share price you pass' qualifier distinguishes it from stored-price valuation siblings such as get_pit_valuation_ratios without needing to name them.

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

Usage Guidelines5/5

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

Explicit sourcing rules state where a price may come from (get_price_history, the user, a connected tool) and forbid memory-derived prices. It also enumerates the refusal conditions — multi-class issuers, foreign currency without fx_rate, total_return closes, missing adjusted_through — and closes with 'Use as_of_date to cap the filings used.'

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.