Skip to main content
Glama
dalboki

sonsuchup-mcp

by dalboki

add_person

Add a person to a mystery case with name, gender, roles, and optional details like birth date and notes. Returns the local ID of the added person.

Instructions

사건에 인물을 추가합니다. roles 예: ["피해자"], ["용의자"], ["참고인"], ["수사관"]. 추가된 인물의 local id를 반환합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseIdYes
nameYes
genderYes
rolesNo
birthYearNo
birthMonthNo
birthDayNo
noteNo인물 메모
notablesNo특이사항 항목들
xNo인물관계도 X 좌표 (기본 0)
yNo인물관계도 Y 좌표 (기본 0)

Implementation Reference

  • The handler function that executes the add_person tool logic. It fetches the case, generates a local ID, pushes a new person with the provided fields (name, gender, roles, birth date, note, notables, coordinates), defaults (deceased: false, deathTime: '', deathCause: '', alibis: []), saves the case, and returns the localId + url.
    handler: async (input: {
      caseId: string;
      name: string;
      gender: 'male' | 'female';
      roles?: string[];
      birthYear?: number;
      birthMonth?: number;
      birthDay?: number;
      note?: string;
      notables?: string[];
      x?: number;
      y?: number;
    }) => {
      const c = await fetchCase(input.caseId);
      const localId = nextLocalId(c.people);
      c.people.push({
        id: localId,
        name: input.name,
        gender: input.gender,
        x: Math.round(input.x ?? 0),
        y: Math.round(input.y ?? 0),
        birthYear: input.birthYear ?? null,
        birthMonth: input.birthMonth ?? null,
        birthDay: input.birthDay ?? null,
        roles: input.roles ?? [],
        note: input.note ?? '',
        deceased: false,
        deathTime: '',
        deathCause: '',
        notables: input.notables ?? [],
        alibis: [],
      });
      await saveCase(c);
      return { localId, url: caseUrl(input.caseId) };
    },
  • Zod input schema for add_person. Validates caseId (UUID), name (min 1), gender (male/female), and optional fields: roles (string array), birthYear/Month/Day, note, notables (string array), x/y coordinates.
    inputSchema: z.object({
      caseId: z.string().uuid(),
      name: z.string().min(1),
      gender: z.enum(['male', 'female']),
      roles: z.array(z.string()).optional(),
      birthYear: z.number().int().optional(),
      birthMonth: z.number().int().min(1).max(12).optional(),
      birthDay: z.number().int().min(1).max(31).optional(),
      note: z.string().optional().describe('인물 메모'),
      notables: z.array(z.string()).optional().describe('특이사항 항목들'),
      x: z.number().optional().describe('인물관계도 X 좌표 (기본 0)'),
      y: z.number().optional().describe('인물관계도 Y 좌표 (기본 0)'),
  • src/tools.ts:166-218 (registration)
    The add_person tool registered in the tools array with name 'add_person', its description, inputSchema, and handler. Part of the exported 'tools' array (ToolDef[]).
    {
      name: 'add_person',
      description:
        '사건에 인물을 추가합니다. roles 예: ["피해자"], ["용의자"], ["참고인"], ["수사관"]. 추가된 인물의 local id를 반환합니다.',
      inputSchema: z.object({
        caseId: z.string().uuid(),
        name: z.string().min(1),
        gender: z.enum(['male', 'female']),
        roles: z.array(z.string()).optional(),
        birthYear: z.number().int().optional(),
        birthMonth: z.number().int().min(1).max(12).optional(),
        birthDay: z.number().int().min(1).max(31).optional(),
        note: z.string().optional().describe('인물 메모'),
        notables: z.array(z.string()).optional().describe('특이사항 항목들'),
        x: z.number().optional().describe('인물관계도 X 좌표 (기본 0)'),
        y: z.number().optional().describe('인물관계도 Y 좌표 (기본 0)'),
      }),
      handler: async (input: {
        caseId: string;
        name: string;
        gender: 'male' | 'female';
        roles?: string[];
        birthYear?: number;
        birthMonth?: number;
        birthDay?: number;
        note?: string;
        notables?: string[];
        x?: number;
        y?: number;
      }) => {
        const c = await fetchCase(input.caseId);
        const localId = nextLocalId(c.people);
        c.people.push({
          id: localId,
          name: input.name,
          gender: input.gender,
          x: Math.round(input.x ?? 0),
          y: Math.round(input.y ?? 0),
          birthYear: input.birthYear ?? null,
          birthMonth: input.birthMonth ?? null,
          birthDay: input.birthDay ?? null,
          roles: input.roles ?? [],
          note: input.note ?? '',
          deceased: false,
          deathTime: '',
          deathCause: '',
          notables: input.notables ?? [],
          alibis: [],
        });
        await saveCase(c);
        return { localId, url: caseUrl(input.caseId) };
      },
    },
Behavior2/5

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

No annotations provided, so description must disclose behavioral traits. It mentions returning a local id but does not describe side effects, permissions, or constraints like duplicate name handling.

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 two sentences, front-loading the purpose and providing a clear example. No redundancy.

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?

Given 11 parameters and no output schema, the description is too brief. It lacks prerequisites, error conditions, and return format beyond 'local id'. Incomplete for a creation tool.

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 low (36%), but the description only elaborates on the 'roles' parameter with examples. Other parameters (note, notables, x, y) have schema descriptions, but the description adds no extra meaning.

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 it adds a person to a case and provides example roles. It distinguishes from siblings like add_alibi by specifying the resource type.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like add_alibi or add_edge. The description only states the function without context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dalboki/sonsuchup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server