Skip to main content
Glama

Create quota

create_quota

Cap how many completes a group may fill. Demographic cell: quota_type 'gender' + gender (m/f/nb) or quota_type 'age' + age_from/age_to (bound automatically to the standard questions). Own-question cell: conditions [{qid, code}] — conditions on two different questions INTERLOCK (respondent must satisfy all). Limit is in completes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesQuota name, e.g. 'Female 25-34'.
age_toNoWith quota_type age.
genderNoWith quota_type gender.
qlimitYesMaximum completes for this cell.
age_fromNoWith quota_type age.
survey_idYesSurvey id (see list_surveys, or the survey_id returned by a create tool).
conditionsNoOwn-question conditions; 2+ questions = interlocked.
quota_typeNoDemographic cell type (omit for own-question cells).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The description adds useful behavioral context beyond the annotations: interlocking of multi-question conditions, automatic binding of age to standard questions, and the fact that limits are expressed in completes. These details help an agent predict how the tool behaves. There is no contradiction with the annotations (readOnlyHint, idempotentHint, etc.).

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 compact and front-loaded, with the core purpose stated in the first sentence. Every subsequent sentence adds distinct value: demographic setup, own-question setup, and unit clarification. There is no filler or redundant detail.

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 create operation with 8 parameters, the description covers the key decision points: quota type selection, demographic vs. own-question cells, and interlock semantics. The schema already documents all parameters, and the annotations cover side-effect hints. The description does not mention the 'location' quota_type variant, though the schema does, and it does not state what the tool returns, but this is not critical for correct invocation.

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?

Schema coverage is 100%, so the baseline is 3. The description adds semantic value on top of the schema by explicitly mapping quota_type to its companion parameters (gender or age_from/age_to) and by explaining interlocking behavior for conditions. It also clarifies that qlimit is in completes, reinforcing the qlimit schema description.

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 clear verb and resource: 'Cap how many completes a group may fill,' which immediately conveys quota creation. It goes on to distinguish demographic-cell quotas from own-question-cell quotas, giving the tool concrete scope. It doesn't explicitly name sibling tools (like add_quota_condition or update_quota), but the creation-focused behavior is evident.

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 gives clear contextual guidance for the two main modes: use quota_type 'gender' or 'age' for demographic cells, and use conditions for own-question cells. It explains the difference between these modes and how they should be parameterized. It does not mention alternatives such as add_quota_condition or update_quota, so exclusion guidance is missing.

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.