Skip to main content
Glama

update_mcptoken

Update an existing MCP Token via Django admin MCP, changing only supplied fields and rejecting invalid form fields.

Instructions

Update an existing MCP Token with optional inline updates. Only the fields sent are changed.

Date and datetime fields take a single ISO 8601 string (e.g. '2026-03-01' or '2026-03-01T09:30:00Z'). Foreign keys take the related object's ID, many-to-many fields a list of IDs. A field the admin form does not accept (unknown, read-only or non-editable) is rejected with an error, never ignored.

Fields:

  • id (BigAutoField)

  • name (CharField) [required]

  • user (ForeignKey) [required]

  • is_active (BooleanField)

  • created_at (DateTimeField)

  • expires_at (DateTimeField)

  • last_used_at (DateTimeField)

  • groups (ManyToManyField)

  • permissions (ManyToManyField)

Input Schema

NameRequiredDescriptionDefault
idYesThe ID of the MCP Token
dataNoThe fields to update
inlinesNoInline rows saved with the object, keyed by inline model name: {model_name: [{data} to add, {id, data} to update, {id, _delete: true} to delete]}. All-or-nothing: any inline error rejects the whole call and nothing is saved

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does a fair job: it documents input formats (ISO 8601 single string for dates, FK as related ID, M2M as a list of IDs) and a validation behavior (unknown/read-only/non-editable fields are rejected, never silently ignored). It omits auth requirements and return behavior, but the disclosed format and rejection semantics are substantive.

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?

Purpose and the format rules are front-loaded, followed by an organized field list. The field enumeration is long but justified for a loosely-typed 'data' parameter. Minimal wasted prose.

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 mutation tool with no annotations and no output schema, the description supplies the field surface, input formats, and rejection behavior an agent needs to call it correctly. Gaps remain around return values and permissions, but nothing critical to invocation 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?

Schema coverage is 100%, so the baseline is 3, but the schema's 'data' object is only described as 'The fields to update'. The description compensates by enumerating every accepted field with its type and defining the date/FK/M2M input conventions, adding real meaning beyond the loose schema. The 'inlines' all-or-nothing rule lives in the schema rather than the description, so it is not double-counted.

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?

States a specific verb ('Update') and resource ('an existing MCP Token'), and adds the partial-update semantic ('Only the fields sent are changed'). It doesn't name sibling alternatives like bulk_mcptoken or action_mcptoken, so it is clear but not sibling-differentiated.

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?

The 'Only the fields sent are changed' and 'optional inline updates' phrasing imply this is the tool for partial edits of an existing token, but there is no explicit when-to-use vs create_mcptoken/delete_mcptoken guidance or when-not condition. Usage must be inferred.

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