Skip to main content
Glama

AI business value framework

validate_portfolio

Read-onlyIdempotent

Check whether a supplied AI BVF v1.0 portfolio document has the shape the portfolio tools require, before scoring, sequencing, storing or sharing it. CALL THIS when the document came from a file, another system or hand-built JSON and its structure is uncertain. It checks required fields, taxonomy values and 0–100 pillar ranges only; it does not judge the evidence or calculate a verdict. Pillars may be bare numbers or { value, confidence } objects, both are valid. Use assemble_portfolio when the user has a list of initiatives in conversation and needs the document built for them, score_portfolio when the document is already ready for verdicts, and sequence_portfolio only after its initiatives are scoreable. Returns valid=true or one error per failing JSON path. Deterministic validation with no authentication. Anonymous usage telemetry may be sent; set AIBVF_TELEMETRY_DISABLE=1 to opt out.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "portfolio": {
        "bvf_version": "1.0",
        "initiatives": [
          {
            "id": "service-assistant",
            "name": "Customer service assistant",
            "scores": {
              "governance_risk": 35,
              "financial_return": 64,
              "change_enablement": 48,
              "strategic_alignment": 70
            },
            "ai_tier": "gen2",
            "function": "cx"
          },
          {
            "id": "invoice-matching",
            "name": "Invoice matching",
            "scores": {
              "governance_risk": 25,
              "financial_return": 80,
              "change_enablement": 70,
              "strategic_alignment": 75
            },
            "ai_tier": "gen1",
            "function": "finance"
          }
        ],
        "organization": {
          "name": "Example retailer",
          "industry": "retail",
          "revenue_eur": 300000000
        }
      }
    },
    "name": "validate_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
portfolioYesThe portfolio document as a JSON object following the AI BVF v1.0 schema: a top-level object with bvf_version, organization, and a non-empty "initiatives" array, each initiative carrying the same fields score_initiative expects (industry, revenue_eur, function, ai_tier, readiness, and a scores object with the four 0–100 pillars, each either a bare number or an object { value, confidence? }; both shapes pass). Checked structurally only — required fields present, correct types, enum values valid, pillar numbers in range; the pillar values are NOT scored or judged here (use score_initiative or score_portfolio for that). On failure, errors[] names each failing JSON path and the rule it broke.

Output Schema

NameRequiredDescriptionDefault
validYesTrue when the portfolio conforms to the schema.
errorsYesEmpty when valid; otherwise one entry per schema violation.
warningsNoFields of the call this tool did not read. Each was ignored.
bvf_versionYesAI BVF protocol version validated against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "description": "Fields of the call this tool did not read. Each was ignored.",
      +  "items": {
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "portfolio": {
      +      "bvf_version": "1.0",
      +      "initiatives": [
      +        {
      +          "ai_tier": "gen2",
      +          "function": "cx",
      +          "id": "service-assistant",
      +          "name": "Customer service assistant",
      +          "scores": {
      +            "change_enablement": 48,
      +            "financial_return": 64,
      +            "governance_risk": 35,
      +            "strategic_alignment": 70
      +          }
      +        },
      +        {
      +          "ai_tier": "gen1",
      +          "function": "finance",
      +          "id": "invoice-matching",
      +          "name": "Invoice matching",
      +          "scores": {
      +            "change_enablement": 70,
      +            "financial_return": 80,
      +            "governance_risk": 25,
      +            "strategic_alignment": 75
      +          }
      +        }
      +      ],
      +      "organization": {
      +        "industry": "retail",
      +        "name": "Example retailer",
      +        "revenue_eur": 300000000
      +      }
      +    }
      +  }
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description adds real operational context beyond that: deterministic validation, no authentication, optional anonymous telemetry with an opt-out env var, and the exact return shape ('valid=true or one error per failing JSON path').

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?

The core action and the scope limits are front-loaded, and the sibling routing is compressed into a single sentence. The telemetry sentence is useful but adds length to an already dense block; a small trimming opportunity, not a structural flaw.

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

Completeness5/5

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

For a validator with one nested-object parameter, an output schema and full annotations, the description covers trigger, exclusions, alternatives, validation scope, accepted input variants and failure output. Nothing an agent needs to call it correctly 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?

With a single parameter at 100% schema coverage, the schema already documents the document shape in depth. The description reinforces the one genuinely ambiguous point — pillars may be bare numbers or { value, confidence } objects and both pass — though that is largely a restatement of the schema rather than new meaning.

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?

States a specific verb and resource with scope: 'Check whether a supplied AI BVF v1.0 portfolio document has the shape the portfolio tools require.' It also delimits what it does not do ('does not judge the evidence or calculate a verdict'), which separates it cleanly from scoring siblings.

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?

Gives an explicit trigger ('CALL THIS when the document came from a file, another system or hand-built JSON and its structure is uncertain') and names three alternatives with the conditions that select them: assemble_portfolio for lists in conversation, score_portfolio for ready documents, sequence_portfolio only after initiatives are scoreable.

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.