Skip to main content
Glama

laya_predict

Delegate independent typed decisions—choose among up to 20 labels, assign ordered scores, or estimate P(true)—to a local model without text generation.

Instructions

Delegate independent typed decisions: choice (<=20 labels), score (ordered levels), noul (P(true)). No text generation. Dependent decisions need separate fresh observations.

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": {
      "state": "<state>",
      "questions": "<questions>"
    },
    "name": "laya_predict"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoauto
stateYes
questionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations and no output schema, the description carries the full burden, and it does disclose meaningful constraints: no free-text generation, a 20-label cap on choice, ordered levels for score, and a probability output for noul. It omits what the call actually returns structurally, error behavior, and cost/latency implications.

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 core action and followed immediately by the key negative constraint and the dependency caveat. Dense but not padded; the only cost is that the compression produces opaque terms like 'noul' and 'typed decisions'.

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

Completeness2/5

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

This is a structurally complex tool: nested objects for state and questions, no output schema, and no annotations. For that complexity the description is far too thin, leaving the question/state payload format and the response shape entirely undocumented.

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

Parameters2/5

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

Schema coverage is 0% for three parameters (state, questions, model), all of which are nested or free-form objects with additionalProperties. The description's decision-type vocabulary gestures at how questions are likely encoded but never explains the shape of 'questions' or what 'state' should contain, so the biggest documentation gap remains unfilled.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'delegate' plus the resource 'independent typed decisions' gives a general sense of the tool, and it enumerates three decision flavors (choice, score, noul). However, 'typed decisions' and 'noul' are unexplained jargon, and nothing in the text distinguishes it from sibling tools like laya_choose_action or laya_next_decision.

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?

'Dependent decisions need separate fresh observations' implies a when-to-use boundary: use this for independent decisions, not chained ones. That is real guidance, but it does not name an alternative tool or explain the workflow step this fits into, leaving usage largely implied.

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