Skip to main content
Glama

turn_options

Enumerates legal actions this turn (feet remaining, stand-up cost, crawl mode, spell slots) and confirms each is consistent with the turn plan, rejecting anything beyond allowed boundaries.

Instructions

Enumerate what remains legal this turn given the same state shape as turn.plan (no plan). Options carry feet_remaining, stand-up cost, crawl mode, and spell-slot availability. Consistency-tested against turn.plan: everything enumerated is accepted, everything past a boundary rejected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
speedYes
spentNo
conditionsNo
request_idNo
table_policyNo
asserted_factsNo
policy_contextNo
table_decisionNo
exhaustion_levelNothe acting creature's Exhaustion level (0-6)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
whyYes
dataNo
factsYes
adapterYes
verdictYes
rule_idsYes
citationsYes
exit_codeYes
assumptionsYes
explanationYes
rule_resultYes
checked_scopeYes
coverage_levelYes
state_mutationYes
table_decisionYes
unchecked_scopeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • addedInput schema / properties / request_id
      Added value: +{
      +  "maxLength": 244,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed17 schema fields changedv0.8.0
    • addedInput schema / properties / asserted_facts
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "confidence": {
      +        "maximum": 1,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "path": {
      +        "pattern": "^/",
      +        "type": "string"
      +      },
      +      "source": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "id": {
      +            "maxLength": 256,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "kind": {
      +            "enum": [
      +              "caller",
      +              "dm",
      +              "player",
      +              "agent",
      +              "transcript",
      +              "sensor",
      +              "imported-state",
      +              "system"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "kind"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "path",
      +      "source",
      +      "confidence"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / exhaustion_level / maximum
      Added value: +6
    • addedInput schema / properties / exhaustion_level / minimum
      Added value: +0
    • addedInput schema / properties / policy_context
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "campaign_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "encounter_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "request_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "session_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / table_decision
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "kind": {
      +      "enum": [
      +        "ruling",
      +        "override"
      +      ],
      +      "type": "string"
      +    },
      +    "lineage": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affected_query": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "affected_rule_ids": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "authority": {
      +          "enum": [
      +            "table-ruling"
      +          ],
      +          "type": "string"
      +        },
      +        "source_rule_unchanged": {
      +          "enum": [
      +            true
      +          ],
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "authority",
      +        "affected_query",
      +        "affected_rule_ids",
      +        "source_rule_unchanged"
      +      ],
      +      "type": "object"
      +    },
      +    "origin": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "dm"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "outcome": {
      +      "maxLength": 1024,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "policy_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "reason": {
      +      "maxLength": 2048,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "reversible": {
      +      "type": "boolean"
      +    },
      +    "scope": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "once",
      +            "encounter",
      +            "session",
      +            "campaign"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "visibility": {
      +      "enum": [
      +        "dm-only",
      +        "table"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "outcome",
      +    "origin",
      +    "scope"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / table_policy
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "policies": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "author": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "kind": {
      +                "enum": [
      +                  "dm"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          "decision": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "kind": {
      +                "enum": [
      +                  "ruling",
      +                  "override"
      +                ],
      +                "type": "string"
      +              },
      +              "outcome": {
      +                "maxLength": 1024,
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "outcome"
      +            ],
      +            "type": "object"
      +          },
      +          "enabled": {
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "maxLength": 256,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "query": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "match": {
      +                "additionalProperties": {},
      +                "type": "object"
      +              },
      +              "type": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "match"
      +            ],
      +            "type": "object"
      +          },
      +          "reason": {
      +            "maxLength": 2048,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "reversible": {
      +            "type": "boolean"
      +          },
      +          "scope": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "kind": {
      +                "enum": [
      +                  "once",
      +                  "encounter",
      +                  "session",
      +                  "campaign"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "id"
      +            ],
      +            "type": "object"
      +          },
      +          "visibility": {
      +            "enum": [
      +              "dm-only",
      +              "table"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "author",
      +          "reason",
      +          "query",
      +          "decision",
      +          "scope",
      +          "visibility",
      +          "reversible"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 1000,
      +      "type": "array"
      +    },
      +    "schema": {
      +      "enum": [
      +        "srdcheck.table-policy/1.0"
      +      ],
      +      "type": "string"
      +    },
      +    "table": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "schema",
      +    "policies"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / assumptions
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / checked_scope
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / coverage_level
      Added value: +{
      +  "enum": [
      +    "unknown",
      +    "registry-only",
      +    "budget-only",
      +    "rule-surface-complete",
      +    "full-context-checkable"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / explanation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "rule": {
      +      "type": "string"
      +    },
      +    "situation_facts": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "state_mutation": {
      +      "type": "string"
      +    },
      +    "table_decision": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "rule",
      +    "situation_facts",
      +    "table_decision",
      +    "state_mutation"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / facts
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "asserted": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "confidence": {
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "source": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "id": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "kind": {
      +                "enum": [
      +                  "caller",
      +                  "dm",
      +                  "player",
      +                  "agent",
      +                  "transcript",
      +                  "sensor",
      +                  "imported-state",
      +                  "system"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          "value": {}
      +        },
      +        "required": [
      +          "path",
      +          "value",
      +          "source",
      +          "confidence"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "consumed": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "derived": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "basis": {
      +            "enum": [
      +              "rule_result"
      +            ],
      +            "type": "string"
      +          },
      +          "path": {
      +            "type": "string"
      +          },
      +          "value": {}
      +        },
      +        "required": [
      +          "path",
      +          "value",
      +          "basis"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "missing": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "path": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "path"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "asserted",
      +    "consumed",
      +    "derived",
      +    "missing"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / rule_result
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "adapter": {
      +      "type": "string"
      +    },
      +    "authority": {
      +      "enum": [
      +        "rules-advisory"
      +      ],
      +      "type": "string"
      +    },
      +    "citations": {
      +      "type": "array"
      +    },
      +    "exit_code": {
      +      "type": "integer"
      +    },
      +    "rule_ids": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    },
      +    "why": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "authority",
      +    "verdict",
      +    "exit_code",
      +    "why",
      +    "adapter",
      +    "rule_ids",
      +    "citations"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / state_mutation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "operations": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "op": {
      +            "enum": [
      +              "replace"
      +            ],
      +            "type": "string"
      +          },
      +          "path": {
      +            "enum": [
      +              "/"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {}
      +        },
      +        "required": [
      +          "op",
      +          "path",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "enum": [
      +        "none",
      +        "proposed"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "operations"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / table_decision
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "kind": {
      +      "enum": [
      +        "ruling",
      +        "override"
      +      ],
      +      "type": "string"
      +    },
      +    "lineage": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affected_query": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "affected_rule_ids": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "authority": {
      +          "enum": [
      +            "table-ruling"
      +          ],
      +          "type": "string"
      +        },
      +        "source_rule_unchanged": {
      +          "enum": [
      +            true
      +          ],
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "authority",
      +        "affected_query",
      +        "affected_rule_ids",
      +        "source_rule_unchanged"
      +      ],
      +      "type": "object"
      +    },
      +    "origin": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "dm"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "outcome": {
      +      "maxLength": 1024,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "policy_id": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "reason": {
      +      "maxLength": 2048,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "reversible": {
      +      "type": "boolean"
      +    },
      +    "scope": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "id": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "kind": {
      +          "enum": [
      +            "once",
      +            "encounter",
      +            "session",
      +            "campaign"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "visibility": {
      +      "enum": [
      +        "dm-only",
      +        "table"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "kind",
      +    "outcome",
      +    "origin",
      +    "scope"
      +  ],
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / unchecked_scope
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "verdict",
      -  "exit_code",
      -  "why",
      -  "citations",
      -  "rule_ids",
      -  "adapter"
      -]New value: +[
      +  "verdict",
      +  "exit_code",
      +  "why",
      +  "citations",
      +  "rule_ids",
      +  "adapter",
      +  "coverage_level",
      +  "checked_scope",
      +  "unchecked_scope",
      +  "assumptions",
      +  "facts",
      +  "rule_result",
      +  "table_decision",
      +  "state_mutation",
      +  "explanation"
      +]
    • changedOutput schema / x-srdcheck-schema-version
      Previous value: -"1.0"New value: +"4.0"
  3. Changed2 schema fields changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "adapter": {
      +      "type": "string"
      +    },
      +    "citations": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "page": {
      +            "type": "integer"
      +          },
      +          "quote": {
      +            "type": "string"
      +          },
      +          "section": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "section"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "data": {
      +      "type": "object"
      +    },
      +    "exit_code": {
      +      "enum": [
      +        0,
      +        1,
      +        2
      +      ],
      +      "type": "integer"
      +    },
      +    "rule_ids": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "legal",
      +        "illegal",
      +        "cannot-adjudicate"
      +      ],
      +      "type": "string"
      +    },
      +    "why": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "verdict",
      +    "exit_code",
      +    "why",
      +    "citations",
      +    "rule_ids",
      +    "adapter"
      +  ],
      +  "type": "object",
      +  "x-srdcheck-schema-version": "1.0"
      +}
  4. Addedv0.1.6
  5. Removedv0.1.4
  6. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses output contents (feet_remaining, stand-up cost, crawl mode, spell-slot availability) and a consistency guarantee against turn.plan, which is useful. However, it omits whether the operation is read-only, error behavior, or boundary semantics, leaving some behavioral aspects undisclosed.

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 three sentences long, front-loaded with the primary purpose, and each sentence adds distinct value: what the tool does, what options carry, and a consistency guarantee. No redundant or filler content.

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?

Despite having an output schema, the tool has a complex input schema (9 params, nested objects) and a short description that relies heavily on the agent knowing turn.plan's shape. It doesn't explain the 'boundary' concept or how parameters like spent and conditions should be populated, making it incomplete for correct invocation.

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

Parameters1/5

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

Schema description coverage is only 11%, with only exhaustion_level described. The description does not explain any of the 9 parameters (speed, spent, conditions, etc.) beyond a vague reference to turn.plan's state shape. This is a critical gap for a tool with nested objects and required fields, and the description fails to compensate.

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 description clearly states the tool's function: 'Enumerate what remains legal this turn' with a specific verb and resource. It distinguishes itself from turn.plan by explicitly noting '(no plan)' and referencing the same state shape, making its scope and relationship to sibling tools clear.

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

Usage Guidelines4/5

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

The description provides context by referring to 'the same state shape as turn.plan (no plan)', implying this is the options-enumeration counterpart to turn_plan. It does not explicitly name alternative tools for exclusions, but the context and consistency-testing reference give clear guidance on appropriate use.

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