Skip to main content
Glama

Get Optimization Score

get_optimization_score
Read-onlyIdempotent

Read optimization score and contributing factors. Use IDs from list_test_blocks to target a block/run; omission uses the documented defaults. Legacy tests also supported.

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": {
      "testId": "<testId>"
    },
    "name": "get_optimization_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdNo
testIdYes
blockIdNoSelect one block from list_test_blocks. Omit to infer a sole relevant block; list_insights defaults to all AI blocks. Omit for legacy tests.

Output Schema

NameRequiredDescriptionDefault
dataNo
aboutNo
labelNo
retryNo
runIdNo
scopeNo
scoreNo
statusNo
testIdNo
blockIdNo
messageNo
nextStepNo
breakdownNo
uosVersionNo
descriptionNo
answerGuidanceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / breakdown / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / breakdown / properties / flowLength / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "maxObservedValue": {
      -        "type": "number"
      -      },
      -      "measure": {
      -        "enum": [
      -          "steps",
      -          "screens"
      -        ],
      -        "type": "string"
      -      },
      -      "sessionsObserved": {
      -        "type": "number"
      -      },
      -      "sessionsTotal": {
      -        "type": "number"
      -      },
      -      "value": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "measure",
      -      "value",
      -      "sessionsObserved",
      -      "sessionsTotal",
      -      "maxObservedValue"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "maxObservedValue": {
      +        "type": "number"
      +      },
      +      "measure": {
      +        "anyOf": [
      +          {
      +            "const": "steps",
      +            "type": "string"
      +          },
      +          {
      +            "const": "screens",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "sessionsObserved": {
      +        "type": "number"
      +      },
      +      "sessionsTotal": {
      +        "type": "number"
      +      },
      +      "value": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "measure",
      +      "value",
      +      "sessionsObserved",
      +      "sessionsTotal",
      +      "maxObservedValue"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / breakdown / properties / issueCounts / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / properties / breakdown / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / data / properties / breakdown / properties / flowLength / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "maxObservedValue": {
      -        "type": "number"
      -      },
      -      "measure": {
      -        "enum": [
      -          "steps",
      -          "screens"
      -        ],
      -        "type": "string"
      -      },
      -      "sessionsObserved": {
      -        "type": "number"
      -      },
      -      "sessionsTotal": {
      -        "type": "number"
      -      },
      -      "value": {
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "measure",
      -      "value",
      -      "sessionsObserved",
      -      "sessionsTotal",
      -      "maxObservedValue"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "maxObservedValue": {
      +        "type": "number"
      +      },
      +      "measure": {
      +        "anyOf": [
      +          {
      +            "const": "steps",
      +            "type": "string"
      +          },
      +          {
      +            "const": "screens",
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "sessionsObserved": {
      +        "type": "number"
      +      },
      +      "sessionsTotal": {
      +        "type": "number"
      +      },
      +      "value": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "measure",
      +      "value",
      +      "sessionsObserved",
      +      "sessionsTotal",
      +      "maxObservedValue"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / data / properties / breakdown / properties / issueCounts / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / data / properties / uosVersion / anyOf
      Added value: +[
      +  {
      +    "const": 1,
      +    "type": "number"
      +  },
      +  {
      +    "const": 2,
      +    "type": "number"
      +  },
      +  {
      +    "const": 3,
      +    "type": "number"
      +  },
      +  {
      +    "const": 4,
      +    "type": "number"
      +  }
      +]
    • removedOutput schema / properties / data / properties / uosVersion / enum
      Removed value: -[
      -  1,
      -  2,
      -  3,
      -  4
      -]
    • removedOutput schema / properties / data / properties / uosVersion / type
      Removed value: -"number"
    • changedOutput schema / properties / nextStep / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / nextStep / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / retry / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / uosVersion / anyOf
      Added value: +[
      +  {
      +    "const": 1,
      +    "type": "number"
      +  },
      +  {
      +    "const": 2,
      +    "type": "number"
      +  },
      +  {
      +    "const": 3,
      +    "type": "number"
      +  },
      +  {
      +    "const": 4,
      +    "type": "number"
      +  }
      +]
    • removedOutput schema / properties / uosVersion / enum
      Removed value: -[
      -  1,
      -  2,
      -  3,
      -  4
      -]
    • removedOutput schema / properties / uosVersion / type
      Removed value: -"number"
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds that contributing factors are returned alongside the score and that legacy tests are supported, but 'the documented defaults' is a vague pointer rather than a disclosure of what those defaults actually are.

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?

Three short sentences, front-loaded with the purpose before the targeting mechanics. The only soft spot is the hand-wave 'the documented defaults', which spends words without conveying information.

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 three-parameter read-only tool with a full output schema and rich annotations, the description covers the essentials: what is returned, how to target a block/run, and legacy support. The main residual gap is the unstated meaning of testId/runId, which the schema also leaves undocumented.

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 only 33% — only blockId is documented in the schema — so the description must carry weight, and it partially does by telling the agent that IDs originate from list_test_blocks and that blockId can be omitted. It adds no meaning for testId or runId beyond their regex patterns, leaving a real 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?

The description opens with a specific verb and resource: 'Read optimization score and contributing factors', which distinguishes it from score-adjacent siblings like get_satisfaction_score and get_ab_test_results. It does not explicitly name those siblings as alternatives, but the resource is unambiguous.

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?

It gives concrete sourcing guidance ('Use IDs from list_test_blocks to target a block/run') and states that omission falls back to defaults, plus that legacy tests are supported. It stops short of saying when to choose this over the other score/report tools, so usage is implied rather than fully routed.

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.

Resources